Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I wish this was done in C so I didn't have to learn Rust. But maybe it is time to learn Rust.


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.


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: