Where should cargo verify-project
go?
#14679
Labels
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Command-verify-project
S-needs-team-input
Status: Needs input from team on whether/how to proceed.
Problem
I never found
cargo verify-project
useful. It never checks semantics ofCargo.toml
. What it does is merelyCargo.toml
and ensuring that be valid TOML, during the course of locating a workspace.I don't know if in the wild it is heavily used, but apparently on GitHub it's not (see this search result). It also causes confusions like people expecting it to verify more stuff (#11202).
I wonder if it's time to decide how this command should be.
Proposed Solution
We have at least two choices.
Make it clear that what
cargo verify-project
verifies. Perhaps at this moment only TOML syntax. We could expand to simple manifest semantic, though the line will never be clear and can't be a complete verification.Mark
cargo verify-project
as deprecated. Whomever want to use it could continue, though we don't add any support in the future.cargo locate-project --workspace
might be a good alternative. (Well, not completely.locate-project
additionally checks UTF8 for some unknown reason. And IMO it should be allowed.)Notes
Commit: e8adba9
The text was updated successfully, but these errors were encountered: