Skip to content

docs(guide): Switch from third-party to first-party unused deps detection#16946

Merged
weihanglo merged 1 commit intorust-lang:masterfrom
epage:docs
Apr 29, 2026
Merged

docs(guide): Switch from third-party to first-party unused deps detection#16946
weihanglo merged 1 commit intorust-lang:masterfrom
epage:docs

Conversation

@epage
Copy link
Copy Markdown
Contributor

@epage epage commented Apr 28, 2026

What does this PR try to resolve?

With #16938 merged, the quality is high enough to generally recommend, even to dig through potential false positives.

How to test and review this PR?

…tion

With rust-lang#16938 merged, the quality is high enough to generally recommend,
even to dig through potential false positives.
@rustbot rustbot added A-documenting-cargo-itself Area: Cargo's documentation S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 28, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 28, 2026

r? @weihanglo

rustbot has assigned @weihanglo.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: @ehuss, @epage, @weihanglo
  • @ehuss, @epage, @weihanglo expanded to ehuss, epage, weihanglo
  • Random selection from ehuss, weihanglo

Comment thread src/doc/src/guide/build-performance.md Outdated
Trade-offs:
- ✅ Faster full build and link times
- ❌ May incorrectly flag dependencies as unused or miss some
- ❌ **Requires using nightly Rust and an [unstable Cargo feature][cargo-lints] when reviewing unused dependencies**
Copy link
Copy Markdown
Member

@weihanglo weihanglo Apr 28, 2026

Choose a reason for hiding this comment

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

Not particular to this addition, though I wonder why we made nightly requirement bold.

View changes since the review

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think I did that and I think it was because nightly makes some of these questionable solutions for people (particularly when it requires using nightly for creating production code) that people should be immediately aware to decide if they want to do it.

@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 29, 2026

This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

Copy link
Copy Markdown
Member

@weihanglo weihanglo left a comment

Choose a reason for hiding this comment

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

Thanks. Really like the update and the unused dependencies lint!

View changes since this review

@weihanglo weihanglo enabled auto-merge April 29, 2026 16:56
@weihanglo weihanglo added this pull request to the merge queue Apr 29, 2026
Merged via the queue into rust-lang:master with commit 60960cb Apr 29, 2026
56 of 58 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 29, 2026
@epage epage deleted the docs branch April 30, 2026 01:11
rust-bors Bot pushed a commit to rust-lang/rust that referenced this pull request May 2, 2026
Update cargo submodule

10 commits in eb9b60f1f6604b5e022c56be31692c215b8ba11d..4f9b52075316e9ced380c8fa492858048d5758b6
2026-04-24 20:52:07 +0000 to 2026-05-01 22:36:41 +0000
- chore(deps): update compatible (rust-lang/cargo#16952)
- feat(lints): Add deny-by-default text_direction_codepoint lints (rust-lang/cargo#16950)
- chore(deps): update embarkstudios/cargo-deny-action action to v2.0.17 (rust-lang/cargo#16953)
- docs(guide): Switch from third-party to first-party unused deps detection (rust-lang/cargo#16946)
- Remove curl dependency from crates-io crate (rust-lang/cargo#16936)
- chore(deps): update gix to 0.83 (rust-lang/cargo#16945)
- fix(compile): Where possible, hint about misplaced deps  (rust-lang/cargo#16940)
- Remove `windows-sys` from `home` (rust-lang/cargo#16918)
- docs(resolver): `--precise <yanked>` is on stable (rust-lang/cargo#16944)
- Update `gix` to 0.82 (with security fixes and hardened parsers) (rust-lang/cargo#16941)
@rustbot rustbot added this to the 1.97.0 milestone May 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-documenting-cargo-itself Area: Cargo's documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants