cargo install --release
gives a confusing error
#12009
Labels
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
S-triage
Status: This issue is waiting on initial triage.
Problem
I have a friend who doesn't know rust and tried to install a program written in Rust. First he tried
cargo build
and that ran too slowly, so I told him to use--release
. Then he tested it to his satisfaction and tried to install it:The problem here is that the defaults are flipped between
build
andinstall
: build defaults to thedev
profile and has a--release
flag,install
defaults to the release profile and has a--debug
flag. That seems ok, but the error message is unhelpful.Proposed Solution
Improve the error message:
Notes
Don't remember when this happened originally, but the error messages in the issue description came from
cargo 1.68.2 (6feb7c9cf 2023-03-26)
.The text was updated successfully, but these errors were encountered: