per-package-target
ignores target configuration
#14291
Labels
A-configuration
Area: cargo config files and env vars
C-bug
Category: bug
S-needs-design
Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.
Z-per-package-target
Nightly: per-package-target
Problem
Using
per-package-target
without an explicit--target
results in configuration specified in.cargo/config.toml
keys relevant to the current compilation target being ignored, while specifying the same target explicitly would respect configuration.Since I discovered this during development of an embedded arm project, I am using the same target (
thumbv7em-none-eabihf
) here, but I doubt that it matters.Cargo.toml
:.cargo/config.toml
:Implicitly:
Explicitly:
Steps
cd
and compare runningcargo run
with and without--target ...
.Possible Solution(s)
No response
Notes
No response
Version
The text was updated successfully, but these errors were encountered: