diff mbox series

[libgpiod,RFC,1/3] bindings: rust: drop legacy extern crate syntax

Message ID 20230522-crates-io-v1-1-42eeee775eb6@linaro.org
State New
Headers show
Series bindings: rust: allow packaging of libgpiod-sys | expand

Commit Message

Erik Schilling May 23, 2023, 11:25 a.m. UTC
This is a relict from old Rust standards and no longer requires [1].

[1] https://doc.rust-lang.org/edition-guide/rust-2018/path-changes.html#no-more-extern-crate

Signed-off-by: Erik Schilling <erik.schilling@linaro.org>
---
 bindings/rust/libgpiod-sys/build.rs | 2 --
 1 file changed, 2 deletions(-)

Comments

Viresh Kumar May 24, 2023, 4:36 a.m. UTC | #1
On 23-05-23, 13:25, Erik Schilling wrote:
> This is a relict from old Rust standards and no longer requires [1].
> 
> [1] https://doc.rust-lang.org/edition-guide/rust-2018/path-changes.html#no-more-extern-crate
> 
> Signed-off-by: Erik Schilling <erik.schilling@linaro.org>
> ---
>  bindings/rust/libgpiod-sys/build.rs | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/bindings/rust/libgpiod-sys/build.rs b/bindings/rust/libgpiod-sys/build.rs
> index e3ed04a..b1333f1 100644
> --- a/bindings/rust/libgpiod-sys/build.rs
> +++ b/bindings/rust/libgpiod-sys/build.rs
> @@ -2,8 +2,6 @@
>  // SPDX-FileCopyrightText: 2022 Linaro Ltd.
>  // SPDX-FileCopyrightTest: 2022 Viresh Kumar <viresh.kumar@linaro.org>
>  
> -extern crate bindgen;
> -
>  use std::env;
>  use std::path::PathBuf;

Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
diff mbox series

Patch

diff --git a/bindings/rust/libgpiod-sys/build.rs b/bindings/rust/libgpiod-sys/build.rs
index e3ed04a..b1333f1 100644
--- a/bindings/rust/libgpiod-sys/build.rs
+++ b/bindings/rust/libgpiod-sys/build.rs
@@ -2,8 +2,6 @@ 
 // SPDX-FileCopyrightText: 2022 Linaro Ltd.
 // SPDX-FileCopyrightTest: 2022 Viresh Kumar <viresh.kumar@linaro.org>
 
-extern crate bindgen;
-
 use std::env;
 use std::path::PathBuf;