mirror of https://github.com/rwf2/Rocket.git
Update to todo example to diesel 0.10.
This commit is contained in:
parent
58678e53fb
commit
1a18c73970
|
@ -9,8 +9,8 @@ rocket_codegen = { path = "../../codegen" }
|
|||
serde = "0.9"
|
||||
serde_json = "0.9"
|
||||
serde_derive = "0.9"
|
||||
diesel = { version = "0.9", features = ["sqlite"] }
|
||||
diesel_codegen = { version = "0.9", features = ["sqlite"] }
|
||||
diesel = { version = "0.10", features = ["sqlite"] }
|
||||
diesel_codegen = { version = "0.10", features = ["sqlite"] }
|
||||
|
||||
[dependencies.rocket_contrib]
|
||||
path = "../../contrib"
|
||||
|
|
|
@ -6,7 +6,6 @@ use self::schema::tasks::dsl::{tasks as all_tasks, completed as task_completed};
|
|||
|
||||
const DATABASE_FILE: &'static str = env!("DATABASE_URL");
|
||||
|
||||
#[allow(dead_code)]
|
||||
mod schema {
|
||||
infer_schema!("env:DATABASE_URL");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue