#2 Incorrect Handling of Optional Dependencies in Stripping Process
Closed by decathorpe. Opened by thunderbirdtr.

I have identified a bug in the rust2rpm-helper tool related to the stripping process during the cargo metadata subcommand. The error occurs when the stripping code incorrectly removes optional dependencies, leading to the invalidation of syntax for these dependencies. This issue is not specific to a particular dependency but may manifest with other optional dependencies as well.


Thanks. This is easily reproducible with the eframe crate. The raw-window-handle optional dependency is removed, but a non-optional dependency remains. However, this makes using dep:raw-window-handle syntax for feature dependencies invalid, since it can only be used for optional dependencies.

It looks like the latest versions of the eframe crate are no longer affected. So I'll put this on the TODO list for the next release for now.

Looks like these might actually have been incorrectly set up metadata upstream, since all three similar cases are no longer happening with the latest upstream releases of the originally affected crates, see: https://pagure.io/fedora-rust/rust2rpm-helper/issue/3

Metadata Update from @decathorpe:
- Issue status updated to: Closed (was: Open)

Metadata