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

Commit

Permalink
Move rand/wasm-bindgen feature dependency to bindings/wasm/Cargo.toml
Browse files Browse the repository at this point in the history
instead of iota-streams-app/Cargo.toml
  • Loading branch information
Arnau Orriols committed Jan 25, 2022
1 parent 7489a03 commit acb97b4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions bindings/wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ futures = { version = "0.3.8", default-features = false, features = ["executor"]

# Needed to specify the js/wasm feature for a sub-crate
getrandom = {version = "0.2.2", features = ["js"]}
rand = { version = "0.7", default-features = false, features = ["wasm-bindgen"] }

[dev-dependencies]
wasm-bindgen-test = "0.3.28"
4 changes: 1 addition & 3 deletions iota-streams-app/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ tangle = []
client = ["iota-client/default", "futures", "tangle", "std"]
# `iota-client` support is implemented as a feature (as opposed to a separate crate) in order to
# implement Transport for iota_client::Client.
wasm-client = ["iota-client/wasm", "rand/wasm-bindgen", "futures", "tangle", "std"]
wasm-client = ["iota-client/wasm", "futures", "tangle", "std"]
sync-parking-lot = ["iota-streams-core/sync-parking-lot"]
sync-spin = ["iota-streams-core/sync-spin"]

Expand All @@ -32,8 +32,6 @@ anyhow = { version = "1.0.26", default-features = false }
hex = { version = "0.4", default-features = false, optional = false }
futures = { version = "0.3.8", default-features = false, features = ["executor"], optional = true }

rand = { version = "0.7", default-features = false }

# Dependencies for "client" feature
iota-client = { git = "https://github.com/iotaledger/iota.rs", rev = "ee19ec4", default-features = false, optional = true }

Expand Down
1 change: 0 additions & 1 deletion iota-streams-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ sync-parking-lot = ["parking_lot"]
[dependencies]
# digest version should correspond to curve25519-dalek's version
digest = { version = "0.9", default-features = false }
#rand_core = { version = "0.5", default-features = false }
rand = { version = "0.7", default-features = false}
hashbrown = { version = "0.11.2", default-features = false, optional = false, features = ["ahash"] }
hex = { version = "0.4", default-features = false, optional = false, features = ["alloc"] }
Expand Down

0 comments on commit acb97b4

Please sign in to comment.