I'm trying to figure out how to interface with a USB device in Rust. Does anyone have a solution? I found a package called usb-rust, but it was deprecated.
There are a number of wrappers to the C libusb library, including libusb and usb I haven't used either yet, but since your question came up first in my search, I thought I'd log these two answers here.
Editing in 2022, neither libusb-rs, rust-usb have been updated to the current version of Rust, but as another answer points out, rusb is very much active, builds libusb as part of installation, and wraps resources so they automatically get closed via RAII. Nice!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With