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

#434 in Hardware support

Download history 636/week @ 2023-12-16 163/week @ 2023-12-23 281/week @ 2023-12-30 492/week @ 2024-01-06 623/week @ 2024-01-13 746/week @ 2024-01-20 697/week @ 2024-01-27 737/week @ 2024-02-03 850/week @ 2024-02-10 775/week @ 2024-02-17 855/week @ 2024-02-24 716/week @ 2024-03-02 759/week @ 2024-03-09 744/week @ 2024-03-16 878/week @ 2024-03-23 434/week @ 2024-03-30

2,924 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