| Crates.io | usb-ids |
| lib.rs | usb-ids |
| version | 1.2025.2 |
| created_at | 2020-12-27 01:45:50.324197+00 |
| updated_at | 2025-04-02 12:23:52.767806+00 |
| description | Rust wrappers for the USB ID Repository |
| homepage | https://github.com/woodruffw/usb-ids.rs |
| repository | https://github.com/woodruffw/usb-ids.rs |
| max_upload_size | |
| id | 327686 |
| size | 791,953 |
Cross-platform Rust wrappers for the USB ID Repository.
This library bundles the USB ID database, allowing platforms other than Linux to query it as a source of canonical USB metadata.
Iterating over all known vendors:
use usb_ids::Vendors;
for vendor in Vendors::iter() {
for device in vendor.devices() {
println!("vendor: {}, device: {}", vendor.name(), device.name());
}
}
See the documentation for more details.