Skip to content

Commit

Permalink
fix shared/sdk build without rand
Browse files Browse the repository at this point in the history
  • Loading branch information
tzemanovic committed Jan 8, 2024
1 parent 15ccaa3 commit 9c68c1c
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apps/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ integration = []

[dependencies]
namada = {path = "../shared", features = ["multicore", "http-client", "tendermint-rpc", "std"]}
namada_sdk = {path = "../sdk", default-features = false, features = ["wasm-runtime", "download-params", "std"]}
namada_sdk = {path = "../sdk", default-features = false, features = ["wasm-runtime", "download-params", "std", "rand"]}
namada_test_utils = {path = "../test_utils", optional = true}

ark-serialize.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion benches/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ path = "host_env.rs"
[dependencies]

[dev-dependencies]
namada = { path = "../shared", features = ["std", "testing"] }
namada = { path = "../shared", features = ["rand", "testing"] }
namada_apps = { path = "../apps", features = ["benches"] }
masp_primitives.workspace = true
borsh.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion encoding_spec/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ version.workspace = true
default = []

[dependencies]
namada = { path = "../shared", features = ["std", "tendermint-rpc", "download-params"] }
namada = { path = "../shared", features = ["rand", "tendermint-rpc", "download-params"] }
borsh.workspace = true
itertools.workspace = true
lazy_static.workspace = true
Expand Down
5 changes: 3 additions & 2 deletions sdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@ version.workspace = true
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[features]
default = ["tendermint-rpc", "download-params", "std"]
default = ["tendermint-rpc", "download-params", "std", "rand"]

multicore = ["masp_proofs/multicore"]

namada-sdk = ["tendermint-rpc", "masp_primitives/transparent-inputs"]

std = ["fd-lock", "dep:rand", "rand_core", "namada_core/rand"]
std = ["fd-lock"]
rand = ["dep:rand", "rand_core", "namada_core/rand"]

# tendermint-rpc support
tendermint-rpc = ["async-client", "dep:tendermint-rpc"]
Expand Down
5 changes: 3 additions & 2 deletions shared/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ version.workspace = true
[features]
default = ["wasm-runtime"]
mainnet = ["namada_core/mainnet"]
std = ["fd-lock", "namada_sdk/std"]
std = ["namada_sdk/std"]
wasm-runtime = [
"namada_core/wasm-runtime",
"loupe",
Expand Down Expand Up @@ -62,6 +62,7 @@ namada-sdk = [
"tendermint-rpc",
"masp_primitives/transparent-inputs",
"namada_sdk/namada-sdk",
"namada_sdk/rand",
]

multicore = [
Expand All @@ -71,6 +72,7 @@ multicore = [
]
# Download MASP params if they're not present
download-params = ["namada_sdk/download-params"]
rand = ["namada_sdk/rand"]

[dependencies]
namada_account = { path = "../account" }
Expand Down Expand Up @@ -101,7 +103,6 @@ derivative.workspace = true
ethbridge-bridge-contract.workspace = true
ethers.workspace = true
eyre.workspace = true
fd-lock = { workspace = true, optional = true }
futures.workspace = true
itertools.workspace = true
loupe = { version = "0.1.3", optional = true }
Expand Down

0 comments on commit 9c68c1c

Please sign in to comment.