Skip to content

Upgrade to rand 0.10#161

Merged
Liam-DeVoe merged 4 commits into
hegeldev:mainfrom
benbrittain:push-vmlotklnppwq
Apr 1, 2026
Merged

Upgrade to rand 0.10#161
Liam-DeVoe merged 4 commits into
hegeldev:mainfrom
benbrittain:push-vmlotklnppwq

Conversation

@benbrittain
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Member

@Liam-DeVoe Liam-DeVoe left a comment

Choose a reason for hiding this comment

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

Thanks Benjamin! Appreciate the great patch.

I found the following patch notes helpful when reviewing this PR:

I also had a long conversation with claude that convinced me the rust ecosystem has implicitly adopted the following policy: say A depends on B and exposes some types from B in its public API. If B releases a breaking version, A is expected to update to the latest B version unconditionally. Unlike Python, where I might support years of old dependency versions (Hypothesis does this, at moderate effort to us as maintainers but great benefit to our users), Rust expects the ecosystem to move to the latest version of its dependencies basically immediately.

I found https://github.com/dtolnay/semver-trick and the "libcpocalypse" mentioned there especially helpful as context.

(I'm sure this is all obvious to long-time rust experts!)

Comment thread src/generators/random.rs
Comment on lines +51 to +54
impl TryRng for HegelRandom {
type Error = Infallible;

fn try_next_u32(&mut self) -> Result<u32, Self::Error> {
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.

self-note: RngCore (renamed Rng) can't be impl'd anymore. Instead you are meant to impl TryRng with type Error = Infallible. rust-random/rand_core#45

Copy link
Copy Markdown
Member

@Liam-DeVoe Liam-DeVoe left a comment

Choose a reason for hiding this comment

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

Forgot one comment! Happy to merge once that's addressed.

Comment thread RELEASE.md Outdated
Co-authored-by: Liam DeVoe <orionldevoe@gmail.com>
@Liam-DeVoe Liam-DeVoe enabled auto-merge March 31, 2026 15:20
@Liam-DeVoe Liam-DeVoe disabled auto-merge March 31, 2026 15:21
@Liam-DeVoe Liam-DeVoe enabled auto-merge March 31, 2026 15:22
@DRMacIver
Copy link
Copy Markdown
Member

Sorry about the coverage build problem. Teething issues on new infra. Will figure this out and have a fix for you shortly.

@DRMacIver
Copy link
Copy Markdown
Member

DRMacIver commented Apr 1, 2026

If you rebase on top of main the coverage job should be working now (sorry I actually fixed this yesterday evening right before dashing out the door and forgot to tell you)

@Liam-DeVoe Liam-DeVoe merged commit 3c1ede1 into hegeldev:main Apr 1, 2026
14 checks passed
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