Skip to content

Revert accidental rand 0.9.3 -> 0.10.1 bump#978

Merged
louis-e merged 1 commit into
mainfrom
fix/revert-rand-bump
Apr 24, 2026
Merged

Revert accidental rand 0.9.3 -> 0.10.1 bump#978
louis-e merged 1 commit into
mainfrom
fix/revert-rand-bump

Conversation

@louis-e

@louis-e louis-e commented Apr 24, 2026

Copy link
Copy Markdown
Owner

Commit 58e2cfe (dependabot: bump rustls-webpki 0.103.10 -> 0.103.12) also bumped the direct rand dependency from 0.9.3 to 0.10.1. rand 0.10 moved random_range / random_bool / seed_from_u64 into a separate RngExt trait that is not imported anywhere in the crate, so main fails to compile with ~160 errors.

This change keeps the intended rustls-webpki bump and restores rand to 0.9.3, which the existing code is written against.

Commit 58e2cfe (dependabot: bump rustls-webpki 0.103.10 -> 0.103.12)
also bumped the direct rand dependency from 0.9.3 to 0.10.1. rand 0.10
moved random_range / random_bool / seed_from_u64 into a separate RngExt
trait that is not imported anywhere in the crate, so main fails to
compile with ~160 errors.

This change keeps the intended rustls-webpki bump and restores rand to
0.9.3, which the existing code is written against.
Copilot AI review requested due to automatic review settings April 24, 2026 00:15
@louis-e louis-e merged commit 4ca8d34 into main Apr 24, 2026
5 checks passed
@louis-e louis-e deleted the fix/revert-rand-bump branch April 24, 2026 00:15

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Reverts an unintended direct dependency upgrade of rand to restore compatibility with the crate’s existing RNG API usage, while keeping the previously intended rustls-webpki bump intact.

Changes:

  • Downgrade direct rand dependency from 0.10.1 back to 0.9.3 (allowing patch updates within 0.9.x).
  • Regenerate Cargo.lock to remove rand 0.10.1 and its transitive dependencies (e.g., rand_core 0.10.1, chacha20 0.10.0).

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
Cargo.toml Restores rand to 0.9.3 to match existing code expectations.
Cargo.lock Updates the resolved dependency graph to align with rand 0.9.x (while retaining rustls-webpki 0.103.12).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions

Copy link
Copy Markdown

⏱️ Benchmark run finished in 0m 51s
🏗️ Generation time: 27s (excl. data fetching)
🧠 Peak memory usage: 1897 MB

📈 Compared against baseline: 27s
🧮 Delta: 24s
🔢 Commit: b11b5cf

🟢 Generation time is unchanged.

📅 Last benchmark: 2026-04-24 00:17:57 UTC

You can retrigger the benchmark by commenting retrigger-benchmark.

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.

2 participants