-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
99 lines (93 loc) · 2.99 KB
/
Cargo.toml
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
[lib]
# 设置 crate 类型,有三个选项:`rlib` (Rust library),`dylib` (dynamic library),`cdylib` (C-compatible dynamic library)
crate-type = ["rlib"]
proc-macro = false
[features]
log = ["e-log/log"]
tracing = ["e-log/tracing"]
ohm = ["wmi", "system"]
aida64 = ["wmi", "system"]
cli = ["structopt"]
system = ["sysinfo/system"]
user = ["sysinfo/user", "desktop"]
desktop = [
"windows/Win32_Foundation",
"windows/Win32_Storage_FileSystem",
"windows/Win32_NetworkManagement_NetManagement",
]
network = ["sysinfo/network", "net-interface", "futures"]
multithread = ["sysinfo/multithread"]
disk = ["sysinfo/disk"]
component = ["sysinfo/component"]
drive = [
"winapi/winbase",
"winapi/libloaderapi",
"winapi/minwinbase",
"winapi/winuser",
]
file-info = ["goblin", "winapi/winbase", "winapi/processenv"]
os-system = []
os-office = []
build = ["winresource", "static_vcruntime", "e-utils/build"]
built = ["dep:built", "e-utils/fs"]
net-interface = [
"windows/Win32_Foundation",
"windows/Win32_NetworkManagement_IpHelper",
"windows/Win32_Networking_WinSock",
"libc",
]
os = [
"system",
"user",
"network",
"multithread",
"disk",
"component",
"os-system",
"os-office",
]
default = ["ohm", "aida64", "os", "cli", "file-info", "drive", "tracing"]
[target.'cfg(windows)'.build-dependencies]
winresource = { version = "0.1", optional = true }
static_vcruntime = { version = "2", optional = true }
[build-dependencies]
built = { version = "0.7", features = ["chrono", "git2"], optional = true }
e-utils = { version = "0.4" }
[target.'cfg(target_os="windows")'.dependencies]
wmi = { version = "0.14", optional = true }
windows = { version = "0.30", optional = true }
winapi = { version = "0.3.9", optional = true }
[dependencies]
e-utils = { version = "0.4", features = ["tokio", "cmd", "parse"] }
tokio = { version = "1", features = ["full"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1.0"
structopt = { version = "0.3", optional = true }
strum = { version = "0.26", features = ["derive"] }
sysinfo = { version = "0.33", default-features = false }
libc = { version = "0.2", optional = true }
futures = { version = "0.3", optional = true }
goblin = { version = "0.9", optional = true }
e-log = { version = "0.3", optional = true }
[dev-dependencies]
hw = { path = "./" }
[package]
name = "hw"
version = "0.1.20"
authors = ["Eternal(梦游) <[email protected]>"]
edition = "2021"
rust-version = "1.78.0"
license-file = "LICENSE"
homepage = "https://gitee.com/eternalnight996"
description = "强大而统一的跨平台硬件监控工具"
documentation = "https://docs.rs/hw"
keywords = ["hardware", "monitor", "system", "sensors", "hw"]
categories = [
"hardware-support",
"os::windows-apis",
"development-tools::debugging",
"os",
"command-line-utilities",
]
include = ["src/", "*.md", "LICENSE", "Cargo.toml", "COPYRIGHT", "build.rs"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html