-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathCargo.toml
More file actions
63 lines (52 loc) · 1.07 KB
/
Cargo.toml
File metadata and controls
63 lines (52 loc) · 1.07 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
[package]
name = "dnf_helper_rust"
version = "1.0.0"
edition = "2021"
authors = ["DNF Helper Team"]
description = "DNF 游戏辅助工具 - Rust 重构版本"
[dependencies]
# Windows API 调用
windows = { version = "0.52", features = [
"Win32_Foundation",
"Win32_System_Threading",
"Win32_System_Memory",
"Win32_System_Diagnostics_Debug",
"Win32_System_IO",
"Win32_System_Console",
"Win32_UI_Input_KeyboardAndMouse",
"Win32_Security",
]}
# 日志
log = "0.4"
env_logger = "0.10"
# 配置解析
ini = "0.9"
# 错误处理
anyhow = "1.0"
thiserror = "1.0"
# 时间处理
chrono = "0.4"
# 序列化
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
# 线程同步
parking_lot = "0.12"
# 懒加载
once_cell = "1.19"
[target.'cfg(windows)'.dependencies]
# Windows 特定依赖
winapi = { version = "0.3", features = [
"processthreadsapi",
"memoryapi",
"winuser",
"winioctl",
"handleapi",
"errhandlingapi",
]}
[[bin]]
name = "dnf_helper"
path = "src/main.rs"
[profile.release]
opt-level = 3
lto = true
strip = true