←back to thread

374 points sbt567 | 3 comments | | HN request time: 0.601s | source
1. 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 #
2. dralley ◴[] No.44383286[source]
Rust isn't that difficult really. Easier in many ways than C if you're building normal software and not, like, a library of fancy data structures.
3. 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.