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

#701 in Hardware support

Download history 1139/week @ 2024-12-13 649/week @ 2024-12-20 1375/week @ 2024-12-27 1134/week @ 2025-01-03 944/week @ 2025-01-10 947/week @ 2025-01-17 1225/week @ 2025-01-24 1256/week @ 2025-01-31 987/week @ 2025-02-07 1140/week @ 2025-02-14 1423/week @ 2025-02-21 1096/week @ 2025-02-28 1061/week @ 2025-03-07 1227/week @ 2025-03-14 1207/week @ 2025-03-21 944/week @ 2025-03-28

4,628 downloads per month
Used in 4 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