Problem
artifact-dependencies does not auto use per-package-target forced-target
Steps
actual
cargo-features = ["per-package-target"]
[package]
name = "foo"
...
forced-target = "x86_64-unknown-uefi"
[package]
name = "foo_test"
...
[dev-dependencies]
foo = { version = "0.1.0", path = "../foo", artifact = ["bin:foo"], target = "x86_64-unknown-uefi" }
expected
cargo-features = ["per-package-target"]
[package]
name = "foo"
...
forced-target = "x86_64-unknown-uefi"
[package]
name = "foo_test"
...
[dev-dependencies]
foo = { version = "0.1.0", path = "../foo", artifact = ["bin:foo"] }
Possible Solution(s)
artifact-dependencies should auto use per-package-target forced-target
-
when not declared, use forced target
-
when declared, same, warn no need
-
when declared, not same, fatal
Notes
related
#9096
#9406
Version
cargo 1.98.0-nightly (4d1f98451 2026-05-15)
Problem
artifact-dependenciesdoes not auto useper-package-targetforced-targetSteps
actual
expected
Possible Solution(s)
artifact-dependenciesshould auto useper-package-targetforced-targetwhen not declared, use forced target
when declared, same, warn no need
when declared, not same, fatal
Notes
related
#9096
#9406
Version