Skip to content

Commit

Permalink
chore: fix feature dependencies in near-crypto crate (#11967)
Browse files Browse the repository at this point in the history
Unfortunately Rust does not appear to have a neat way to enable
`getrandom` feature of `rand` that's re-exported by `secp256k1`
requiring some synchronization between versions in the future.
  • Loading branch information
nagisa authored and VanBarbascu committed Aug 20, 2024
1 parent cc4b4c0 commit 6be176a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.lock

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

3 changes: 2 additions & 1 deletion core/crypto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ stdx.workspace = true
subtle.workspace = true
thiserror.workspace = true
near-config-utils.workspace = true
rand = { workspace = true, optional = true }

[dev-dependencies]
bolero.workspace = true
Expand All @@ -42,4 +43,4 @@ curve25519-dalek = { workspace = true, features = ["rand_core"] }

[features]
default = ["rand"]
rand = ["secp256k1/rand", "ed25519-dalek/rand_core"]
rand = ["secp256k1/rand", "rand/getrandom", "ed25519-dalek/rand_core"]

0 comments on commit 6be176a

Please sign in to comment.