Update Rust crate rand_core to 0.10 #539

Closed
navicore wants to merge 1 commit from renovate/rand_core-0.x into main
Owner

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

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

v0.9.2

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.1

Compare Source

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

v0.9.0

Compare Source

Dependencies and features
API changes
  • Allow rand_core::impls::fill_via_u*_chunks to mutate source (rand#1182)
  • Add fn RngCore::read_adapter implementing std::io::Read (rand#1267)
  • Add trait CryptoBlockRng: BlockRngCore; make trait CryptoRng: RngCore replacing CryptoRngCore (rand#1273)
  • Add traits TryRngCore, TryCryptoRng (rand#1424, rand#1499)
  • Rename fn SeedableRng::from_rng -> try_from_rng and add infallible variant fn from_rng (rand#1424)
  • Rename fn SeedableRng::from_entropy -> from_os_rng and add fallible variant fn try_from_os_rng (rand#1424)
  • Add bounds Clone and AsRef to associated type SeedableRng::Seed (rand#1491)

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • Between 08:00 AM and 09:59 AM, only on Monday and Thursday (* 8-9 * * 1,4)
  • 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 has been generated by Mend Renovate.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [rand_core](https://rust-random.github.io/book) ([source](https://github.com/rust-random/rand_core)) | workspace.dependencies | minor | `0.6` → `0.10` | --- ### Release Notes <details> <summary>rust-random/rand_core (rand_core)</summary> ### [`v0.10.1`](https://github.com/rust-random/rand_core/blob/HEAD/CHANGELOG.md#0101---2026-04-13) [Compare Source](https://github.com/rust-random/rand_core/compare/v0.10.0...v0.10.1) ##### Fixed - Reference to the `rand` crate in `TryRng` docs ([#&#8203;75]) [0.10.1]: https://github.com/rust-random/rand_core/compare/v0.10.0...v0.10.1 [#&#8203;75]: https://github.com/rust-random/rand_core/pull/75 ### [`v0.10.0`](https://github.com/rust-random/rand_core/blob/HEAD/CHANGELOG.md#0100---2026-02-01) 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][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 ([#&#8203;54]) - `Rng` is now an extension trait of `TryRng<Error = Infallible>` ([#&#8203;45]) - `TryRng::Error` is bound on `core::error::Error` instead of `Debug + Display` ([#&#8203;58]) - Relax `Sized` bound on impls of `SeedableRng` ([rand#1641]) ##### Added - `SeedableRng::{fork, try_fork}` methods ([#&#8203;17]) - Re-export of `core::convert::Infallible` ([#&#8203;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 ([#&#8203;28]) - `UnwrapMut` struct and `Rng::unwrap_mut` method ([#&#8203;45]) - `Rng::unwrap_err` method in favor of explicit wrapping in `UnwrapErr` ([#&#8203;53]) ##### API changes to PRNG implementation helpers ##### Added - `BlockRng::reconstruct` and `BlockRng::remaining_results` methods ([#&#8203;36]) - `block::Generator::drop` method ([#&#8203;35]) - `BlockRng::word_offset` method ([#&#8203;44]) ##### Changed - Replaced `le` helper functions with new `utils` helpers ([rand#1667], [#&#8203;34], [#&#8203;38], [#&#8203;45]) - Rename `BlockRng::generate_and_set` method to `reset_and_skip` ([#&#8203;44]) - Rename `block::BlockRngCore` trait to `block::Generator` ([#&#8203;26]) - Rename `BlockRngCore::Results` associated type to `Output` and remove type bounds on it ([#&#8203;26]) ##### Removed - Implementation of `Rng` for `BlockRng`, making the latter more generic ([#&#8203;34]) - `BlockRng64` struct ([#&#8203;34]) - `BlockRng::reset` method ([#&#8203;44]) - `BlockRng::index` method (replaced with `BlockRng::word_offset`) ([#&#8203;44]) - `Generator::Item` associated type ([#&#8203;26]) - `CryptoBlockRng` ([#&#8203;69]) [0.10.0]: https://github.com/rust-random/rand_core/compare/v0.9.3...v0.10.0 [rand#1641]: https://github.com/rust-random/rand/pull/1641 [rand#1667]: https://github.com/rust-random/rand/pull/1667 [rand#1668]: https://github.com/rust-random/rand/pull/1668 [rand#1669]: https://github.com/rust-random/rand/pull/1669 [rand#1674]: https://github.com/rust-random/rand/pull/1674 [#&#8203;17]: https://github.com/rust-random/rand_core/pull/17 [#&#8203;26]: https://github.com/rust-random/rand_core/pull/28 [#&#8203;28]: https://github.com/rust-random/rand_core/pull/28 [#&#8203;34]: https://github.com/rust-random/rand_core/pull/34 [#&#8203;35]: https://github.com/rust-random/rand_core/pull/35 [#&#8203;36]: https://github.com/rust-random/rand_core/pull/36 [#&#8203;38]: https://github.com/rust-random/rand_core/pull/38 [#&#8203;44]: https://github.com/rust-random/rand_core/pull/44 [#&#8203;45]: https://github.com/rust-random/rand_core/pull/45 [#&#8203;53]: https://github.com/rust-random/rand_core/pull/53 [#&#8203;54]: https://github.com/rust-random/rand_core/pull/54 [#&#8203;56]: https://github.com/rust-random/rand_core/pull/56 [#&#8203;58]: https://github.com/rust-random/rand_core/pull/58 [#&#8203;69]: https://github.com/rust-random/rand_core/pull/69 [rust-random/rand]: https://github.com/rust-random/rand [rust-random/rand_core]: https://github.com/rust-random/rand_core ### [`v0.9.4`](https://github.com/rust-random/rand_core/compare/v0.9.3...v0.9.4) [Compare Source](https://github.com/rust-random/rand_core/compare/v0.9.3...v0.9.4) ### [`v0.9.3`](https://github.com/rust-random/rand_core/blob/HEAD/CHANGELOG.md#093---2025-02-29) [Compare Source](https://github.com/rust-random/rand_core/compare/v0.9.2...v0.9.3) ##### Other - Remove `zerocopy` dependency ([rand#1607]) - Deprecate `rand_core::impls::fill_via_u32_chunks`, `fill_via_u64_chunks` ([rand#1607]) [0.9.3]: https://github.com/rust-random/rand_core/compare/v0.9.2...v0.9.3 [rand#1607]: https://github.com/rust-random/rand/pull/1607 ### [`v0.9.2`](https://github.com/rust-random/rand_core/blob/HEAD/CHANGELOG.md#092---2025-02-22) [Compare Source](https://github.com/rust-random/rand_core/compare/v0.9.1...v0.9.2) ##### 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]) [0.9.2]: https://github.com/rust-random/rand_core/compare/v0.9.1...v0.9.2 [rand#1593]: https://github.com/rust-random/rand/pull/1593 [rand#1595]: https://github.com/rust-random/rand/pull/1595 ### [`v0.9.1`](https://github.com/rust-random/rand_core/blob/HEAD/CHANGELOG.md#091---2025-02-16) [Compare Source](https://github.com/rust-random/rand_core/compare/v0.9.0...v0.9.1) ##### API changes - Add `TryRngCore::unwrap_mut`, providing an impl of `RngCore` over `&mut rng` ([rand#1589]) [0.9.1]: https://github.com/rust-random/rand_core/compare/v0.9.0...v0.9.1 [rand#1589]: https://github.com/rust-random/rand/pull/1589 ### [`v0.9.0`](https://github.com/rust-random/rand_core/blob/HEAD/CHANGELOG.md#090---2025-01-27) [Compare Source](https://github.com/rust-random/rand_core/compare/v0.6.4...v0.9.0) ##### Dependencies and features - Bump the MSRV to 1.63.0 ([rand#1536]); note that 1.60.0 may work for dependents when using `--ignore-rust-version` - Update to `getrandom` v0.3.0 ([rand#1558]) - Use `zerocopy` to replace some `unsafe` code ([rand#1349], [rand#1393], [rand#1446], [rand#1502]) - Rename feature `serde1` to `serde` ([rand#1477]) - Rename feature `getrandom` to `os_rng` ([rand#1537]) ##### API changes - Allow `rand_core::impls::fill_via_u*_chunks` to mutate source ([rand#1182]) - Add fn `RngCore::read_adapter` implementing `std::io::Read` ([rand#1267]) - Add trait `CryptoBlockRng: BlockRngCore`; make `trait CryptoRng: RngCore` replacing `CryptoRngCore` ([rand#1273]) - Add traits `TryRngCore`, `TryCryptoRng` ([rand#1424], [rand#1499]) - Rename `fn SeedableRng::from_rng` -> `try_from_rng` and add infallible variant `fn from_rng` ([rand#1424]) - Rename `fn SeedableRng::from_entropy` -> `from_os_rng` and add fallible variant `fn try_from_os_rng` ([rand#1424]) - Add bounds `Clone` and `AsRef` to associated type `SeedableRng::Seed` ([rand#1491]) [0.9.0]: https://github.com/rust-random/rand_core/compare/v0.6.4...v0.9.0 [rand#1182]: https://github.com/rust-random/rand/pull/1182 [rand#1267]: https://github.com/rust-random/rand/pull/1267 [rand#1273]: https://github.com/rust-random/rand/pull/1273 [rand#1349]: https://github.com/rust-random/rand/pull/1349 [rand#1393]: https://github.com/rust-random/rand/pull/1393 [rand#1424]: https://github.com/rust-random/rand/pull/1424 [rand#1446]: https://github.com/rust-random/rand/pull/1446 [rand#1477]: https://github.com/rust-random/rand/pull/1477 [rand#1491]: https://github.com/rust-random/rand/pull/1491 [rand#1499]: https://github.com/rust-random/rand/pull/1499 [rand#1502]: https://github.com/rust-random/rand/pull/1502 [rand#1536]: https://github.com/rust-random/rand/pull/1536 [rand#1537]: https://github.com/rust-random/rand/pull/1537 [rand#1558]: https://github.com/rust-random/rand/pull/1558 </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - Between 08:00 AM and 09:59 AM, only on Monday and Thursday (`* 8-9 * * 1,4`) - 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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yNDkuNiIsInVwZGF0ZWRJblZlciI6IjQzLjI0OS42IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZSIsInJ1c3QiXX0=-->
Update Rust crate rand_core to 0.10
Some checks failed
renovate/artifacts Artifact file update failure
CI - Linux / CI - Linux x86_64 (pull_request) Failing after 13s
f4161402df
Author
Owner

⚠️ 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
error: failed to select a version for `rand_core`.
    ... required by package `seq-runtime v7.7.0 (/tmp/renovate/repos/forgejo/navicore/patch-seq/crates/runtime)`
versions that meet the requirements `^0.10` (locked to 0.10.1) are: 0.10.1

package `seq-runtime` depends on `rand_core` with feature `getrandom` but `rand_core` does not have that feature.


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

### ⚠️ 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 error: failed to select a version for `rand_core`. ... required by package `seq-runtime v7.7.0 (/tmp/renovate/repos/forgejo/navicore/patch-seq/crates/runtime)` versions that meet the requirements `^0.10` (locked to 0.10.1) are: 0.10.1 package `seq-runtime` depends on `rand_core` with feature `getrandom` but `rand_core` does not have that feature. failed to select a version for `rand_core` which could resolve this conflict ```
Author
Owner

ed25519-dalek is locked to 0.6

ed25519-dalek is locked to 0.6
navicore closed this pull request 2026-07-02 11:34:15 +00:00
Author
Owner

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update (0.10). You will get a PR once a newer version is released. To ignore this dependency forever, add it to the ignoreDeps array of your Renovate config.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

### Renovate Ignore Notification Because you closed this PR without merging, Renovate will ignore this update (`0.10`). You will get a PR once a newer version is released. To ignore this dependency forever, add it to the `ignoreDeps` array of your Renovate config. If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.
Some checks failed
renovate/artifacts Artifact file update failure
CI - Linux / CI - Linux x86_64 (pull_request) Failing after 13s

Pull request closed

Sign in to join this conversation.
No description provided.