Crates that use system-deps (and similar crates) have metadata for dependencies on system libraries, i.e. which feature of the crate requires which version of the system library.
system-deps
For example, the gstreamer-sys crate: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/blob/0.20.0/gstreamer/sys/Cargo.toml#L53-73
gstreamer-sys
It should be fairly straightforward to support this metadata format and automatically generate the appropriate Requires and BuildRequires. Doing so would make it unnecessary to manually keep these requirements up-to-date in rust2rpm.conf files.
Is that guaranteed to be pkgconfig names?
Yes. Only pkgconfig is supported as a backend at this point: https://crates.io/crates/system-deps
The crate is almost exclusively used by GTK and GStreamer bindings, so that makes sense ...
Log in to comment on this ticket.