-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCargo.toml
More file actions
119 lines (112 loc) · 3.45 KB
/
Copy pathCargo.toml
File metadata and controls
119 lines (112 loc) · 3.45 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
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# 项目构建入口。
# 这里定义包名、版本、发布构建策略,以及 Win32 API 绑定所需的功能开关。
[package]
name = "taskmgr-rs"
version = "0.2.7"
authors = ["taskmgr-rs contributors"]
description = "A classic Windows Task Manager built in Rust with native Win32 APIs."
license = "MIT"
repository = "https://github.com/JamesLinYJ/taskmgr-rs"
edition = "2024"
rust-version = "1.97"
build = "build.rs"
exclude = [".claude/**", ".tmp-pip/**", ".tmp-tests/**", ".vs/**"]
[package.metadata.winresource]
FileDescription = "taskmgr-rs - Classic Windows Task Manager"
ProductName = "taskmgr-rs"
InternalName = "taskmgr"
OriginalFilename = "taskmgr.exe"
CompanyName = "taskmgr-rs contributors"
LegalCopyright = "Copyright (c) 2026 taskmgr-rs contributors"
Comments = "A classic Windows Task Manager built in Rust with native Win32 APIs."
[[bin]]
name = "taskmgr"
path = "src/main.rs"
# 任务管理器的采样、排序和绘图都在长期热路径上,发布构建优先运行效率。
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
panic = "unwind"
strip = true
debug = 0
debug-assertions = false
incremental = false
overflow-checks = false
# 诊断构建沿用发布优化,但保留与发布二进制分离存放的完整符号。
[profile.diagnostics]
inherits = "release"
debug = "full"
strip = false
# 仅启用当前项目实际使用到的 Win32 模块,避免无关绑定进入最终产物。
[dependencies]
crc32fast = "1.5.0"
crossbeam-channel = "0.5.16"
serde = { version = "1.0.228", features = ["derive"] }
serde_json = "1.0.150"
sha2 = "0.11.0"
windows-sys = { version = "0.61.2", features = [
"Wdk_Foundation",
"Wdk_Storage_FileSystem",
"Wdk_Graphics_Direct3D",
"Win32_Devices_DeviceAndDriverInstallation",
"Win32_Devices_Properties",
"Win32_Globalization",
"Win32_Foundation",
"Win32_Graphics_Gdi",
"Win32_NetworkManagement_IpHelper",
"Win32_NetworkManagement_Ndis",
"Win32_Security",
"Win32_Security_Authorization",
"Win32_Security_Cryptography",
"Win32_Storage_FileSystem",
"Win32_System_Diagnostics_Debug",
"Win32_System_Diagnostics_ToolHelp",
"Win32_System_Environment",
"Win32_System_IO",
"Win32_System_Kernel",
"Win32_System_LibraryLoader",
"Win32_System_Memory",
"Win32_System_ProcessStatus",
"Win32_System_Performance",
"Win32_System_Registry",
"Win32_System_RemoteDesktop",
"Win32_System_Shutdown",
"Win32_System_StationsAndDesktops",
"Win32_System_SystemInformation",
"Win32_System_SystemServices",
"Win32_System_Time",
"Win32_System_Threading",
"Win32_System_VirtualDosMachines",
"Win32_UI_Controls",
"Win32_UI_Controls_Dialogs",
"Win32_UI_Input_KeyboardAndMouse",
"Win32_UI_Shell",
"Win32_UI_WindowsAndMessaging",
] }
windows = { version = "0.62.2", features = [
"Win32_Foundation",
"Win32_Graphics_Direct3D",
"Win32_Graphics_Direct3D12",
"Win32_Graphics_Direct2D",
"Win32_Graphics_Direct2D_Common",
"Win32_Graphics_Gdi",
"Win32_Graphics_Dxgi",
"Win32_Graphics_Dxgi_Common",
"Win32_System_Com",
"Win32_System_Ole",
"Win32_System_Rpc",
"Win32_System_Variant",
"Win32_System_Wmi",
"Win32_Security",
"Win32_UI_Shell",
] }
windows-numerics = "0.3.1"
[build-dependencies]
ico = "0.5.0"
syn = { version = "2.0.119", features = ["full"] }
toml = "1.1.3"
winresource = "0.1.31"
[dev-dependencies]
ico = "0.5.0"
syn = { version = "2.0.119", features = ["full"] }