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

#1069 in Hardware support

Download history 749/week @ 2024-12-01 810/week @ 2024-12-08 1329/week @ 2024-12-15 449/week @ 2024-12-22 1826/week @ 2024-12-29 817/week @ 2025-01-05 1065/week @ 2025-01-12 867/week @ 2025-01-19 1134/week @ 2025-01-26 1363/week @ 2025-02-02 913/week @ 2025-02-09 1207/week @ 2025-02-16 1309/week @ 2025-02-23 1110/week @ 2025-03-02 1028/week @ 2025-03-09 1317/week @ 2025-03-16

4,830 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