You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you have a crate that defines the same crate as both a dependency and dev-dependency, but with some features only enabled as a dev-dependency, I would expect a "cargo build" to not include those features. That does not seem to be the case, however.
Actually I believe this is a dupe of #1796, so I'm going to close in favor of that.
The gist of this is that it is likely not fixable, and even if fixable it wouldn't be what you want. Because of the unioning property of features it would meant that cargo build followed by cargo test would always rebuild the main library (as hyper changed).
If you have a crate that defines the same crate as both a dependency and dev-dependency, but with some features only enabled as a dev-dependency, I would expect a "cargo build" to not include those features. That does not seem to be the case, however.
Take rust-hyper-socks as an example: https://github.com/sfackler/rust-hyper-socks/blob/980099094b0fd7ba4a2d1a7df4be3e1785479c6d/Cargo.toml
Note the inclusion of the various openssl crates in there.
If the crate is depended on transitively, the right thing appears to happen, and those features are not activated.
The text was updated successfully, but these errors were encountered: