There are many ways to set SONAME for rust C library, some of them requires you to modify RUSTFLAGS which is not suggested by Fedora rust packaging tools.
RUSTFLAGS
Including suggestions for this use case which works with Fedora rust packaging tools.
rebased onto 705d8f3006b83ba175af436200bff1ff53137246
rebased onto 2cc34df784a2c1b67fdd6fbae8cbf0dfbbcd0a2b
This is not documented because the recommended way to build C-ABI libraries is with cargo-c, which handles this automatically. There is also the cdylib-link-lines crate, which also addresses this use case. If upstream does not use either of these to set the soname when building the cdylib target, I would consider that an upstream bug and not something that should be worked around in packaging.
In that case, I will close this PR.
Pull-Request has been closed by cathay4t
There are many ways to set SONAME for rust C library, some of them
requires you to modify
RUSTFLAGSwhich is not suggested by Fedora rustpackaging tools.
Including suggestions for this use case which works with Fedora rust
packaging tools.