Skip to content

chore: update to rust edition 2024, rust-version 1.93, and add workspace lint rules#160

Merged
zerosnacks merged 3 commits intofoundry-rs:zerosnacks/bump-rust-versionfrom
decofe:zerosnacks/edition-2024-rust-1.93
Apr 1, 2026
Merged

chore: update to rust edition 2024, rust-version 1.93, and add workspace lint rules#160
zerosnacks merged 3 commits intofoundry-rs:zerosnacks/bump-rust-versionfrom
decofe:zerosnacks/edition-2024-rust-1.93

Conversation

@decofe
Copy link
Copy Markdown

@decofe decofe commented Apr 1, 2026

Summary

Update workspace to Rust edition 2024 / MSRV 1.93 and add workspace lint rules matching foundry-rs/foundry.

Changes

  • edition: 2021 → 2024
  • rust-version: 1.76 → 1.93
  • resolver: 2 → 3
  • clippy.toml MSRV: 1.76 → 1.93, add ignore-interior-mutability
  • CI workflow + README MSRV references updated
  • Add [workspace.lints.clippy], [workspace.lints.rust], [workspace.lints.rustdoc] matching foundry-rs/foundry
  • Add [lints] workspace = true to both crates

Edition 2024 fixes

  • Removed explicit ref in match pattern (block_number.rs)
  • Wrapped env::set_var in unsafe blocks (account.rs tests) — now unsafe in edition 2024
  • Reformatted imports per edition 2024 rustfmt style

Lint fixes

  • use-self: replaced type names with Self in impl blocks
  • uninlined-format-args: inlined format arguments
  • redundant-clone: removed unnecessary .clone()
  • redundant-imports: removed Future import (now in edition 2024 prelude)

Prompted by: zerosnacks

- Update workspace edition from 2021 to 2024
- Update rust-version from 1.76 to 1.93
- Update resolver from 2 to 3
- Update clippy.toml MSRV
- Update CI workflow and README MSRV references
- Fix edition 2024 issues:
  - Remove explicit `ref` in match pattern (implicit borrowing)
  - Wrap `env::set_var` in unsafe blocks (now unsafe in edition 2024)
  - Reformat imports per edition 2024 rustfmt style

Co-Authored-By: zerosnacks <95942363+zerosnacks@users.noreply.github.com>
decofe and others added 2 commits April 1, 2026 10:09
- Add workspace.lints.clippy, workspace.lints.rust, workspace.lints.rustdoc
  matching foundry-rs/foundry configuration
- Add [lints] workspace = true to both crates
- Update clippy.toml with ignore-interior-mutability
- Fix all lint violations (use-self, uninlined-format-args,
  redundant-clone, redundant-imports)

Co-Authored-By: zerosnacks <95942363+zerosnacks@users.noreply.github.com>
Co-Authored-By: zerosnacks <95942363+zerosnacks@users.noreply.github.com>
@decofe decofe changed the title chore: update to rust edition 2024 and rust-version 1.93 chore: update to rust edition 2024, rust-version 1.93, and add workspace lint rules Apr 1, 2026
Copy link
Copy Markdown
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

makes sense

@zerosnacks I believe those failing tests are just flaky

@zerosnacks

This comment was marked as outdated.

@zerosnacks zerosnacks changed the base branch from main to zerosnacks/bump-rust-version April 1, 2026 11:23
@zerosnacks zerosnacks marked this pull request as ready for review April 1, 2026 11:23
@zerosnacks
Copy link
Copy Markdown
Member

Merging in staging branch and re-opening under my name to be sure the tests are simply flaky

@zerosnacks zerosnacks merged commit d35901c into foundry-rs:zerosnacks/bump-rust-version Apr 1, 2026
9 of 11 checks passed
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.

3 participants