File tree 4 files changed +2
-36
lines changed
4 files changed +2
-36
lines changed Original file line number Diff line number Diff line change @@ -18,18 +18,8 @@ build = "build.rs"
18
18
travis-ci = { repository = " rust-random/rand" }
19
19
appveyor = { repository = " dhardy/rand" }
20
20
21
- [features ]
22
- serde1 = [" serde" , " serde_derive" , " rand_core/serde1" ]
23
-
24
21
[dependencies ]
25
22
rand_core = { path = " ../rand_core" , version = " 0.2" , default-features =false }
26
- serde = { version = " 1" , optional = true }
27
- serde_derive = { version = " ^1.0.38" , optional = true }
28
-
29
- [dev-dependencies ]
30
- # This is for testing serde, unfortunately we can't specify feature-gated dev
31
- # deps yet, see: https://github.com/rust-lang/cargo/issues/1596
32
- bincode = " 1"
33
23
34
24
[build-dependencies ]
35
25
rustc_version = " 0.2"
Original file line number Diff line number Diff line change 16
16
#![ deny( missing_debug_implementations) ]
17
17
#![ doc( test( attr( allow( unused_variables) , deny( warnings) ) ) ) ]
18
18
19
- #![ cfg_attr ( not ( all ( feature= "serde1" , test ) ) , no_std) ]
19
+ #![ no_std]
20
20
21
21
extern crate rand_core;
22
22
23
- #[ cfg( feature="serde1" ) ] extern crate serde;
24
- #[ cfg( feature="serde1" ) ] #[ macro_use] extern crate serde_derive;
25
-
26
- // To test serialization we need bincode and the standard library
27
- #[ cfg( all( feature="serde1" , test) ) ] extern crate bincode;
28
- #[ cfg( all( feature="serde1" , test) ) ] extern crate std as core;
29
-
30
23
mod chacha;
31
24
32
25
pub use chacha:: { ChaChaRng , ChaChaCore } ;
Original file line number Diff line number Diff line change @@ -17,15 +17,5 @@ categories = ["algorithms", "no-std"]
17
17
travis-ci = { repository = " rust-random/rand" }
18
18
appveyor = { repository = " dhardy/rand" }
19
19
20
- [features ]
21
- serde1 = [" serde" , " serde_derive" , " rand_core/serde1" ]
22
-
23
20
[dependencies ]
24
21
rand_core = { path = " ../rand_core" , version = " 0.2" , default-features =false }
25
- serde = { version = " 1" , optional = true }
26
- serde_derive = { version = " ^1.0.38" , optional = true }
27
-
28
- [dev-dependencies ]
29
- # This is for testing serde, unfortunately we can't specify feature-gated dev
30
- # deps yet, see: https://github.com/rust-lang/cargo/issues/1596
31
- bincode = " 1"
Original file line number Diff line number Diff line change 16
16
#![ deny( missing_debug_implementations) ]
17
17
#![ doc( test( attr( allow( unused_variables) , deny( warnings) ) ) ) ]
18
18
19
- #![ cfg_attr ( not ( all ( feature= "serde1" , test ) ) , no_std) ]
19
+ #![ no_std]
20
20
21
21
extern crate rand_core;
22
22
23
- #[ cfg( feature="serde1" ) ] extern crate serde;
24
- #[ cfg( feature="serde1" ) ] #[ macro_use] extern crate serde_derive;
25
-
26
- // To test serialization we need bincode and the standard library
27
- #[ cfg( all( feature="serde1" , test) ) ] extern crate bincode;
28
- #[ cfg( all( feature="serde1" , test) ) ] extern crate std as core;
29
-
30
23
mod hc128;
31
24
32
25
pub use hc128:: { Hc128Rng , Hc128Core } ;
You can’t perform that action at this time.
0 commit comments