Skip to content

Commit

Permalink
Merge pull request #74 from baloo/baloo/rand_core-0.9
Browse files Browse the repository at this point in the history
bump `rand_core` from `0.6.4` to `0.9.1`
  • Loading branch information
fjarri authored Feb 18, 2025
2 parents 63c2e83 + a6272c5 commit a3c1206
Show file tree
Hide file tree
Showing 10 changed files with 228 additions and 166 deletions.
21 changes: 15 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,18 @@ categories = ["cryptography", "no-std"]
rust-version = "1.83"

[dependencies]
crypto-bigint = { version = "0.6", default-features = false, features = ["rand_core"] }
rand_core = { version = "0.6.4", default-features = false }
crypto-bigint = { version = "0.7.0-pre", default-features = false, features = ["rand_core"] }
rand_core = { version = "0.9.0", default-features = false }

# Optional dependencies used in tests and benchmarks
openssl = { version = "0.10.39", optional = true, features = ["vendored"] }
rug = { version = "1.26", default-features = false, features = ["integer"], optional = true }
glass_pumpkin = { version = "1", optional = true }
rayon = { version = "1", optional = true }

[dev-dependencies]
# need `crypto-bigint` with `alloc` to test `BoxedUint`
crypto-bigint = { version = "0.6.1", default-features = false, features = ["alloc"] }
rand_chacha = "0.3"
crypto-bigint = { version = "0.7.0-pre", default-features = false, features = ["alloc"] }
rand_chacha = "0.9"
criterion = { version = "0.5", features = ["html_reports"] }
num-modular = { version = "0.5", features = ["num-bigint"] }
num-bigint = "0.4"
Expand All @@ -33,7 +32,7 @@ num_cpus = "1.16"

[features]
default = ["default-rng"]
default-rng = ["rand_core/getrandom"]
default-rng = ["rand_core/os_rng"]
tests-openssl = ["openssl"]
tests-gmp = ["rug/std"]
tests-glass-pumpkin = ["glass_pumpkin"]
Expand All @@ -53,3 +52,13 @@ harness = false
[[bench]]
name = "cctv"
harness = false

[patch.crates-io]
# https://github.com/RustCrypto/crypto-bigint/pull/762
# https://github.com/RustCrypto/crypto-bigint/pull/765
crypto-bigint = { git = "https://github.com/RustCrypto/crypto-bigint.git" }

# https://github.com/LF-Decentralized-Trust-labs/agora-glass_pumpkin/pull/26
glass_pumpkin = { git = "https://github.com/baloo/agora-glass_pumpkin.git", branch = "baloo/rand-core/0.9" }
# https://github.com/rust-num/num-bigint/pull/317
num-bigint = { git = "https://github.com/bionicles/num-bigint.git" }
Loading

0 comments on commit a3c1206

Please sign in to comment.