On 26-05-23, 17:27, Erik Schilling wrote: > As of now, the Rust bindings are only consumable as git dependencies > (and even then come with some restrictions when wanting to control > the build and linkage behaviour). > > This series does some cleanup and then proposes a change in how the Rust > bindings are built and linked in order to prepare libgpiod-sys (and thus > also libgpiod) for being packageable via `cargo package` (which is a > prerequisite for eventually publishing to crates.io). > > Signed-off-by: Erik Schilling <erik.schilling@xxxxxxxxxx> > --- > Changes in v2: > - Added wrapper.h that I forgot in v1 (Thanks Viresh!) > - Rebased on top of the commits that already got merged as part of v1 > - Automatically set the right flags when using `make` > - Tweaked the docs (setting the flags is now done automatically, so it > is not as important anymore) > - Link to v1: https://lore.kernel.org/r/20230522-crates-io-v1-0-42eeee775eb6@xxxxxxxxxx > > --- > Erik Schilling (2): > rust: bindings: turn SPDX tags into comments > bindings: rust: build against pkg-config info > > README | 4 +++- > bindings/rust/gpiosim-sys/README.md | 8 ++++--- > bindings/rust/libgpiod-sys/Cargo.toml | 4 ++++ > bindings/rust/libgpiod-sys/README.md | 16 +++++++++++--- > bindings/rust/libgpiod-sys/build.rs | 40 +++++++++++++++++++++++------------ > bindings/rust/libgpiod-sys/wrapper.h | 1 + > bindings/rust/libgpiod/Makefile.am | 8 ++++++- > 7 files changed, 59 insertions(+), 22 deletions(-) Acked-by: Viresh Kumar <viresh.kumar@xxxxxxxxxx> -- viresh