artifact-dependencies doesn't compose well with build-std #12375
Labels
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
S-needs-design
Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.
Z-bindeps
Nightly: binary artifact dependencies
Z-build-std
Nightly: build-std
Problem
When the artifact dependency needs to be built for a tier 3 target, it often requires the use of build-std. However there is no way to plumb this -
.cargo/config.toml
can be used to specifybut cargo doesn't respect these files in workspaces:
When the dependent crate and its artifact dependency aren't in the same workspace, I'm not sure what would happen. My best guess is that
.cargo/config.toml
is ignored (or absent, having not been published).Proposed Solution
It seems that the only way to solve this is to allow the dependent crate to specify
build-std
(and perhaps other such unstable features) in thedependency
object alongside"artifact"
,"target"
, etc.Notes
No response
The text was updated successfully, but these errors were encountered: