1
0
mirror of https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git synced 2026-10-24 00:48:53 +03:00
Files
libgpiod/bindings/rust/libgpiod-sys
Bartosz Golaszewski d0006cc3d5 bindings: rust: update crate versions to v1.0.0
Ahead of the first stable release, update versions for all libgpiod
crates to v1.0.0.

Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Erik Wierich <erik@riscstar.com>
Link: https://lore.kernel.org/r/20250828-rust-1-0-0-release-v3-10-0f9c6c1c4808@linaro.org
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
2025-09-01 10:23:50 +02:00
..

Generated libgpiod-sys Rust FFI bindings

Automatically generated Rust FFI bindings via bindgen.

Typically, you will want to use the safe libgpiod wrapper crate instead of these unsafe wrappers around the C lib.

Build requirements

A compatible variant of the C library needs to detectable using pkg-config. Alternatively, one can inform the build system about the location of the libs and headers by setting environment variables. The mechanism for that is documented in the system_deps crate documentation.

If installing libgpiod is undesired, one can set the following environent variables in order to build against the intermediate build results of a make build of the C lib (paths are relative to the Cargo.toml):

export SYSTEM_DEPS_LIBGPIOD_NO_PKG_CONFIG=1
export SYSTEM_DEPS_LIBGPIOD_SEARCH_NATIVE="<PATH-TO-LIBGPIOD>/lib/.libs/"
export SYSTEM_DEPS_LIBGPIOD_LIB=gpiod
export SYSTEM_DEPS_LIBGPIOD_INCLUDE="<PATH-TO-LIBGPIOD>/include/"

License

This project is licensed under either of