Ability to verify my cargo workspace before packaging but without building. #15433
Labels
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Command-package
Command-publish
S-triage
Status: This issue is waiting on initial triage.
Problem
Currently packaging verification process run by
cargo package
andcargo publish
runs 2 tasks:First task is just
cargo build
, the second may emit warnings about some metadata is missingGood practice on CI is to run sequentially or in parallel
The metadata verification is done by
cargo package
and if critical field is missing, a warning is emitted. There's no control on which metadata is critical, which is not and there's no way to enforce it.Additionally, building a package in most cases is a duplication of responsibility of a user to run at least
cargo build
first.I understand historical reasons of this solution in
cargo package
, and I'd like to have an ability to alter this behaviour on demand/company policies, but not remove this step completelyPrevious discussion was here: #15398
Proposed Solution
For making
build
optional I'd like to have configuration variable to be set to control behaviour of cargo verification process.Notes
No response
The text was updated successfully, but these errors were encountered: