Crates.io | libgpiod-sys |
lib.rs | libgpiod-sys |
version | 0.1.1 |
source | src |
created_at | 2023-06-12 07:38:59.184543 |
updated_at | 2023-11-21 14:11:23.33672 |
description | libgpiod public header bindings |
homepage | |
repository | https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git |
max_upload_size | |
id | 887863 |
size | 6,097 |
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.
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/"
This project is licensed under either of