Skip to content

Bump rand_core from v0.9 to v0.10.0-rc-2 - #842

Merged
tarcieri merged 4 commits into
mainfrom
rand_core/v0.10-rc
Nov 22, 2025
Merged

Bump rand_core from v0.9 to v0.10.0-rc-2#842
tarcieri merged 4 commits into
mainfrom
rand_core/v0.10-rc

Conversation

@tarcieri

@tarcieri tarcieri commented Nov 6, 2025

Copy link
Copy Markdown
Contributor

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
Comment thread Cargo.toml Outdated
@rozbb

rozbb commented Nov 7, 2025

Copy link
Copy Markdown
Contributor

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)
These are (hopefully temporary) forks of `ff` and `group` which have
crate releases which have been updated to use  `rand_core` v0.10.0
prereleases
@tarcieri tarcieri changed the title [WIP] Bump rand_core from v0.9 to v0.10.0-rc-2 Bump rand_core from v0.9 to v0.10.0-rc-2 Nov 22, 2025
@tarcieri
tarcieri marked this pull request as ready for review November 22, 2025 00:23
@tarcieri

Copy link
Copy Markdown
Contributor Author

To work around the issue of getting ff and group updated, I have forked them under the @RustCrypto organization and released crates which have been bumped to use rand_core v0.10.0-rc-2:

@rozbb rozbb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One nit on latest rand version. You can ignore tho bc it’ll have to bump eventually anyway

Comment thread curve25519-dalek/Cargo.toml Outdated
Comment thread ed25519-dalek/Cargo.toml Outdated
Comment thread x25519-dalek/Cargo.toml Outdated
@tarcieri
tarcieri merged commit 23d0d2c into main Nov 22, 2025
50 checks passed
@tarcieri
tarcieri deleted the rand_core/v0.10-rc branch November 22, 2025 17:37
carloskiki pushed a commit to carloskiki/curve25519-dalek that referenced this pull request Dec 26, 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)

This PR also switches to using the `rustcrypto-ff`/`rustcrypto-group` crates
(hopefully temporary) which are forks of `ff` and `group` which have crate
releases that have been updated to use  `rand_core` v0.10.0 prereleases.
carloskiki pushed a commit to carloskiki/curve25519-dalek that referenced this pull request Jan 3, 2026
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)

This PR also switches to using the `rustcrypto-ff`/`rustcrypto-group` crates
(hopefully temporary) which are forks of `ff` and `group` which have crate
releases that have been updated to use  `rand_core` v0.10.0 prereleases.
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.

2 participants