Warn on Conflicting Keys #10299
Labels
A-manifest
Area: Cargo.toml issues
A-toml
Area: TOML parsing and handling
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
E-easy
Experience: Easy
Problem
Suppose you have a package with this
Cargo.toml
:Is the library crate a proc macro crate or not?
It's a little hard to tell. (The answer is no.)
Proposed Solution
Warn when two keys are set that control the same thing.
I don't know if there are other pairs like this but, if there are, they should also warn like "conflicting keys:
proc-macro
overwritesproc_macro
".Notes
I heard about this from @Nemo157 on Discord, as a bit of historical trivial about Cargo. They mentioned that it's caused some problems for users of docs.rs, although I have not encountered this issue personally.
The text was updated successfully, but these errors were encountered: