Skip to content
This repository was archived by the owner on Apr 20, 2026. It is now read-only.

chore: update to rust edition 2024, bump MSRV to 1.93#364

Merged
zerosnacks merged 12 commits intofoundry-rs:mainfrom
decofe:zerosnacks/rust-edition-2024
Apr 13, 2026
Merged

chore: update to rust edition 2024, bump MSRV to 1.93#364
zerosnacks merged 12 commits intofoundry-rs:mainfrom
decofe:zerosnacks/rust-edition-2024

Conversation

@decofe
Copy link
Copy Markdown
Contributor

@decofe decofe commented Apr 1, 2026

Changes

  • Bump edition from 2021 to 2024 and resolver from 2 to 3
  • Bump MSRV from 1.88 to 1.93
  • Update clippy.toml MSRV to 1.93
  • Align clippy/rust lint rules with foundry-rs/foundry
  • Rename gen variables to generator (gen is a reserved keyword in edition 2024)
  • Collapse nested if/if let into let-chains (clippy::collapsible_if)
  • Wrap env::set_var/remove_var in unsafe blocks (unsafe in edition 2024)
  • Fix doctest to avoid unsafe env mutation
  • Apply rustfmt import reordering (edition 2024 style)
  • Fix lint violations: redundant imports, .iter()&, .cloned().copied()

The MSRV bump to 1.93 also unblocks svm-rs/svm-rs-builds resolving to 0.5.24 (previously capped at 0.5.17 by MSRV 1.88), which fixes a duplicate SOLC_VERSION_0_8_31 const bug in generated code.

Prompted by: zerosnacks

- Update workspace edition from 2021 to 2024, resolver from 2 to 3
- Rename `gen` variables to `generator` (reserved keyword in 2024)
- Collapse nested if-let chains (clippy::collapsible_if with let-chains)
- Wrap `env::set_var`/`remove_var` in unsafe blocks (unsafe in 2024)
- Fix doctest to avoid unsafe env mutation
- Apply rustfmt import reordering (edition 2024 style)

Co-Authored-By: zerosnacks <95942363+zerosnacks@users.noreply.github.com>
Amp-Thread-ID: https://ampcode.com/threads/T-019d4875-5cb2-777c-9a8f-e4d7b6c4ccfa
decofe and others added 6 commits April 1, 2026 10:10
Co-Authored-By: zerosnacks <95942363+zerosnacks@users.noreply.github.com>
Amp-Thread-ID: https://ampcode.com/threads/T-019d4875-5cb2-777c-9a8f-e4d7b6c4ccfa
Co-Authored-By: zerosnacks <95942363+zerosnacks@users.noreply.github.com>
Amp-Thread-ID: https://ampcode.com/threads/T-019d4875-5cb2-777c-9a8f-e4d7b6c4ccfa
Fixes svm-rs-builds duplicate SOLC_VERSION_0_8_31 const bug in v0.5.17.
Also fixes remaining --all-features lint violations.

Co-Authored-By: zerosnacks <95942363+zerosnacks@users.noreply.github.com>
Amp-Thread-ID: https://ampcode.com/threads/T-019d4875-5cb2-777c-9a8f-e4d7b6c4ccfa
Co-Authored-By: zerosnacks <95942363+zerosnacks@users.noreply.github.com>
Amp-Thread-ID: https://ampcode.com/threads/T-019d4875-5cb2-777c-9a8f-e4d7b6c4ccfa
Co-Authored-By: zerosnacks <95942363+zerosnacks@users.noreply.github.com>
Amp-Thread-ID: https://ampcode.com/threads/T-019d4875-5cb2-777c-9a8f-e4d7b6c4ccfa
@decofe decofe changed the title chore: update to rust edition 2024 chore: update to rust edition 2024, bump MSRV to 1.93 Apr 1, 2026
@zerosnacks zerosnacks marked this pull request as ready for review April 1, 2026 11:32
Comment thread Cargo.toml Outdated
zerosnacks and others added 5 commits April 2, 2026 17:39
@zerosnacks zerosnacks self-requested a review April 13, 2026 10:11
@zerosnacks zerosnacks merged commit e5dd85e into foundry-rs:main Apr 13, 2026
18 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants