-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cargo panics when forced-target
is specified to be i686-pc-windows-msvc
#14833
Comments
Thanks for the bug report. Mind sharing your Cargo.toml, or any minimal reproducible example? |
It's seems that you're correct, @weihanglo. The cargo-features = ["per-package-target"]
[package]
name = "testing"
version = "0.1.0"
edition = "2021"
forced-target = "i686-pc-windows-msvc"
[dependencies.windows]
version = "0.58.0"
features = ["Win32_System_LibraryLoader", "Win32_System_Threading", "Win32_System_Environment"] |
I see. Thanks for the reproducible example. This can be minimized to this. cargo-features = ["per-package-target"]
[package]
name = "foo"
edition = "2021"
forced-target = "wasm32-unknown-unknown"
[target.wasm32-unknown-unknown.dependencies]
empty-library = "1" There are like a few different "bugs" here
The fix for the latter should be a bit easier. Managing all calls to However, for the former, the situation become really really tricky. Should the “forced-target” behavior be like what artifact-dependencies feature has provided via the I wasn't involved but feel like the |
Note that with |
Problem
When attempting to compile a crate that has
i686-pc-windows-msvc
forced as its target, Cargo panics:Steps
per-package-target
inside Cargo.toml.package.forced-target
to bei686-pc-windows-msvc
.Possible Solution(s)
No response
Notes
No response
Version
The text was updated successfully, but these errors were encountered: