Skip to content

Migrate crate to Rust 2024 edition - #33

Open
juangaitanv wants to merge 4 commits into
mainfrom
edition-2024
Open

Migrate crate to Rust 2024 edition#33
juangaitanv wants to merge 4 commits into
mainfrom
edition-2024

Conversation

@juangaitanv

Copy link
Copy Markdown
Contributor

Summary

  • migrate the crate and rustfmt configuration to Rust 2024
  • let the harness binary inherit the package edition
  • apply formatter and Clippy rewrites across scanner code and tests

Validation

  • git diff --check HEAD
  • cargo fmt --all -- --check
  • cargo clippy --all-targets --all-features -- -D warnings
  • cargo test --all-features

Before merge

  • Resolve the MSRV mismatch: Cargo.toml and the README promise Rust 1.85, but the new && let chains require Rust 1.88 or newer.

@juangaitanv
juangaitanv requested a review from asadeddin July 10, 2026 09:47
@juangaitanv
juangaitanv marked this pull request as ready for review July 10, 2026 09:47
# Conflicts:
#	src/scanner/core.rs
#	src/scanner/output.rs
The edition-2024 migration introduced `&& let` chains that require Rust
1.88, but Cargo.toml and the README still promised 1.85 — bump both.

Apply the migration's clippy rewrites to the SARIF code inherited from
main: collapse the CWE `if let` nest in `build_sarif_log` into a let
chain, and move `sarif_tests` to the end of `output.rs` so
`items_after_test_module` no longer fires under `--all-targets`.
Comment thread Cargo.toml

@yhoztak yhoztak left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM
with minor comment

@juangaitanv juangaitanv mentioned this pull request Jul 22, 2026
4 tasks
Resolve the parser, AST condition, and Django fixture conflicts while preserving the Rust 2024 migration. Add a Rust 1.88 CI check for the declared MSRV.
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