Profile rustflags are not propagated to target dependencies #15125
Labels
A-dependency-resolution
Area: dependency resolution and the resolver
C-bug
Category: bug
S-triage
Status: This issue is waiting on initial triage.
Z-profile-rustflags
Nightly: profile-rustflags
Problem
When using the
profile-rustflags
Cargo feature with a--cfg
flag, dependency resolution appears to be performed without the additional flag.Steps
Minimal reproduction:
cargo check
andRUSTFLAGS="--cfg=unstable"
both work finecargo check --profile=dev-unstable
fails (no external crate thiserror
).Possible Solution(s)
No response
Notes
No response
Version
The text was updated successfully, but these errors were encountered: