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.