Crates.io | libgpiod |
lib.rs | libgpiod |
version | 0.2.2 |
source | src |
created_at | 2023-06-13 10:30:00.855824 |
updated_at | 2023-11-21 14:11:53.411734 |
description | libgpiod wrappers |
homepage | |
repository | https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git |
max_upload_size | |
id | 888903 |
size | 177,826 |
libgpiod
is a C library that provides an easy to use abstraction over the Linux GPIO
character driver. This crate builds on top of libgpiod-sys
and exports a safe
interface to the C library.
By default, libgpiod-sys
builds against the libgpiod version identified via
pkg-config
. See the README.md
of libgpiod-sys
for options to override
that.
Currently at least libgpiod 2.0 is required with the default feature set.
The Rust bindings will usually be built against whatever libgpiod version a system provides. Hence, only the functionality of the oldest supported libgpiod C library will be exposed by default.
Setting flags allows to increase the base version and export features of newer versions:
v2_1
: Minimum version of 2.1.x
vnext
: The upcoming, still unreleased version of the C libThis project is licensed under either of