Skip to content

Commit

Permalink
rand: remove wasm-bindgen and stdweb feature flags
Browse files Browse the repository at this point in the history
These feature flags are re-exports from getrandom and were
already scheduled for removal in 0.8.
  • Loading branch information
dhardy committed Mar 9, 2020
1 parent 8d225e4 commit 0aa4617
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,7 @@ serde1 = [] # does nothing, deprecated
# Optional dependencies:
std = ["rand_core/std", "rand_chacha/std", "alloc", "getrandom", "libc"]
alloc = ["rand_core/alloc"] # enables Vec and Box support (without std)
# re-export optional WASM dependencies to avoid breakage:
# Warning: wasm-bindgen and stdweb features will be removed in rand 0.8;
# recommended to activate via the getrandom crate instead.
wasm-bindgen = ["getrandom_package/wasm-bindgen"]
stdweb = ["getrandom_package/stdweb"]
getrandom = ["getrandom_package", "rand_core/getrandom"]
getrandom = ["rand_core/getrandom"]

# Configuration:
simd_support = ["packed_simd"] # enables SIMD support
Expand All @@ -52,10 +47,6 @@ members = [
[dependencies]
rand_core = { path = "rand_core", version = "0.5.1" }
rand_pcg = { path = "rand_pcg", version = "0.2", optional = true }
# Do not depend on 'getrandom_package' directly; use the 'getrandom' feature!
# This is a dependency because: we forward wasm feature flags
# This is renamed because: we need getrandom to depend on rand_core/getrandom
getrandom_package = { version = "0.1.1", package = "getrandom", optional = true }
log = { version = "0.4.4", optional = true }

[dependencies.packed_simd]
Expand Down

0 comments on commit 0aa4617

Please sign in to comment.