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
I was wondering, why does opt-ing into the Rust implementation also enable static linking on bzip2-sys? I may still have this in my dependency tree for other reasons, as there are a few other crates depending on it besides bzip2.
It also makes it slightly harder to figure out what'd happen in this specific combination (since features are additive, even when enabled from inside a transitive dependency):
cargo new --bin foo
cargo new --lib bar
cd bar
cargo add bzip2
cd ../foo
cargo add bzip2 --no-default-features -F libbz2-rs-sys
cargo add --path ../bar
cargo build
But when looking at src/lib.rs in bzip2 it seems the Rust implementation is used (if both features are enabled, not(feature = "libbz2-rs-sys") can't be true):
#[cfg(not(feature = "libbz2-rs-sys"))]externcrate bzip2_sys as ffi;#[cfg(feature = "libbz2-rs-sys")]externcrate libbz2_rs_sys as ffi;
But the static feature makes this harder to verify with ldd.
Thanks!
The text was updated successfully, but these errors were encountered:
hello! :)
I was wondering, why does opt-ing into the Rust implementation also enable static linking on bzip2-sys? I may still have this in my dependency tree for other reasons, as there are a few other crates depending on it besides bzip2.
It also makes it slightly harder to figure out what'd happen in this specific combination (since features are additive, even when enabled from inside a transitive dependency):
In the dependency tree there's going to be both:
But when looking at
src/lib.rs
inbzip2
it seems the Rust implementation is used (if both features are enabled,not(feature = "libbz2-rs-sys")
can't be true):But the
static
feature makes this harder to verify with ldd.Thanks!
The text was updated successfully, but these errors were encountered: