Skip to content

Commit

Permalink
Partial migration to rand_core v0.9 (#1746)
Browse files Browse the repository at this point in the history
`kem` and `elliptic-curve` can not be migrated because of upstream
dependencies which still use `rand_core` v0.6 and expose it in their
public API.

`getrandom` crate features are renamed to `os_rng` following the similar
change in `rand_core`.
  • Loading branch information
newpavlov authored Feb 12, 2025
1 parent efe27ed commit 30b826f
Show file tree
Hide file tree
Showing 17 changed files with 206 additions and 134 deletions.
97 changes: 63 additions & 34 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions aead/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ categories = ["cryptography", "no-std"]
rust-version = "1.81"

[dependencies]
crypto-common = "0.2.0-rc.0"
crypto-common = "0.2.0-rc.1"

# optional dependencies
arrayvec = { version = "0.7", optional = true, default-features = false }
Expand All @@ -28,7 +28,7 @@ heapless = { version = "0.8", optional = true, default-features = false }
default = ["rand_core"]
alloc = []
dev = ["blobby"]
getrandom = ["crypto-common/getrandom"]
os_rng = ["crypto-common/os_rng", "rand_core"]
rand_core = ["crypto-common/rand_core"]

[package.metadata.docs.rs]
Expand Down
Loading

0 comments on commit 30b826f

Please sign in to comment.