Skip to content

Update Rust crate rand_core to 0.10 - #558

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/rand_core-0.x
Open

Update Rust crate rand_core to 0.10#558
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/rand_core-0.x

Conversation

@renovate

@renovate renovate Bot commented Jan 12, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change
rand_core (source) workspace.dependencies minor 0.60.10

Release Notes

rust-random/rand_core (rand_core)

v0.10.1

Compare Source

Fixed
  • Reference to the rand crate in TryRng docs (#​75)

v0.10.0

This release makes a number of significant changes which we hope will be the
last significant breakage before 1.0. Code has moved from the rust-random/rand
repository to its own rust-random/rand_core.

User-facing API changes
Changed
  • Edition changed to 2024 and MSRV bumped to 1.85 (rand#1668)
  • RngCore and TryRngCore are renamed to Rng and TryRng respectively (#​54)
  • Rng is now an extension trait of TryRng<Error = Infallible> (#​45)
  • TryRng::Error is bound on core::error::Error instead of Debug + Display (#​58)
  • Relax Sized bound on impls of SeedableRng (rand#1641)
Added
  • SeedableRng::{fork, try_fork} methods (#​17)
  • Re-export of core::convert::Infallible (#​56)
Removed
  • TryRng::read_adapter method (replaced with rand::RngReader) (rand#1669)
  • os_rng crate feature (rand#1674)
  • OsRng and OsError structs (rand#1674)
  • SeedableRng::from_os_rng and SeedableRng::try_from_os_rng methods (rand#1674)
  • getrandom dependency (rand#1674)
  • std crate feature (rand#1674)
  • Optional serde dependency (#​28)
  • UnwrapMut struct and Rng::unwrap_mut method (#​45)
  • Rng::unwrap_err method in favor of explicit wrapping in UnwrapErr (#​53)
API changes to PRNG implementation helpers
Added
  • BlockRng::reconstruct and BlockRng::remaining_results methods (#​36)
  • block::Generator::drop method (#​35)
  • BlockRng::word_offset method (#​44)
Changed
  • Replaced le helper functions with new utils helpers (rand#1667, #​34, #​38, #​45)
  • Rename BlockRng::generate_and_set method to reset_and_skip (#​44)
  • Rename block::BlockRngCore trait to block::Generator (#​26)
  • Rename BlockRngCore::Results associated type to Output and remove type bounds on it (#​26)
Removed
  • Implementation of Rng for BlockRng, making the latter more generic (#​34)
  • BlockRng64 struct (#​34)
  • BlockRng::reset method (#​44)
  • BlockRng::index method (replaced with BlockRng::word_offset) (#​44)
  • Generator::Item associated type (#​26)
  • CryptoBlockRng (#​69)

v0.9.4

Compare Source

v0.9.3

Compare Source

This release makes a number of significant changes which we hope will be the
last significant breakage before 1.0. Code has moved from the rust-random/rand
repository to its own rust-random/rand_core.

User-facing API changes
Changed
  • Edition changed to 2024 and MSRV bumped to 1.85 (rand#1668)
  • RngCore and TryRngCore are renamed to Rng and TryRng respectively (#​54)
  • Rng is now an extension trait of TryRng<Error = Infallible> (#​45)
  • TryRng::Error is bound on core::error::Error instead of Debug + Display (#​58)
  • Relax Sized bound on impls of SeedableRng (rand#1641)
Added
  • SeedableRng::{fork, try_fork} methods (#​17)
  • Re-export of core::convert::Infallible (#​56)
Removed
  • TryRng::read_adapter method (replaced with rand::RngReader) (rand#1669)
  • os_rng crate feature (rand#1674)
  • OsRng and OsError structs (rand#1674)
  • SeedableRng::from_os_rng and SeedableRng::try_from_os_rng methods (rand#1674)
  • getrandom dependency (rand#1674)
  • std crate feature (rand#1674)
  • Optional serde dependency (#​28)
  • UnwrapMut struct and Rng::unwrap_mut method (#​45)
  • Rng::unwrap_err method in favor of explicit wrapping in UnwrapErr (#​53)
API changes to PRNG implementation helpers
Added
  • BlockRng::reconstruct and BlockRng::remaining_results methods (#​36)
  • block::Generator::drop method (#​35)
  • BlockRng::word_offset method (#​44)
Changed
  • Replaced le helper functions with new utils helpers (rand#1667, #​34, #​38, #​45)
  • Rename BlockRng::generate_and_set method to reset_and_skip (#​44)
  • Rename block::BlockRngCore trait to block::Generator (#​26)
  • Rename BlockRngCore::Results associated type to Output and remove type bounds on it (#​26)
Removed
  • Implementation of Rng for BlockRng, making the latter more generic (#​34)
  • BlockRng64 struct (#​34)
  • BlockRng::reset method (#​44)
  • BlockRng::index method (replaced with BlockRng::word_offset) (#​44)
  • Generator::Item associated type (#​26)
  • CryptoBlockRng (#​69)

v0.9.2

Compare Source

Other
  • Remove zerocopy dependency (rand#1607)
  • Deprecate rand_core::impls::fill_via_u32_chunks, fill_via_u64_chunks (rand#1607)

v0.9.1

Compare Source

API changes
  • Relax Sized bound on impls of TryRngCore, TryCryptoRng and UnwrapMut (rand#1593)
  • Add UnwrapMut::re to reborrow the inner rng with a tighter lifetime (rand#1595)

v0.9.0

Compare Source

API changes
  • Add TryRngCore::unwrap_mut, providing an impl of RngCore over &mut rng (rand#1589)

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the dependencies Pull requests that update a dependency file label Jan 12, 2026
@renovate
renovate Bot force-pushed the renovate/rand_core-0.x branch 2 times, most recently from 9832573 to 896010a Compare January 13, 2026 16:02
@renovate
renovate Bot force-pushed the renovate/rand_core-0.x branch from 896010a to 0a40ecd Compare February 1, 2026 14:05
@renovate renovate Bot changed the title Update Rust crate rand_core to 0.9 Update Rust crate rand_core to 0.10 Feb 1, 2026
@renovate
renovate Bot force-pushed the renovate/rand_core-0.x branch from 0a40ecd to 9cfe5fe Compare March 13, 2026 11:03
@renovate
renovate Bot force-pushed the renovate/rand_core-0.x branch from 9cfe5fe to cea1376 Compare April 13, 2026 17:42
@renovate
renovate Bot force-pushed the renovate/rand_core-0.x branch from cea1376 to abc645d Compare May 18, 2026 15:00
@renovate
renovate Bot force-pushed the renovate/rand_core-0.x branch from abc645d to a1aedf3 Compare July 31, 2026 12:51
@renovate

renovate Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor Author

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: Cargo.lock
Command failed: cargo update --config net.git-fetch-with-cli=true --manifest-path Cargo.toml --workspace
    Updating crates.io index
error: failed to select a version for `rand_core`.
    ... required by package `pczt v0.9.1 (/tmp/renovate/repos/github/nerdcash/Nerdbank.Cryptocurrencies/external/librustzcash/pczt)`
    ... which satisfies path dependency `pczt` (locked to 0.9.1) of package `zcash_client_backend v0.24.0-rc.4 (/tmp/renovate/repos/github/nerdcash/Nerdbank.Cryptocurrencies/external/librustzcash/zcash_client_backend)`
    ... which satisfies path dependency `zcash_client_backend` (locked to 0.24.0-rc.4) of package `nerdbank-zcash-rust v0.2.0 (/tmp/renovate/repos/github/nerdcash/Nerdbank.Cryptocurrencies/src/nerdbank-zcash-rust)`
versions that meet the requirements `^0.10` are: 0.10.1, 0.10.0

package `pczt` depends on `rand_core` with feature `getrandom` but `rand_core` does not have that feature.


all possible versions conflict with previously selected packages

  previously selected package `rand_core v0.10.0`
    ... which satisfies dependency `rand_core = "^0.10"` of package `zcash_client_backend v0.24.0-rc.4 (/tmp/renovate/repos/github/nerdcash/Nerdbank.Cryptocurrencies/external/librustzcash/zcash_client_backend)`
    ... which satisfies path dependency `zcash_client_backend` (locked to 0.24.0-rc.4) of package `nerdbank-zcash-rust v0.2.0 (/tmp/renovate/repos/github/nerdcash/Nerdbank.Cryptocurrencies/src/nerdbank-zcash-rust)`

failed to select a version for `rand_core` which could resolve this conflict

@AArnott

AArnott commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator

Attempted to rebase this update onto current main and resolve the failure.

rand_core 0.10 removes the getrandom feature. Workspace-pinning rand_core = 0.10 then fails resolution because pczt (via librustzcash) still requests rand_core with feature getrandom.

This looks blocked until downstream crates (especially pczt / librustzcash) support rand_core 0.10's feature set. Not including this in the bulk dependency PR for now.

@AArnott AArnott mentioned this pull request Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant