Description of problem: According to https://bugzilla.redhat.com/show_bug.cgi?id=2159314 The feature based dependency cannot parse dependency in the format of ``` [dependencies.nispor] version = "1.2.9" optional = true [features] default = ["query_apply"] query_apply = ["nispor"] ``` The error message indicate the rust packaging tools think the `nispor` is internal feature instead of external dependency. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
The workaround I use is : ``` [features] default = ["query_apply"] query_apply = ["dep:nispor"] ``` Then manually define `Requires: (crate(nispor/default) >= 1.2.9 with crate(nispor/default) < 2.0)`
The problem is not `[dependencies.foo]`, but `["dep:nispor"]` format. It's not yet supported by our tools, but I'm working on it. *** This bug has been marked as a duplicate of bug 2152697 ***
This should be fixed when generating a spec file with rust2rpm >= 24 and building with cargo-rpm-macros >= 24, can you confirm that?
Sorry for the late response. Yes the `dep:<opt_dep_name` work as expected. Thank you!