Skip to content

Commit

Permalink
Updated deps
Browse files Browse the repository at this point in the history
  • Loading branch information
xanathar committed Nov 8, 2024
1 parent 2e532e9 commit e3f96ac
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ paste = "1.0"
libc = "0.2"

[target.'cfg(target_os = "macos")'.dependencies]
core-foundation = "0.9.4"
core-foundation = "0.10"

[target.'cfg(target_os = "windows")'.dependencies]
wmi = "0.13.3"
windows = { version = "0.56.0", features = [
wmi = "0.14"
windows = { version = "0.58", features = [
"Win32_Devices_DeviceAndDriverInstallation",
"Win32_System",
"Win32_System_Registry",
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ PCI device classes, subclassses and interface functions are optionally exposed a
PCI vendor and device ids are kept as `u16` and have to be manually interpreted or transformed into strings using other crates; the publicly available list of PCI vendors and devices is intentionally not included to contain the crate size (the complete list is large) and to avoid licensing issues (this crate being MIT+Apache dual licensed, the list being GPL+BSD dual licensed).

## Summary of provided features
- Enumeration of devices using OS usermode APIs on Windows, Linux and macOS, with more platforms to be added. See the `PciInfo` type.
- Enumeration of devices using OS usermode APIs on Windows, Linux, macOS, and FreeBSD, with more platforms to be added. See the `PciInfo` type.
- Parsing of PCI headers starting from byte arrays of the PCI configuration space. See the `pci_headers` module.
- Parsing of PCI device classes, subclasses and interface-functions from their codes. See the `pci_enums` module.

Expand Down
2 changes: 1 addition & 1 deletion src/enumerators/windows/setupapi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ pub(super) fn enumerate_pci() -> Result<PciInfo, PciInfoError> {
let device_info_set = setupapi::SetupDiGetClassDevsW(
Some(&GUID_DEVCLASS_SYSTEM as *const GUID),
PCWSTR(ptr::null()),
HWND(0),
HWND(ptr::null_mut()),
setupapi::SETUP_DI_GET_CLASS_DEVS_FLAGS(
setupapi::DIGCF_PRESENT.0 | setupapi::DIGCF_ALLCLASSES.0,
),
Expand Down

0 comments on commit e3f96ac

Please sign in to comment.