Skip to content

Upgrade to rand v0.10 and split rand_core v0.10#338

Draft
cuviper wants to merge 2 commits intorust-num:masterfrom
cuviper:rand-0.10
Draft

Upgrade to rand v0.10 and split rand_core v0.10#338
cuviper wants to merge 2 commits intorust-num:masterfrom
cuviper:rand-0.10

Conversation

@cuviper
Copy link
Member

@cuviper cuviper commented Feb 4, 2026

This now implements RandBigInt with only rand_core::Rng to allow a
slimmer dependency tree. The other distribution-related types still
require rand for its traits though.

Our gen_big* methods are also renamed to random_big* to match the
change that rand had made in 0.9. The old names are deprecated, but
still present, simply forwarding to the new names.

Hat tip to @bionicles and @divergentdave as well for their rand v0.9 PRs (#317, #322),
and I apologize for never getting around to those. Let's reset that debt by getting
0.10 much sooner!

This now implements `RandBigInt` with only `rand_core::Rng` to allow a
slimmer dependency tree. The other distribution-related types still
require `rand` for its traits though.

Our `gen_big*` methods are also renamed to `random_big*` to match the
change that `rand` had made in 0.9. The old names are deprecated, but
still present, simply forwarding to the new names.
[dependencies.rand]
optional = true
version = "0.8"
version = "0.10.0-rc.9"
Copy link
Member Author

Choose a reason for hiding this comment

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

I'll wait in draft until 0.10.0 is released.

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.

1 participant