/
View dependency graph
Depends on
- dh-cargo (dh-sequence-cargo)
- rust-atomic-waker (librust-atomic-waker-1+default-dev)
- rust-futures-core (librust-futures-core-0.3+default-dev)
- rust-libc (librust-libc-0.2+default-dev)
- rust-log (librust-log-0.4+default-dev)
- rust-once-cell (librust-once-cell-1+default-dev)
- cargo, debhelper-compat, librust-rustix-1+default-dev, librust-rustix-1+event-dev, librust-rustix-1+fs-dev, librust-rustix-1+net-dev, librust-slab-0.4+default-dev, libstd-rust-dev, rustc
README (full)
nusb
A new pure-Rust library for cross-platform low-level access to USB devices.
Compared to rusb and libusb
- Pure Rust, no dependency on libusb or any other C library.
- Async-first, while not requiring an async runtime like
tokioorasync-std. Still easily supports blocking withfutures_lite::block_on. - No context object. You just open a device. There is a global event loop thread that is started when opening the first device.
- Thinner layer over OS APIs, with less internal state.
Current status
- Support for Linux, Windows, macOS, and Android
- Device listing and descriptor parsing
- Transfers on control, bulk and interrupt endpoints
- Device connect / disconnect events on all platforms
- Used by probe-rs, packetry, postcard-rpc and others, but still relatively new. Please test with your device and report issues.
License
MIT or Apache 2.0, at your option
| dir | .github/ |
| dir | debian/ |
| dir | examples/ |
| dir | src/ |
| file | .cargo_vcs_info.json |
| file | .gitignore |
| file | Cargo.lock |
| file | Cargo.toml |
| file | Cargo.toml.orig |
| file | LICENSE-APACHE |
| file | LICENSE-MIT |
| file | README.md |