linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bartosz Golaszewski <brgl@bgdev.pl>
To: Viresh Kumar <viresh.kumar@linaro.org>,
	 Linus Walleij <linus.walleij@linaro.org>,
	Erik Wierich <erik@riscstar.com>
Cc: linux-gpio@vger.kernel.org,
	 Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Subject: [PATCH libgpiod v3 07/10] bindings: rust: update system-deps dependency
Date: Thu, 28 Aug 2025 19:43:09 +0200	[thread overview]
Message-ID: <20250828-rust-1-0-0-release-v3-7-0f9c6c1c4808@linaro.org> (raw)
In-Reply-To: <20250828-rust-1-0-0-release-v3-0-0f9c6c1c4808@linaro.org>

From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

Bump the system-deps dependency for libgpiod-sys to the most recent major
version. The way we iterate over libs has changed, we now need to convert
it explicitly to an iterable. No longer require a specific minor
version.

Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
---
 bindings/rust/libgpiod-sys/Cargo.toml | 2 +-
 bindings/rust/libgpiod-sys/build.rs   | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/bindings/rust/libgpiod-sys/Cargo.toml b/bindings/rust/libgpiod-sys/Cargo.toml
index d5901b96721255c4ebefaef6b18a6bd9847d3b4e..db2616f74c2d116878abca6b5391647f6b6fd2d4 100644
--- a/bindings/rust/libgpiod-sys/Cargo.toml
+++ b/bindings/rust/libgpiod-sys/Cargo.toml
@@ -25,7 +25,7 @@ v2_1 = []
 
 [build-dependencies]
 bindgen = "0.72"
-system-deps = "2.0"
+system-deps = "7"
 
 [package.metadata.system-deps.libgpiod]
 name = "libgpiod"
diff --git a/bindings/rust/libgpiod-sys/build.rs b/bindings/rust/libgpiod-sys/build.rs
index ab5b11308c92579a5b16883d47ec5a616c2db78c..14fd0b011bd6077b0c9be1905b8faaa1a5a39e0d 100644
--- a/bindings/rust/libgpiod-sys/build.rs
+++ b/bindings/rust/libgpiod-sys/build.rs
@@ -27,8 +27,8 @@ fn main() {
         .parse_callbacks(Box::new(bindgen::CargoCallbacks::new()));
 
     // Inform bindgen about the include paths identified by system_deps.
-    for (_name, lib) in libs {
-        for include_path in lib.include_paths {
+    for (_name, lib) in libs.iter() {
+        for include_path in &lib.include_paths {
             builder = builder.clang_arg("-I").clang_arg(
                 include_path
                     .to_str()

-- 
2.48.1


  parent reply	other threads:[~2025-08-28 17:43 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-28 17:43 [PATCH libgpiod v3 00/10] bindings: rust: prepare v1.0.0 release Bartosz Golaszewski
2025-08-28 17:43 ` [PATCH libgpiod v3 01/10] bindings: rust: make Buffer::read_edge_events() lifetimes more explicit Bartosz Golaszewski
2025-08-28 17:43 ` [PATCH libgpiod v3 02/10] bindings: rust: add missing unsafe block ahead of rust version bump Bartosz Golaszewski
2025-08-28 17:43 ` [PATCH libgpiod v3 03/10] bindings: rust: bump the minimum required rustc version Bartosz Golaszewski
2025-08-28 17:43 ` [PATCH libgpiod v3 04/10] bindings: rust: update bindgen dependency Bartosz Golaszewski
2025-08-28 17:43 ` [PATCH libgpiod v3 05/10] bindings: rust: update errno dependency Bartosz Golaszewski
2025-08-28 17:43 ` [PATCH libgpiod v3 06/10] bindings: rust: update cc dependency Bartosz Golaszewski
2025-08-28 17:43 ` Bartosz Golaszewski [this message]
2025-08-28 17:43 ` [PATCH libgpiod v3 08/10] bindings: rust: update thiserror dependency Bartosz Golaszewski
2025-08-28 17:43 ` [PATCH libgpiod v3 09/10] bindings: rust: update intmap dependency Bartosz Golaszewski
2025-08-28 17:43 ` [PATCH libgpiod v3 10/10] bindings: rust: update crate versions to v1.0.0 Bartosz Golaszewski
2025-08-29  8:02 ` [PATCH libgpiod v3 00/10] bindings: rust: prepare v1.0.0 release Erik Schilling
2025-09-01  8:35 ` Bartosz Golaszewski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250828-rust-1-0-0-release-v3-7-0f9c6c1c4808@linaro.org \
    --to=brgl@bgdev.pl \
    --cc=bartosz.golaszewski@linaro.org \
    --cc=erik@riscstar.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=viresh.kumar@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).