4 releases

0.2.3 Jan 21, 2023
0.2.2 Oct 15, 2022
0.2.1 Sep 15, 2022
0.2.0 Jul 31, 2022

#6 in #libgpiod

Download history 767/week @ 2023-11-23 603/week @ 2023-11-30 629/week @ 2023-12-07 611/week @ 2023-12-14 171/week @ 2023-12-21 375/week @ 2023-12-28 635/week @ 2024-01-04 484/week @ 2024-01-11 853/week @ 2024-01-18 689/week @ 2024-01-25 595/week @ 2024-02-01 1116/week @ 2024-02-08 988/week @ 2024-02-15 1558/week @ 2024-02-22 1236/week @ 2024-02-29 525/week @ 2024-03-07

4,430 downloads per month
Used in 5 crates (3 directly)

MIT license

67KB
2K SLoC

libgpiod in Rust

github crate docs MIT CI

Rust crate for interfacing with Linux GPIO character devices.

It provides an interface to the Linux GPIO using the chardev module. This interface involves calling ioctl funcions which are unsafe and require some unintuitive variable mapping. The functionality provided here is highly inspired by libgpiod.

Since all functionality is dependent on Linux function calls, this crate only compiles for Linux systems.

ABI compatibility

Both v1 (>= 4.0) and v2 (>= v5.10) ABI currently supported but edge detection implemented for v2 only. Sysfs-based API (< 4.0) does not supported.

Crates

Dependencies

~2MB
~40K SLoC