Adding workspace profiles to the member's manifest at cargo package
#14470
Labels
A-profiles
Area: profiles
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-needs-team-input
Status: Needs input from team on whether/how to proceed.
Problem
[profile.*]
can be added only to the rootCargo.toml
in workspace.But
cargo package
at the each member doesn't add the profiles into theCargo.toml
in crate package.As a result,
cargo build --release
orcargo install --path ..
at the local environment uses the profilescargo install ..
through crates.io doesn't use the profilesFor example, https://crates.io/crates/veryl requires the following profile to avoid rust-lang/rust#129776.
In this case,
cargo install ..
through crates.io will take too long time because the profile is not affected.Proposed Solution
I think adding workspace profiles to the member's manifest at
cargo package
is reasonable.This change will reduce the behaviour difference between
cargo build --release
andcargo install
.Notes
No response
The text was updated successfully, but these errors were encountered: