linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH libgpiod v2 0/2] bindings: rust: allow packaging of libgpiod-sys
@ 2023-05-26 15:27 Erik Schilling
  2023-05-26 15:27 ` [PATCH libgpiod v2 1/2] rust: bindings: turn SPDX tags into comments Erik Schilling
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Erik Schilling @ 2023-05-26 15:27 UTC (permalink / raw)
  To: Linux-GPIO
  Cc: Bartosz Golaszewski, Viresh Kumar, Manos Pitsidianakis,
	Alex Bennée, Erik Schilling

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@linaro.org>
---
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@linaro.org

---
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(-)
---
base-commit: 4687bcc4f48a9894469ee240e0c67c42d56169c3
change-id: 20230522-crates-io-773a0b6b423d

Best regards,
-- 
Erik Schilling <erik.schilling@linaro.org>


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-05-31  6:17 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-26 15:27 [PATCH libgpiod v2 0/2] bindings: rust: allow packaging of libgpiod-sys Erik Schilling
2023-05-26 15:27 ` [PATCH libgpiod v2 1/2] rust: bindings: turn SPDX tags into comments Erik Schilling
2023-05-30 16:05   ` Bartosz Golaszewski
2023-05-26 15:27 ` [PATCH libgpiod v2 2/2] bindings: rust: build against pkg-config info Erik Schilling
2023-05-30 16:04   ` Bartosz Golaszewski
2023-05-30 16:27     ` Manos Pitsidianakis
2023-05-30 19:04       ` Bartosz Golaszewski
2023-05-31  6:17         ` Erik Schilling
2023-05-29  5:01 ` [PATCH libgpiod v2 0/2] bindings: rust: allow packaging of libgpiod-sys Viresh Kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).