Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@kskalski
Copy link

@kskalski kskalski commented Nov 12, 2025

Problem

  • rand crate with version >=0.9 fixes problem with gen function name colliding with keyword reserved in Rust 2024 edition (it doesn't strictly block Upgrade rust edition to 2024 #6203, but seems like a better way to hit two birds with one stone)
  • there are performance improvements in newer versions of rand
  • there are however many API breaking changes, but addressable as renames / import updates for production code

Due to the last point we might be better off with updating rand incrementally (compare with previous attempt of upgrading in #4721).

Summary of Changes

Switch ledger to rand 0.9.2 and rand_chacha to 0.9.0 (closely coupled with rand, they both rely on same version of rand_core)

@codecov-commenter
Copy link

Codecov Report

❌ Patch coverage is 85.71429% with 16 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.9%. Comparing base (93a9d2a) to head (1eff0c0).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #9033   +/-   ##
=======================================
  Coverage    81.9%    81.9%           
=======================================
  Files         862      862           
  Lines      326716   326716           
=======================================
+ Hits       267614   267648   +34     
+ Misses      59102    59068   -34     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@kskalski kskalski requested a review from steviez November 12, 2025 03:08
@kskalski kskalski marked this pull request as ready for review November 12, 2025 06:34
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