Skip to content
This repository has been archived by the owner on Aug 15, 2021. It is now read-only.

Commit

Permalink
Remove unstable feature for tests.
Browse files Browse the repository at this point in the history
Set version to v0.6.0-alpha.
  • Loading branch information
pyfisch committed Apr 23, 2017
1 parent 0e45112 commit f1a8dde
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 22 deletions.
7 changes: 3 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "serde_cbor"
version = "0.5.2"
version = "0.6.0-alpha"
authors = ["Pyfisch <[email protected]>"]
repository = "https://github.com/pyfisch/cbor"
documentation = "http://pyfisch.github.io/cbor/serde_cbor/index.html"
Expand All @@ -13,7 +13,6 @@ keywords = ["serde", "cbor", "serialization"]
byteorder = "1.0"
serde = "1.0.0"
serde_bytes = "0.10.0"
serde_derive = { version="1.0.0", optional=true }

[features]
unstable = ["serde_derive"]
[dev-dependencies]
serde_derive = "1.0.0"
3 changes: 0 additions & 3 deletions tests/bennofs.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// All tests are only run if `unstable` is enabled.
#![cfg(feature="unstable")]

extern crate serde;
#[macro_use]
extern crate serde_derive;
Expand Down
3 changes: 0 additions & 3 deletions tests/enum.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// All tests are only run if `unstable` is enabled.
#![cfg(feature="unstable")]

extern crate serde_cbor;

#[macro_use]
Expand Down
12 changes: 0 additions & 12 deletions tests/std_types.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
extern crate serde;
extern crate serde_cbor;
extern crate serde_bytes;

#[cfg(feature = "unstable")]
#[macro_use]
extern crate serde_derive;

Expand Down Expand Up @@ -76,30 +74,24 @@ testcase!(test_str_pangram_de, String, "aâø↓é".to_owned(), "6a61c3a2c3b8e28
testcase!(test_bytes, ByteBuf, b"\x00\xab".to_vec().into(), "4200ab");
testcase!(test_unit, (), (), "f6");

#[cfg(feature="unstable")]
#[derive(Debug, PartialEq, Deserialize, Serialize)]
struct UnitStruct;
#[cfg(feature="unstable")]
testcase!(test_unit_struct, UnitStruct, UnitStruct, "f6");

#[cfg(feature="unstable")]
#[derive(Debug, PartialEq, Deserialize, Serialize)]
struct NewtypeStruct(bool);
#[cfg(feature="unstable")]
testcase!(test_newtype_struct, NewtypeStruct, NewtypeStruct(true), "f5");

testcase!(test_option_none, Option<u8>, None, "f6");
testcase!(test_option_some, Option<u8>, Some(42), "182a");

#[cfg(feature="unstable")]
#[derive(Debug, PartialEq, Deserialize, Serialize)]
struct Person {
name: String,
year_of_birth: u16,
profession: Option<String>,
}

#[cfg(feature="unstable")]
testcase!(test_person_struct,
Person,
Person {
Expand All @@ -109,7 +101,6 @@ testcase!(test_person_struct,
},
"a3646e616d656c477261636520486f707065726d796561725f6f665f62697274681907726a70726f66657373696f6e72636f6d707574657220736369656e74697374");

#[cfg(feature="unstable")]
#[derive(Debug, PartialEq, Deserialize, Serialize)]
enum Color {
Red,
Expand All @@ -119,17 +110,14 @@ enum Color {
Alpha(u64, u8)
}

#[cfg(feature="unstable")]
testcase!(test_color_enum,
Color,
Color::Blue,
"64426c7565");
#[cfg(feature="unstable")]
testcase!(test_color_enum_transparent,
Color,
Color::Other(42),
"82654f74686572182a");
#[cfg(feature="unstable")]
testcase!(test_color_enum_with_alpha,
Color,
Color::Alpha(234567, 60),
Expand Down

0 comments on commit f1a8dde

Please sign in to comment.