Skip to content

Upgrade from getrandom 0.2 to getrandom 0.4.2, bumping MSRV to 1.85.#2756

Merged
briansmith merged 2 commits intomainfrom
b/getrandom-0.4
Mar 9, 2026
Merged

Upgrade from getrandom 0.2 to getrandom 0.4.2, bumping MSRV to 1.85.#2756
briansmith merged 2 commits intomainfrom
b/getrandom-0.4

Conversation

@briansmith
Copy link
Copy Markdown
Owner

@briansmith briansmith commented Feb 11, 2026

getrandom 0.4.2 seems to have implemented good enough support with its wasm_js feature to make it usable as an alternative to getrandom 0.2.

Rust 1.84 (and getrandom 0.3) dropped support for the old wasm32-wasi target, and won't build for that target, so stop testing it.

@briansmith briansmith self-assigned this Feb 11, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 11, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.68%. Comparing base (5c69aaf) to head (2f04962).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2756      +/-   ##
==========================================
- Coverage   96.69%   96.68%   -0.02%     
==========================================
  Files         204      204              
  Lines       20388    20392       +4     
  Branches      519      519              
==========================================
  Hits        19715    19715              
- Misses        557      561       +4     
  Partials      116      116              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@briansmith briansmith force-pushed the b/getrandom-0.4 branch 3 times, most recently from fe86f46 to dc5efe7 Compare February 11, 2026 23:58
@briansmith briansmith changed the title Use getrandom 0.4, bumping MSRV to 1.85 and edition to Rust 2024. Use getrandom 0.4, bumping MSRV to 1.85. Feb 11, 2026
@briansmith
Copy link
Copy Markdown
Owner Author

Rust 2024 changes will be done in a separate PR.

@briansmith
Copy link
Copy Markdown
Owner Author

The "1.85" MSRV tests in CI need to be updated to use the MSRV-aware resolver, I guess, as otherwise an indirect downstream dependency requires 1.87.

@briansmith briansmith force-pushed the b/getrandom-0.4 branch 12 times, most recently from affe555 to 5bf9369 Compare February 13, 2026 00:17
@hanyuone hanyuone mentioned this pull request Mar 4, 2026
@briansmith briansmith force-pushed the b/getrandom-0.4 branch 4 times, most recently from 8807d93 to 9eb10d5 Compare March 7, 2026 21:28
@briansmith
Copy link
Copy Markdown
Owner Author

I updated this substantially, especially to require getrandom 0.4.2+ and to improve the CI.

@briansmith
Copy link
Copy Markdown
Owner Author

rust-random/getrandom#824 reduces the MSRV of getrandom to 1.85 for the wasm32-wasip3 target.

@briansmith briansmith force-pushed the b/getrandom-0.4 branch 2 times, most recently from d94f048 to 82740f4 Compare March 8, 2026 21:41
@briansmith
Copy link
Copy Markdown
Owner Author

See also rust-random/getrandom#827 for reducing the dependencies of getrandom (and the MSRV issues) for wasip2/wasip3 targets.

@briansmith briansmith force-pushed the b/getrandom-0.4 branch 3 times, most recently from 68140bd to f51163d Compare March 9, 2026 01:18
@briansmith briansmith changed the title Use getrandom 0.4, bumping MSRV to 1.85. Upgrade from getrandom 0.2 to getrandom 0.4.2, bumping effective MSRV to 1.85. Mar 9, 2026
@briansmith briansmith force-pushed the b/getrandom-0.4 branch 2 times, most recently from a04e3b2 to 6412d21 Compare March 9, 2026 03:36
@briansmith briansmith changed the title Upgrade from getrandom 0.2 to getrandom 0.4.2, bumping effective MSRV to 1.85. Upgrade from getrandom 0.2 to getrandom 0.4.2, bumping MSRV to 1.85. Mar 9, 2026
… to 1.85.

getrandom 0.4.2 seems to have implemented good enough support with its
wasm_js feature to make it usable as an alternative to getrandom 0.2.

Rust 1.84 (and getrandom 0.3) dropped support for the old wasm32-wasi
target, and won't build for that target, so stop testing it.
@briansmith briansmith merged commit c8db686 into main Mar 9, 2026
174 of 175 checks passed
@briansmith briansmith deleted the b/getrandom-0.4 branch March 9, 2026 06:48
@briansmith briansmith linked an issue Mar 16, 2026 that may be closed by this pull request
@briansmith briansmith mentioned this pull request Mar 16, 2026
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.

update getrandom

1 participant