Fixed Cargo.toml in todo for new diesel. Serde is still broken.

This commit is contained in:
Sergio Benitez 2016-08-05 21:57:55 -07:00
parent c3f9e01af1
commit b767c1bdec
3 changed files with 6 additions and 8 deletions

View File

@ -8,8 +8,8 @@ rocket = { path = "../../lib" }
rocket_macros = { path = "../../macros" } rocket_macros = { path = "../../macros" }
lazy_static = "*" lazy_static = "*"
tera = "*" tera = "*"
serde = { git = "https://github.com/serde-rs/serde" } serde = "0.8"
serde_json = { git = "https://github.com/serde-rs/json" } serde_json = "0.8"
serde_macros = { git = "https://github.com/serde-rs/serde" } serde_macros = "0.8"
diesel = { version = "*", features = ["sqlite"] } diesel = { git = "https://github.com/diesel-rs/diesel.git", features = ["sqlite"] }
diesel_codegen = { git = "https://github.com/diesel-rs/diesel/", default_features = false, features = ["nightly", "sqlite"] } diesel_codegen = { git = "https://github.com/diesel-rs/diesel.git", default_features = false, features = ["sqlite"] }

View File

@ -1,12 +1,11 @@
#![feature(plugin, custom_derive, custom_attribute)] #![feature(plugin, custom_derive, custom_attribute)]
#![plugin(rocket_macros, diesel_codegen, serde_macros)] #![plugin(rocket_macros, serde_macros, diesel_codegen)]
extern crate rocket; extern crate rocket;
extern crate tera; extern crate tera;
#[macro_use] extern crate diesel; #[macro_use] extern crate diesel;
#[macro_use] extern crate lazy_static; #[macro_use] extern crate lazy_static;
extern crate serde_json; extern crate serde_json;
extern crate serde;
mod static_files; mod static_files;
mod task; mod task;

View File

@ -1,5 +1,4 @@
use diesel; use diesel;
use serde::Serialize;
use diesel::prelude::*; use diesel::prelude::*;
use diesel::sqlite::SqliteConnection; use diesel::sqlite::SqliteConnection;
use self::schema::tasks; use self::schema::tasks;