Hi Bartosz/Miguel,
Here is another attempt to add rust wrappers for libgpiod, hopefully it would look much better this time.
V1->V2 - Propagate proper errors returned by the kernel to the user. Improved error handling overall.
- Improved Enum support, with their own helpers to reduce redundant code.
- Improved names for methods of various structures, they are updated to match the underlying libgpiod helpers.
- SAFETY comments added to methods that return strings.
- Based off next/post-libgpiod-2.0 branch.
-- Viresh
Viresh Kumar (2): libgpiod: Generate rust FFI bindings libgpiod: Add rust wrappers
.gitignore | 7 + Cargo.toml | 14 + build.rs | 60 ++ src/bindings.h | 3 + src/bindings.rs | 16 + src/lib.rs | 1474 +++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 1574 insertions(+) create mode 100644 Cargo.toml create mode 100644 build.rs create mode 100644 src/bindings.h create mode 100644 src/bindings.rs create mode 100644 src/lib.rs