Skip to content

chore: upgrade Rust crate dependencies to latest major versions - #296

Merged
telleroutlook merged 1 commit into
mainfrom
deps/upgrade-2026-07-29
Jul 29, 2026
Merged

chore: upgrade Rust crate dependencies to latest major versions#296
telleroutlook merged 1 commit into
mainfrom
deps/upgrade-2026-07-29

Conversation

@telleroutlook

Copy link
Copy Markdown
Contributor

Bumps crate versions to latest releases. All 20 unit tests pass locally.

Crate Old New Notes
sha2 0.10 0.11 digest trait update
ed25519-dalek 2 3 requires rand_core 0.10
rand 0.8 0.10 OsRng removed → use rand::rng()
criterion 0.5 0.8 workspace dep

Code change: rand 0.10 removed rand::rngs::OsRng; all test callsites updated to rand::rng() (returns ThreadRng which implements CryptoRng).

Bump crate versions in Cargo.toml and update Cargo.lock:

- sha2: 0.10 -> 0.11
- ed25519-dalek: 2 -> 3
- rand: 0.8 -> 0.10 (rand_core 0.10 required by ed25519-dalek 3)
- criterion: 0.5 -> 0.8 (workspace dep)

Code fix: rand 0.10 removed OsRng from rand::rngs; replace all
  DalekSigningKey::generate(&mut rand::rngs::OsRng)
with
  DalekSigningKey::generate(&mut rand::rng())
which uses ThreadRng (implements CryptoRng) as the CSPRNG.

All 20 unit tests pass locally.
@telleroutlook
telleroutlook merged commit 4b0098a into main Jul 29, 2026
3 checks passed
@telleroutlook
telleroutlook deleted the deps/upgrade-2026-07-29 branch July 29, 2026 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant