Skip to content

Conversation

@tarcieri
Copy link
Contributor

@tarcieri tarcieri commented Nov 6, 2025

Prior to a final stable release of the @RustCrypto dependencies used by the dalek crates, we are going to target rand_core v0.10.

This updates the rand and rand_core dependencies as well as the aforementioned @RustCrypto dependencies to be compatible with rand_core v0.10, which incurred a few API changes:

  • rand_core no longer includes OsRng, so this replaces the os_rng features with getrandom features (same thing we did for @RustCrypto) which uses the getrandom crate directly
  • For dev-dependencies it just migrates straight to rand, replacing rand_chacha with the chacha feature of rand (which pulls in chacha20), and sourcing OsRng from rand, its new home (for now)

Depends on:

@tarcieri tarcieri requested a review from rozbb November 6, 2025 03:43
@rozbb
Copy link
Contributor

rozbb commented Nov 7, 2025

Looks good so far, thank you for doing this!

Prior to a final stable release of the @RustCrypto dependencies used by
the dalek crates, we are going to target `rand_core` v0.10.

This updates the `rand` and `rand_core` dependencies as well as the
aforementioned @RustCrypto dependencies to be compatible with
`rand_core` v0.10, which incurred a few API changes:

- `rand_core` no longer includes `OsRng`, so this replaces the `os_rng`
  features with `getrandom` features (same thing we did for @RustCrypto)
  which uses the `getrandom` crate directly
- For `dev-dependencies` it just migrates straight to `rand`, replacing
  `rand_chacha` with the `chacha` feature of `rand` (which pulls in
  `chacha20`), and sourcing `OsRng` from `rand`, its new home (for now)
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.

3 participants