2 releases

0.1.1 Nov 21, 2023
0.1.0 Jun 12, 2023

#737 in Unix APIs

Download history 133/week @ 2024-01-01 177/week @ 2024-01-08 191/week @ 2024-01-15 145/week @ 2024-01-22 85/week @ 2024-01-29 285/week @ 2024-02-05 136/week @ 2024-02-12 215/week @ 2024-02-19 161/week @ 2024-02-26 151/week @ 2024-03-04 163/week @ 2024-03-11 295/week @ 2024-03-18 309/week @ 2024-03-25 363/week @ 2024-04-01 125/week @ 2024-04-08 62/week @ 2024-04-15

870 downloads per month
Used in 2 crates (via libgpiod)

Apache-2.0 OR BSD-3-Clause

6KB

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

No runtime deps

~0–1.9MB
~37K SLoC