We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
That's my Cargo.toml
Cargo.toml
[package] name = 'foo' version = '0.1.0' [target.'cfg(target_os="android")'.dependencies] bar = { version = "0.9", default-features = false } [target.'cfg(non(target_os="android"))'.dependencies] bar = { version = "0.9", default-features = true }
I compile the above library twice:
cargo build
cargo build --target aarch64-linux-android
I expect android binary to have bar's default features turned off. Unfortunately, they are on.
bar's
If I comment out
#[target.'cfg(target_os="android")'.dependencies] #bar = { version = "0.9", default-features = false }
Android cross compilation fails with can't find crate 'bar' as expected.
can't find crate 'bar'
tl;dr
specifying different features for the same library, based on target, does not work
The text was updated successfully, but these errors were encountered:
I believe this is a dupe of #1197, but thanks for the report!
Sorry, something went wrong.
No branches or pull requests
That's my
Cargo.toml
I compile the above library twice:
cargo build
cargo build --target aarch64-linux-android
I expect android binary to have
bar's
default features turned off. Unfortunately, they are on.If I comment out
Android cross compilation fails with
can't find crate 'bar'
as expected.tl;dr
specifying different features for the same library, based on target, does not work
The text was updated successfully, but these errors were encountered: