Closed
Description
Here is my use case:
The crate hyper
can be compiled with or without SSL.
The target_env gnu compiles fine with SSL whereas musl (for static linking) doesn't.
Here is what I'd like to do:
# By default compile hyper with SSL except when target_env is musl
[target.'cfg(not(target_env = "musl"))'.dependencies]
hyper = {version="*", features=["ssl"], default-features = false}
# When target_env is musl, compile hyper without SSL
[target.'cfg(target_env = "musl")'.dependencies]
hyper = {version="*", default-features = false}
It doesn't work as intented, the hyper/ssl
feature compilation is tried whatever the target platform.
I'm using cargo 0.10.0-nightly (4e6434d 2016-03-24).