libgpiod
C library for interacting with Linux GPIO device - shared libraries
Rust efforts
The index has yet to document a Rust effort for this project. An independent effort may already exist.
Search public Rust repositories
Original source check. The packaged source tree includes 38 files with the .rs suffix. This covers the Debian 13 snapshot and excludes common vendor directories. Independent repositories are outside this count.
Project structure
libgpiod encapsulates the ioctl calls and data structures behind a straightforward API. This new character device interface guarantees all allocated resources are freed after closing the device file descriptor and adds several new features that are not present in the obsolete sysfs interface (like event polling, setting/reading multiple values at once or open-source and open-drain GPIOs).
Inside the source tree
bindings/· 269 indexed filesdocs/· 53 indexed filesdbus/· 47 indexed filestests/· 31 indexed filesman/· 23 indexed files
Source files by extension in this snapshot · C (111), C++ (43), Python (43), Rust (38)
Selected components packaged from this source in Debian 13.
libgpiod3· C library for interacting with Linux GPIO device - shared librariespython3-libgpiod· Python bindings for libgpiod (Python 3)gpiod· Tools for interacting with Linux GPIO character device - binarylibgpiod-dev· C library for interacting with Linux GPIO device - static libraries and headerslibgpiod-doc· C library for interacting with Linux GPIO device - library documentation