-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cargo package
(and hence cargo publish
) verify step is slow from doing a full build
#14941
Comments
@weihanglo from #14930 (comment)
|
@epage from #14930 (comment)
|
@weihanglo from #14930 (comment)
|
In rust-lang/rust#49292, it sounds like its being treated as a bug that MIR diagnostics are not running during |
We discussed this in the recent Cargo team meeting.
If we had a somewhat general solution to #14685, this is mostly a question of defaults. Without it, we would be locking people into an answer which puts more pressure on the decision. However, there are several questions to work out for #14685 that could slow down this issue if we block on it. An important question for us to answer is what the default purpose of the verify step should be
If its a last-ditch baseline quality check, then running
See #14685 for more on that. If we go with a fast, but imperfect, check, we are dealing with
The scariest part of rust-lang/rfcs#3477 is that a crate that builds with If its just as a sanity check, then this is a question of whether anything would be missed by |
In testing workspace publishing, I was really wishing for the build to be faster when I noticed the sea of status messages was "Compiling", instead of "Checking".
I've been glossing over those messages for years and never noticed!
If we switch from
cargo build
to `cargo check it would make builds faster by skipping the compiler backend / codegen at the cost of not getting post-monomorphization errors. That seems like a small price to pay.The text was updated successfully, but these errors were encountered: