diff --git a/Cargo.toml b/Cargo.toml index f59c92b..38b0aeb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,4 +5,7 @@ authors = ["Ty Overby "] repository = "https://github.com/TyOverby/bincode" documentation = "http://tyoverby.github.io/bincode/bincode/" -keywords = ["binary", "encode", "decode", "encoder", "decoder"] +keywords = ["binary", "encode", "decode", "serialize", "deserialize"] + +license = "MIT" +description = "A binary serialization / deserialization strategy and implementation." diff --git a/src/lib.rs b/src/lib.rs index 04bcce9..8107139 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2,8 +2,6 @@ #![crate_type = "rlib"] #![crate_type = "dylib"] -#![feature(struct_variant)] - extern crate serialize; use std::io::Buffer; diff --git a/src/test.rs b/src/test.rs index 1096fc0..b2e3b9a 100644 --- a/src/test.rs +++ b/src/test.rs @@ -117,9 +117,9 @@ fn enm() { OneArg(uint), AnotherNoArg } - the_same(NoArg); - the_same(OneArg(4)); - the_same(AnotherNoArg); + the_same(TestEnum::NoArg); + the_same(TestEnum::OneArg(4)); + the_same(TestEnum::AnotherNoArg); } @@ -132,11 +132,12 @@ fn struct_enum() { AnotherNoArg, StructLike{x: uint, y: f32} } - the_same(NoArg); - the_same(OneArg(4)); - the_same(AnotherNoArg); - the_same(StructLike{x: 4, y: 3.14159}); - the_same(vec![NoArg, OneArg(5), AnotherNoArg, StructLike{x: 4, y:1.4}]); + the_same(TestEnum::NoArg); + the_same(TestEnum::OneArg(4)); + the_same(TestEnum::AnotherNoArg); + the_same(TestEnum::StructLike{x: 4, y: 3.14159}); + the_same(vec![TestEnum::NoArg, TestEnum::OneArg(5), TestEnum::AnotherNoArg, + TestEnum::StructLike{x: 4, y:1.4}]); } #[test]