build: upgrade to Rust v1.91.0#1318
Conversation
|
There was a problem hiding this comment.
Pull request overview
Upgrades the repository’s pinned Rust toolchain to v1.91.0 (as a prerequisite for subsequent dependency upgrades), with small follow-up tweaks to keep the codebase and lint configuration compatible.
Changes:
- Bump
rust-toolchainchannel from1.89.0to1.91.0. - Replace a modulo-based divisibility check with
is_multiple_ofin the mempool fee calculation. - Simplify
LoggingState’s default implementation via#[derive(Default)], and remove a clippy lint entry (string_to_string) from workspace lint config.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
rust-toolchain |
Pins the workspace to Rust 1.91.0. |
crates/mem_pool/src/lib.rs |
Uses is_multiple_of for divisibility in min_new_fee. |
crates/edr_napi_core/src/logger.rs |
Switches LoggingState defaulting to derive-based enum default. |
Cargo.toml |
Removes the string_to_string clippy lint configuration entry. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1318 +/- ##
==========================================
- Coverage 73.74% 73.73% -0.02%
==========================================
Files 445 445
Lines 75859 75860 +1
Branches 75859 75860 +1
==========================================
- Hits 55940 55933 -7
- Misses 17867 17875 +8
Partials 2052 2052 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
anaPerezGhiglia
left a comment
There was a problem hiding this comment.
This PR made me realize that we are using the rust-toolchain file only for devcontainers. All the CI actions either default on stable or directly set nightly. I think we should fix the version for CI actions. WDYT?
I'm approving this PR since my comment goes beyond the scope of this PR
When any Rust compiler is run in a workspace that has a See https://rust-lang.github.io/rustup/overrides.html#the-toolchain-file |
|
Oh, I wasn't aware of that, nice! I double checked on the action we are using, and it supports this
However, on release workflow we are using another action, and we are specifying |
I had a look to see whether this prevents the rust toolchain from
I do agree we could make this more efficient, as what's happening now is:
which consumes more bandwidth, memory, and time than needed. |
Upgraded to Rust v1.91.0.
This is a prerequisite for #1301 to be able to upgrade to a newer version of
revm-inspectorsdue to a transitive dependency onalloycrates which increased the minimal Rust version to v1.91.