#1 RFE: implement detection of "required-features" for non-workspace crates
Closed by decathorpe. Opened by decathorpe.

Currently, automatic detection of "required-features" is only enabled in the BuildRequires generator for workspace crates. Implementing the equivalent functionality for non-workspace crates should not be too hard, and would not require changes in rust2rpm (as the features are enabled inside the BuildRequires generator and do not need to be passed as arguments).


This feature is now implemented in rust2rpm.

I decided it doesn't make sense to use the same logic for "single" crates than what's currently in place for workspaces, and instead, feature flags for "required-features" of "bin" and "cdylib" targets are now automatically added to %cargo_* macros when rendering the .spec file.

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

Log in to comment on this ticket.

Metadata