diff --git a/Cargo.toml b/Cargo.toml index 1d68a80..730d171 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,3 +9,6 @@ repository = "https://github.com/chris-morgan/mucell" readme = "README.md" keywords = ["cell", "container", "data-structure"] license = "MIT/Apache-2.0" + +[dependencies] +rustc-serialize = "0.1" \ No newline at end of file diff --git a/src/lib.rs b/src/lib.rs index 5cd90ad..f892640 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -72,7 +72,7 @@ #![warn(bad_style, unused, missing_docs)] #[phase(plugin, link)] extern crate core; -extern crate serialize; +extern crate "rustc-serialize" as serialize; extern crate rand; extern crate collections; @@ -305,7 +305,7 @@ impl, S = sip::SipState> Hash for MuCell { /// } /// /// fn main() { -/// demo(&MuCell::new(Foo { bar: "panic".into_string() })); +/// demo(&MuCell::new(Foo { bar: "panic".to_string() })); /// } /// ``` ///