5 releases

0.2.5 Nov 25, 2022
0.2.4 Jan 24, 2022
0.2.3 Jan 15, 2022
0.2.2 Jan 4, 2022
0.2.1 Jan 4, 2022

#611 in Hardware support

Download history 861/week @ 2024-03-25 633/week @ 2024-04-01 966/week @ 2024-04-08 697/week @ 2024-04-15 796/week @ 2024-04-22 527/week @ 2024-04-29 466/week @ 2024-05-06 915/week @ 2024-05-13 767/week @ 2024-05-20 628/week @ 2024-05-27 943/week @ 2024-06-03 899/week @ 2024-06-10 939/week @ 2024-06-17 773/week @ 2024-06-24 800/week @ 2024-07-01 631/week @ 2024-07-08

3,198 downloads per month
Used in 2 crates

MIT license

320KB
438 lines

pci-ids

This project is modified from wooduffw's usb-ids.rs (https://github.com/woodruffw/usb-ids.rs)

license Build Status Crates.io

Cross-platform Rust wrappers for the PCI ID Repository.

This library bundles the PCI ID database, allowing platforms other than Linux to query it as a source of canonical PCI metadata.

Usage

Iterating over all known vendors:

use pci_ids::Vendors;

for vendor in Vendors::iter() {
    for device in vendor.devices() {
        println!("vendor: {}, device: {}", vendor.name(), device.name());
    }
}

Iterating over all known subclasses:

use pci_ids::Classes;

for class in Classes::iter() {
    for subclass in class.subclasses() {
        println!("class: {}, subclass: {}", class.name(), subclass.name());
    }
}

Dependencies