Skip to content

Commit 8c55e24

Browse files
committed
Remove unused serde features
1 parent 8bbdc2e commit 8c55e24

File tree

4 files changed

+2
-36
lines changed

4 files changed

+2
-36
lines changed

rand_chacha/Cargo.toml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,8 @@ build = "build.rs"
1818
travis-ci = { repository = "rust-random/rand" }
1919
appveyor = { repository = "dhardy/rand" }
2020

21-
[features]
22-
serde1 = ["serde", "serde_derive", "rand_core/serde1"]
23-
2421
[dependencies]
2522
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"
3323

3424
[build-dependencies]
3525
rustc_version = "0.2"

rand_chacha/src/lib.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,10 @@
1616
#![deny(missing_debug_implementations)]
1717
#![doc(test(attr(allow(unused_variables), deny(warnings))))]
1818

19-
#![cfg_attr(not(all(feature="serde1", test)), no_std)]
19+
#![no_std]
2020

2121
extern crate rand_core;
2222

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-
3023
mod chacha;
3124

3225
pub use chacha::{ChaChaRng, ChaChaCore};

rand_hc128/Cargo.toml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,5 @@ categories = ["algorithms", "no-std"]
1717
travis-ci = { repository = "rust-random/rand" }
1818
appveyor = { repository = "dhardy/rand" }
1919

20-
[features]
21-
serde1 = ["serde", "serde_derive", "rand_core/serde1"]
22-
2320
[dependencies]
2421
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"

rand_hc128/src/lib.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,10 @@
1616
#![deny(missing_debug_implementations)]
1717
#![doc(test(attr(allow(unused_variables), deny(warnings))))]
1818

19-
#![cfg_attr(not(all(feature="serde1", test)), no_std)]
19+
#![no_std]
2020

2121
extern crate rand_core;
2222

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-
3023
mod hc128;
3124

3225
pub use hc128::{Hc128Rng, Hc128Core};

0 commit comments

Comments
 (0)