←back to thread

361 points sbt567 | 1 comments | | HN request time: 0.207s | source
Show context
fracus ◴[] No.44382626[source]
I wish this was done in C so I didn't have to learn Rust. But maybe it is time to learn Rust.
replies(2): >>44383286 #>>44385145 #
1. jeroenhd ◴[] No.44385145[source]
This is using rusb, a Rust wrapper around libusb. libusb is still written in plain old C: https://libusb.info/

If you don't want to learn a different programming language, you can take the exact same approach in any language you prefer and play along. You may need to turn the more object oriented calls into libusb_* calls, but if you're used to programming in C you probably won't have a problem getting that to work.