https://github.com/woodruffw/usb-ids.rs
Cross-platform Rust wrappers for the USB ID Repository
https://github.com/woodruffw/usb-ids.rs
rust usb
Last synced: 3 months ago
JSON representation
Cross-platform Rust wrappers for the USB ID Repository
- Host: GitHub
- URL: https://github.com/woodruffw/usb-ids.rs
- Owner: woodruffw
- License: mit
- Created: 2020-12-27T01:28:30.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-01-27T00:12:10.000Z (6 months ago)
- Last Synced: 2025-03-28T20:36:52.781Z (4 months ago)
- Topics: rust, usb
- Language: Rust
- Homepage: https://crates.io/crates/usb-ids
- Size: 403 KB
- Stars: 24
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
usb-ids
=======[](https://github.com/woodruffw/usb-ids.rs/actions/workflows/ci.yml)
[](https://crates.io/crates/usb-ids)Cross-platform Rust wrappers for the [USB ID Repository](http://www.linux-usb.org/usb-ids.html).
This library bundles the USB ID database, allowing platforms other than Linux to query it
as a source of canonical USB metadata.## Usage
Iterating over all known vendors:
```rust
use usb_ids::Vendors;for vendor in Vendors::iter() {
for device in vendor.devices() {
println!("vendor: {}, device: {}", vendor.name(), device.name());
}
}
```See [the documentation](https://docs.rs/usb-ids) for more details.