For example, the flate2 crate defines two different dependencies on miniz_oxide:
[dependencies.miniz_oxide] version = "0.5.0" optional = true default-features = false
[target."cfg(all(target_arch = \"wasm32\", not(target_os = \"emscripten\")))".dependencies.miniz_oxide] version = "0.5.0" default-features = false
The second dependency on miniz_oxide is stripped by the automatic patch, but it is also removed from the rust-backend feature:
rust-backend
rust_backend = ["miniz_oxide"]
which breaks the build of the crate.
If a stripped dependency is not optional, it cannot be named in feature dependencies, so it should also not be removed.
Metadata Update from @decathorpe: - Issue set to the milestone: 23
Fixed by https://pagure.io/fedora-rust/rust2rpm/pull-request/225
Metadata Update from @decathorpe: - Issue close_status updated to: Fixed - Issue status updated to: Closed (was: Open)
Log in to comment on this ticket.