This is a library that lets you use a PCI ID database, such as one shipped with Linux distros or from https://pci-ids.ucw.cz/. It can either read the locally installed file or fetch one from the website.
```rust use pciid_parser::Database;
let db = Database::getonline().unwrap();
Alternatively, you can read the local DB:
rust
let db = Database::read().unwrap();
Get device:
rust
let vendor = db.vendors.get("1002").unwrap();
asserteq!(vendor.name, "Advanced Micro Devices, Inc. [AMD/ATI]");
let device = vendor.devices.get("67df").unwrap();
asserteq!(
device.name,
"Ellesmere [Radeon RX 470/480/570/570X/580/580X/590]"
);
Get full device and subdevice info:
rust
let info = db.getdevice_info("1002", "67DF", "1DA2", "E387");
```