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

#848 in Hardware support

Download history 435/week @ 2024-11-16 732/week @ 2024-11-23 752/week @ 2024-11-30 804/week @ 2024-12-07 1336/week @ 2024-12-14 398/week @ 2024-12-21 1821/week @ 2024-12-28 750/week @ 2025-01-04 1044/week @ 2025-01-11 913/week @ 2025-01-18 1195/week @ 2025-01-25 1364/week @ 2025-02-01 946/week @ 2025-02-08 1167/week @ 2025-02-15 1334/week @ 2025-02-22 1099/week @ 2025-03-01

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