[feat] provide some way to suppress unused patch warnings #15527
Labels
A-diagnostics
Area: Error and warning messages generated by Cargo itself.
A-patch
Area: [patch] table override
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
S-needs-design
Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.
Problem
The
[patch]
section in.cargo/config.toml
is very useful to override certain dependencies (even if it's no uploaded to crates.io) of multiple projects.But the downside is, for projects that do not use those patched dependencies, cargo will repeatedly show warnings about those being unused, which seems annoying over time.
Example
In
.cargo/config.toml
after running
Proposed Solution
possible solutions (might not be the best)
[patch]
:[patch]
configuration is coming fromconfig.toml
Notes
No response
The text was updated successfully, but these errors were encountered: