usb-ids

Crates.iousb-ids
lib.rsusb-ids
version1.2024.4
sourcesrc
created_at2020-12-27 01:45:50.324197
updated_at2024-07-08 03:39:53.340672
descriptionRust wrappers for the USB ID Repository
homepagehttps://github.com/woodruffw/usb-ids.rs
repositoryhttps://github.com/woodruffw/usb-ids.rs
max_upload_size
id327686
size788,342
William Woodruff (woodruffw)

documentation

README

usb-ids

CI Crates.io

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.

Usage

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.

Commit count: 104

cargo fmt