rust-embedded / rust-sysfs-gpio

A Rust Interface to the Linux sysfs GPIO interface (https://www.kernel.org/doc/Documentation/gpio/sysfs.txt)
Apache License 2.0
383 stars 45 forks source link

Add conversion to io::Error #77

Closed scootermon closed 5 months ago

scootermon commented 5 months ago

I'm not sure if this repository is still being maintained, but the crate is still very useful when working with older Linux kernels.

This PR adds a simple implementation for mapping this crate's custom error type to std::io::Error. Having this impl is useful when interacting with other functions that return std::io::Result.

nastevens commented 5 months ago

Hey @scootermon - the CI fixes are merged, so if you can merge or rebase with your changes we can get this merged. Thanks again for your contribution!

scootermon commented 5 months ago

Thanks, @nastevens. I went ahead and rebased the PR.

nastevens commented 5 months ago

Thanks again for the contribution @scootermon!

nastevens commented 5 months ago

sysfs_gpio 0.6.2 published: https://crates.io/crates/sysfs-gpio/0.6.2