Skip to content

chore: upgrade to Rng 0.10 - #284

Merged
juan518munoz merged 3 commits into
nextfrom
jmunoz-update-miden-deps
Aug 18, 2026
Merged

chore: upgrade to Rng 0.10#284
juan518munoz merged 3 commits into
nextfrom
jmunoz-update-miden-deps

Conversation

@juan518munoz

@juan518munoz juan518munoz commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

Mostly superseeded by #285

Only relevant changes that remain applicable:

  • Raise declared MSRV from 1.93 to 1.96.1, matching other miden crates.
  • Bump rand 0.9 to 0.10, aligning with miden-client.
  • Swap Rng for RngExt and drop direct rand_chacha, both forced by rand 0.10.

Comment thread Cargo.toml
repository = "https://github.com/0xMiden/faucet"
rust-version = "1.93"
version = "0.16.0-alpha.1"
rust-version = "1.96.1"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

is the patch version really needed? lets remove it otherwise

Comment thread Cargo.toml Outdated
rust-version = "1.93"
version = "0.16.0-alpha.1"
rust-version = "1.96.1"
version = "0.16.0-alpha.2"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

should we switch to -rc.1?

Aligns the faucet with miden-client 0.16.0-rc.1, which is already on rand 0.10.

rand 0.10 split the Rng trait: Rng is now the rand_core trait and random(),
random_range() and fill() moved to a new RngExt, blanket-implemented for all
Rng. Call sites switch from rand::Rng to rand::RngExt.

Also drops the direct rand_chacha dependency. rand 0.10 replaced its
rand_chacha dep with chacha20 and re-exports ChaCha20Rng behind its own chacha
feature, so enabling that feature and using rand::rngs::ChaCha20Rng removes a
duplicate ChaCha implementation from our dependency list.
Every locked miden-* crate (miden-protocol, miden-standards, miden-testing,
miden-core and friends) declares rust-version 1.96.1, so the workspace's 1.93
under-declared the real MSRV. A build on rustc older than 1.96.1 would hit a
resolver error rather than the clear MSRV message.

The Dockerfile already pins rust:1.96-bookworm, a floating tag that resolves to
the newest 1.96.x, so it needs no change.
@juan518munoz
juan518munoz force-pushed the jmunoz-update-miden-deps branch from fb71abe to fd2e0f1 Compare August 18, 2026 15:57
@juan518munoz juan518munoz changed the title chore: bump miden versions chore: (followup) bump miden versions Aug 18, 2026

@igamigo igamigo left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

Comment thread CHANGELOG.md Outdated
Comment on lines +12 to +13
- Updated `rand` to v0.10 and removed the direct `rand_chacha` dependency ([#284](https://github.com/0xMiden/faucet/pull/284)).
- Raised the declared `rust-version` to 1.96.1 to match the locked Miden dependencies ([#284](https://github.com/0xMiden/faucet/pull/284)).

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
- Updated `rand` to v0.10 and removed the direct `rand_chacha` dependency ([#284](https://github.com/0xMiden/faucet/pull/284)).
- Raised the declared `rust-version` to 1.96.1 to match the locked Miden dependencies ([#284](https://github.com/0xMiden/faucet/pull/284)).
- Updated `rand` to v0.10 and removed the direct `rand_chacha` dependency and updated the declared `rust-version` to `1.96.1`([#284](https://github.com/0xMiden/faucet/pull/284)).

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@igamigo igamigo changed the title chore: (followup) bump miden versions chore: upgrade to Rng 0.10 Aug 18, 2026
@juan518munoz
juan518munoz merged commit 8f48287 into next Aug 18, 2026
18 checks passed
@juan518munoz
juan518munoz deleted the jmunoz-update-miden-deps branch August 18, 2026 19:46
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.

4 participants