This project is modified from wooduffw's usb-ids.rs (https://github.com/woodruffw/usb-ids.rs)
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.
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());
}
}