Open
Description
Summary
Feature gate: per_package_target
Discussion: https://internals.rust-lang.org/t/proposal-move-some-cargo-config-settings-to-cargo-toml/13336
Implementation: #9030
Documentation: https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#per-package-target
Issues:
Z-per-package-target
Unresolved issues
- The interaction with proposals like RFC 3028 does not work well. Selection for targets to build happens at the workspace level instead of at a level where the full compile graph is known. This affects selected packages (target-specific dependencies) and feature resolution as well. There's also some possible confusion, as the per-package-target settings are ignored in dependencies.
- The exact interaction with feature resolution is a bit up in the air. This may not be super well-tested where in theory each target artifact should get an independently resolved feature graph (ish). Related to: per-package-target unifies features which can conflict with other targets #9521
- Interaction with
-Zbuild-std
Metadata
Metadata
Assignees
Labels
Category: A tracking issue for something unstable.Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.Status: Issue or feature is accepted, but needs a team member to commit to helping and reviewing.Status: An implemented feature is waiting on community feedback for bugs or design concerns.Nightly: per-package-target
Type
Projects
Status
Unstable, baking