WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit db3d49d

Browse files
authored
Bump rand_core to v0.10.0-rc-2 (#2063)
1 parent d960622 commit db3d49d

File tree

8 files changed

+19
-21
lines changed

8 files changed

+19
-21
lines changed

Cargo.lock

Lines changed: 6 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,7 @@ members = [
1616
[patch.crates-io]
1717
digest = { path = "digest" }
1818
signature = { path = "signature" }
19+
20+
crypto-bigint = { git = "https://github.com/RustCrypto/crypto-bigint", branch = "rand_core/v0.10.0-rc-2" }
21+
ff = { git = "https://github.com/tarcieri/ff", branch = "rand_core/v0.10.0-rc-2" }
22+
group = { git = "https://github.com/tarcieri/group", branch = "rand_core/v0.10.0-rc-2" }

crypto-common/Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@ description = "Common cryptographic traits"
1616
hybrid-array = "0.4"
1717

1818
# optional dependencies
19-
getrandom = { version = "0.3", optional = true }
20-
rand_core = { version = "0.9", optional = true }
19+
getrandom = { version = "0.3", optional = true, default-features = false }
20+
rand_core = { version = "0.10.0-rc-2", optional = true }
2121

2222
[features]
23+
getrandom = ["dep:getrandom"]
2324
rand_core = ["dep:rand_core"]
2425
zeroize = ["hybrid-array/zeroize"]
2526

crypto-common/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ pub mod hazmat;
1414

1515
#[cfg(feature = "getrandom")]
1616
pub use getrandom;
17+
1718
#[cfg(feature = "rand_core")]
1819
pub use rand_core;
1920

elliptic-curve/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ and public/secret keys composed thereof.
2020
base16ct = "0.3"
2121
crypto-bigint = { version = "0.7.0-rc.9", default-features = false, features = ["rand_core", "hybrid-array", "zeroize"] }
2222
hybrid-array = { version = "0.4", default-features = false, features = ["zeroize"] }
23-
rand_core = { version = "0.9.0", default-features = false }
23+
rand_core = { version = "0.10.0-rc-2", default-features = false }
2424
subtle = { version = "2.6", default-features = false }
2525
zeroize = { version = "1.7", default-features = false }
2626

@@ -52,7 +52,6 @@ alloc = [
5252
]
5353
std = [
5454
"alloc",
55-
"rand_core/std",
5655
"once_cell?/std",
5756
"pkcs8?/std",
5857
"sec1?/std"

kem/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ description = "Traits for key encapsulation mechanisms"
1414

1515
[dependencies]
1616
crypto-common = { version = "0.2.0-rc.4", features = ["rand_core"], path = "../crypto-common" }
17-
rand_core = "0.9"
17+
rand_core = "0.10.0-rc-2"
1818
zeroize = { version = "1.7", default-features = false }
1919

2020
[package.metadata.docs.rs]

password-hash/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ base64ct = "1.7"
2121
subtle = { version = "2", default-features = false }
2222

2323
# optional dependencies
24-
rand_core = { version = "0.9", optional = true, default-features = false }
24+
rand_core = { version = "0.10.0-rc-2", optional = true, default-features = false }
2525

2626
[features]
2727
default = ["rand_core"]
2828
rand_core = ["dep:rand_core"]
29-
os_rng = ["rand_core", "rand_core/os_rng"]
29+
#os_rng = ["rand_core", "rand_core/os_rng"]
3030
alloc = ["base64ct/alloc"]
3131

3232
[package.metadata.docs.rs]

signature/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ description = "Traits for cryptographic signature algorithms (e.g. ECDSA, Ed2551
1414

1515
[dependencies]
1616
digest = { version = "0.11.0-rc.1", optional = true, default-features = false }
17-
rand_core = { version = "0.9", optional = true, default-features = false }
17+
rand_core = { version = "0.10.0-rc-2", optional = true, default-features = false }
1818

1919
[features]
2020
alloc = []

0 commit comments

Comments
 (0)