Rust Rewrite Index

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

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 libraries
  • python3-libgpiod · Python bindings for libgpiod (Python 3)
  • gpiod · Tools for interacting with Linux GPIO character device - binary
  • libgpiod-dev · C library for interacting with Linux GPIO device - static libraries and headers
  • libgpiod-doc · C library for interacting with Linux GPIO device - library documentation

Source record

Debian snapshot version
2.2.1-2+deb13u1

More in this category

Graphics & devices

How statuses are assigned