@@ -10,19 +10,18 @@ categories = ["cryptography", "no-std"]
1010rust-version = " 1.83"
1111
1212[dependencies ]
13- crypto-bigint = { version = " 0.6 " , default-features = false , features = [" rand_core" ] }
14- rand_core = { version = " 0.6.4 " , default-features = false }
13+ crypto-bigint = { version = " 0.7.0-pre " , default-features = false , features = [" rand_core" ] }
14+ rand_core = { version = " 0.9.0 " , default-features = false }
1515
1616# Optional dependencies used in tests and benchmarks
1717openssl = { version = " 0.10.39" , optional = true , features = [" vendored" ] }
1818rug = { version = " 1.26" , default-features = false , features = [" integer" ], optional = true }
1919glass_pumpkin = { version = " 1" , optional = true }
2020rayon = { version = " 1" , optional = true }
21-
2221[dev-dependencies ]
2322# need `crypto-bigint` with `alloc` to test `BoxedUint`
24- crypto-bigint = { version = " 0.6.1 " , default-features = false , features = [" alloc" ] }
25- rand_chacha = " 0.3 "
23+ crypto-bigint = { version = " 0.7.0-pre " , default-features = false , features = [" alloc" ] }
24+ rand_chacha = " 0.9 "
2625criterion = { version = " 0.5" , features = [" html_reports" ] }
2726num-modular = { version = " 0.5" , features = [" num-bigint" ] }
2827num-bigint = " 0.4"
@@ -33,7 +32,7 @@ num_cpus = "1.16"
3332
3433[features ]
3534default = [" default-rng" ]
36- default-rng = [" rand_core/getrandom " ]
35+ default-rng = [" rand_core/os_rng " ]
3736tests-openssl = [" openssl" ]
3837tests-gmp = [" rug/std" ]
3938tests-glass-pumpkin = [" glass_pumpkin" ]
@@ -53,3 +52,16 @@ harness = false
5352[[bench ]]
5453name = " cctv"
5554harness = false
55+
56+ [patch .crates-io ]
57+ # https://github.com/RustCrypto/crypto-bigint/pull/762
58+ # https://github.com/RustCrypto/crypto-bigint/pull/765
59+ crypto-bigint = { git = " https://github.com/RustCrypto/crypto-bigint.git" }
60+
61+ # https://github.com/LF-Decentralized-Trust-labs/agora-glass_pumpkin/pull/26
62+ glass_pumpkin = { git = " https://github.com/baloo/agora-glass_pumpkin.git" , branch = " baloo/rand-core/0.9" }
63+ # https://github.com/rust-num/num-bigint/pull/317
64+ num-bigint = { git = " https://github.com/bionicles/num-bigint.git" }
65+
66+ # https://github.com/rust-random/rand/pull/1592
67+ rand_core = { git = " https://github.com/baloo/rand.git" , branch = " baloo/rand_core/relax-blanket" }
0 commit comments