@@ -10,19 +10,18 @@ categories = ["cryptography", "no-std"]
10
10
rust-version = " 1.83"
11
11
12
12
[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 }
15
15
16
16
# Optional dependencies used in tests and benchmarks
17
17
openssl = { version = " 0.10.39" , optional = true , features = [" vendored" ] }
18
18
rug = { version = " 1.26" , default-features = false , features = [" integer" ], optional = true }
19
19
glass_pumpkin = { version = " 1" , optional = true }
20
20
rayon = { version = " 1" , optional = true }
21
-
22
21
[dev-dependencies ]
23
22
# 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 "
26
25
criterion = { version = " 0.5" , features = [" html_reports" ] }
27
26
num-modular = { version = " 0.5" , features = [" num-bigint" ] }
28
27
num-bigint = " 0.4"
@@ -33,7 +32,7 @@ num_cpus = "1.16"
33
32
34
33
[features ]
35
34
default = [" default-rng" ]
36
- default-rng = [" rand_core/getrandom " ]
35
+ default-rng = [" rand_core/os_rng " ]
37
36
tests-openssl = [" openssl" ]
38
37
tests-gmp = [" rug/std" ]
39
38
tests-glass-pumpkin = [" glass_pumpkin" ]
@@ -53,3 +52,16 @@ harness = false
53
52
[[bench ]]
54
53
name = " cctv"
55
54
harness = 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/1593
67
+ rand_core = { git = " https://github.com/fjarri/rand.git" , branch = " sized" }
0 commit comments