Crates.io | usb-ids |
lib.rs | usb-ids |
version | |
source | src |
created_at | 2020-12-27 01:45:50.324197 |
updated_at | 2024-12-09 22:01:34.488771 |
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 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
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.