nusb 0.2.3

Cross-platform low-level access to USB devices in pure Rust
Documentation
1
2
3
4
5
6
7
8
use futures_lite::stream;

fn main() {
    env_logger::init();
    for event in stream::block_on(nusb::watch_devices().unwrap()) {
        println!("{:#?}", event);
    }
}