-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCargo.toml
More file actions
56 lines (47 loc) · 1.32 KB
/
Cargo.toml
File metadata and controls
56 lines (47 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
[package]
name = "libpci-rs"
description = "A cross-platform library to detect and list PCI devices and their information."
authors = [ "Gibson Pilconis", "shibedrill" ]
license = "BSD-3-Clause"
version = "0.2.10"
edition = "2021"
homepage = "https://github.com/gibsonpil/libpci-rs"
documentation = "https://docs.rs/libpci-rs"
readme = "README.md"
build = "build/main.rs"
categories = [ "api-bindings", "hardware-support", "os" ]
rust-version = "1.70.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
default = ["pciids"]
pciids = ["dep:phf"]
[lib]
path = "src/lib/lib.rs"
[[bin]]
name = "lspci"
path = "src/bin/lspci.rs"
[dependencies]
bindgen = "0.70.1"
cfg-if = "1.0.0"
clap = { version = "=4.4.18", features = ["derive"] }
cxx = { version = "1.0.120", features = ["c++17"] }
lazy_static = "1.4.0"
once_cell = "1.19.0"
phf = { version = "0.11.2", default-features = false, optional = true }
[target.'cfg(windows)'.dependencies]
windows = { version = "0.58.0",features = [
"Win32_Devices_DeviceAndDriverInstallation",
"Win32_Foundation"
]}
[dev-dependencies]
fastrand = "2.0.2"
[build-dependencies]
quote = "1.0"
phf_codegen = "0.11.2"
proc-macro2 = "1.0.79"
cfg-if = "1.0.0"
cxx-build = "1.0.120"
[profile.release]
strip = true
lto = true
opt-level = "z"