Skip to content

Clean up workspace manifest lints - #972

Merged
kskalski merged 1 commit into
anza-xyz:masterfrom
kskalski:ks/cargo_manifest_lints
Sep 30, 2026
Merged

kskalski merged 1 commit into
anza-xyz:masterfrom
kskalski:ks/cargo_manifest_lints

Conversation

@kskalski

@kskalski kskalski commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Problem

  • Manifest lints:
    • nightly cargo warns on unused [workspace.dependencies] entries
    • nightly cargo warns on member crates without [lints]
  • CI:
    • setup-rust-toolchain v2 denies warnings through CARGO_BUILD_WARNINGS
    • docs.rs publish job fails on manifest warnings

Summary of Changes

  • Workspace dependencies:
    • drop 34 unused entries
    • 30 dropped entries name member crates without any dependents in the workspace (we can re-add an entry once some member starts depending on it)
  • Lints:
    • inherit [workspace.lints] in 42 member crates

Testing

CI

Problem
- Manifest lints:
  - nightly cargo warns on unused `[workspace.dependencies]` entries
  - nightly cargo warns on member crates without `[lints]`
- CI:
  - setup-rust-toolchain v2 denies warnings through `CARGO_BUILD_WARNINGS`
  - docs.rs publish job fails on manifest warnings

Summary of Changes
- Workspace dependencies:
  - drop 34 unused entries
  - 30 dropped entries name member crates without any dependents in the workspace
  - cargo ignores entries without a `workspace = true` reference, so resolution and `Cargo.lock` stay unchanged
  - re-add an entry once a member starts depending on that crate
- Lints:
  - inherit `[workspace.lints]` in 42 member crates
@kskalski
kskalski force-pushed the ks/cargo_manifest_lints branch from b0d2a48 to 9ad63d0 Compare September 30, 2026 08:18
@kskalski
kskalski marked this pull request as ready for review September 30, 2026 09:01
@kskalski
kskalski requested a review from a team as a code owner September 30, 2026 09:01
@kskalski
kskalski requested a review from joncinque September 30, 2026 09:42

@joncinque joncinque left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks great, thanks for fixing this up! Sorry about the breaking change

@DSharifi DSharifi 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.

Thank you!

@kskalski
kskalski merged commit bf44a69 into anza-xyz:master Sep 30, 2026
30 checks passed
@kskalski
kskalski deleted the ks/cargo_manifest_lints branch September 30, 2026 10:04
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