Skip to content

Commit e7b17dd

Browse files
committed
The rand crate does not depend on serde or bincode anymore
1 parent ecd1867 commit e7b17dd

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

Cargo.toml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ std = ["rand_core/std", "rand_isaac/std", "rand_xorshift/std", "alloc", "libc",
2424
alloc = ["rand_core/alloc"] # enables Vec and Box support (without std)
2525
i128_support = [] # enables i128 and u128 support
2626
simd_support = [] # enables SIMD support
27-
serde1 = ["serde", "serde_derive", "rand_core/serde1", "rand_isaac/serde1", "rand_xorshift/serde1"] # enables serialization for PRNGs
27+
serde1 = ["rand_core/serde1", "rand_isaac/serde1", "rand_xorshift/serde1"] # enables serialization for PRNGs
2828

2929
[workspace]
3030
members = ["rand_core", "rand_isaac", "rand_xorshift"]
@@ -35,8 +35,6 @@ rand_core = { path = "rand_core", version = "0.2", default-features = false }
3535
rand_isaac = { path = "rand_isaac", version = "0.1" }
3636
rand_xorshift = { path = "rand_xorshift", version = "0.1" }
3737
log = { version = "0.4", optional = true }
38-
serde = { version = "1", optional = true }
39-
serde_derive = { version = "1", optional = true }
4038

4139
[target.'cfg(unix)'.dependencies]
4240
libc = { version = "0.2", optional = true }
@@ -55,10 +53,5 @@ fuchsia-zircon = { version = "0.3.2", optional = true }
5553
stdweb = { version = "0.4", optional = true }
5654
wasm-bindgen = { version = "0.2", optional = true }
5755

58-
[dev-dependencies]
59-
# This is for testing serde, unfortunately we can't specify feature-gated dev
60-
# deps yet, see: https://github.com/rust-lang/cargo/issues/1596
61-
bincode = "1.0"
62-
6356
[package.metadata.docs.rs]
6457
all-features = true

src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,6 @@
237237
#[cfg(feature="std")] extern crate std as core;
238238
#[cfg(all(feature = "alloc", not(feature="std")))] extern crate alloc;
239239

240-
#[cfg(all(feature="serde1", test))] extern crate bincode;
241-
#[cfg(feature="serde1")] extern crate serde;
242-
243240
#[cfg(all(target_arch="wasm32", not(target_os="emscripten"), feature="stdweb"))]
244241
#[macro_use]
245242
extern crate stdweb;

0 commit comments

Comments
 (0)