mirror of
https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git
synced 2026-10-25 12:39:18 +03:00
Minor update the exposes feature flag and bindings for v2.1. Changelog: ==========7552e5d(bindings: rust: expose v2.1 features as flag, 2023-11-06)bc91656(bindings: rust: add wrapper.h to EXTRA_DIST, 2023-11-03)3b40a37(bindings: rust: fix EXTRA_DIST for examples, 2023-11-03) Signed-off-by: Erik Schilling <erik.schilling@linaro.org> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Safe wrapper around Rust FFI bindings for libgpiod
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.
Build requirements
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.
Features
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 of2.1.xvnext: The upcoming, still unreleased version of the C lib
License
This project is licensed under either of
- Apache License, Version 2.0
- BSD-3-Clause License