Skip to content

Update rand dependency to latest rc#48

Merged
dhardy merged 1 commit intorust-random:masterfrom
mstoeckl:update-rand
Feb 8, 2026
Merged

Update rand dependency to latest rc#48
dhardy merged 1 commit intorust-random:masterfrom
mstoeckl:update-rand

Conversation

@mstoeckl
Copy link
Copy Markdown
Contributor

@mstoeckl mstoeckl commented Feb 7, 2026

  • Added a CHANGELOG.md entry

Summary

This updates rand_distr's dependencies on rand and rand_pcg to the latest version.

Motivation

Trying to fix CI.

Details

rand's RngCore/Rng traits were replaced by TryRng/Rng/RngExt.

No changelog entry is added, since this is a routine internal change. (I assume the time to mention it in the changelog will be when rand 0.10.0 is released and rand_distr is updated to use it.)

Also bump serde to resolve a version selection issue.
Copy link
Copy Markdown
Member

@dhardy dhardy left a comment

Choose a reason for hiding this comment

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

LGTM. There shouldn't be any more code changes required for v0.10.

Comment thread Cargo.toml
rand_pcg = { version = "0.10.0-rc.9" }
# For inline examples
rand = { version = "0.10.0-rc.5", features = ["small_rng"] }
rand = { version = "0.10.0-rc.9", features = [] }
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I guess we do not need this line anymore

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It does enable default features; do we use them? Probably.

Copy link
Copy Markdown
Contributor Author

@mstoeckl mstoeckl Feb 7, 2026

Choose a reason for hiding this comment

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

Yes, doc tests use rand::rng() and do not build without this line.

@dhardy dhardy merged commit 06f586e into rust-random:master Feb 8, 2026
14 checks passed
Alphare added a commit to Alphare/rand_distr that referenced this pull request Feb 9, 2026
Pull request rust-random#48 was unlucky enough to bump the day before the final
release. So far it seems like the final release is just a retag of rc10.
Alphare added a commit to Alphare/rand_distr that referenced this pull request Feb 10, 2026
Pull request rust-random#48 was unlucky enough to bump the day before the final
release. So far it seems like the final release is just a retag of rc10.
Alphare added a commit to Alphare/rand_distr that referenced this pull request Feb 10, 2026
Pull request rust-random#48 was unlucky enough to bump the day before the final
release. So far it seems like the final release is just a retag of rc10.
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