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

#973 in Hardware support

Download history 713/week @ 2024-08-04 547/week @ 2024-08-11 820/week @ 2024-08-18 1050/week @ 2024-08-25 840/week @ 2024-09-01 645/week @ 2024-09-08 773/week @ 2024-09-15 584/week @ 2024-09-22 919/week @ 2024-09-29 901/week @ 2024-10-06 658/week @ 2024-10-13 615/week @ 2024-10-20 594/week @ 2024-10-27 613/week @ 2024-11-03 668/week @ 2024-11-10 438/week @ 2024-11-17

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