-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathCargo.toml
More file actions
92 lines (74 loc) · 1.95 KB
/
Cargo.toml
File metadata and controls
92 lines (74 loc) · 1.95 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
[package]
name = "voice2type"
version = "0.0.38"
edition = "2021"
authors = ["guchang233"]
[features]
admin = []
api_server = []
[dependencies]
# 异步运行时
tokio = { version = "1.36", features = ["rt-multi-thread", "sync", "time", "macros"] }
# 错误处理
anyhow = "1.0"
# 序列化
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
# HTTP 客户端
reqwest = { version = "0.12", default-features = false, features = ["json", "multipart", "rustls-tls-native-roots", "blocking"] }
# 环境变量管理
dotenv = "0.15"
# 音频采集 (底层库)
cpal = "0.15"
# 音频编码 (WAV 格式,用于内存中封装音频流)
hound = "3.5"
# 全局热键监听
rdev = "0.5"
# 模拟键盘输入
enigo = "0.3"
# Windows GUI
native-windows-gui = "1.0.13"
native-windows-derive = "1.0.5"
libc = "0.2.180"
self_update = { version = "0.42.0", features = ["archive-zip", "compression-zip-deflate"] }
# Windows API
[target.'cfg(windows)'.dependencies]
windows = { version = "0.54", features = [
"Win32_Foundation",
"Win32_System_Console",
"Win32_System_Pipes",
"Win32_Storage_FileSystem",
"Win32_System_IO",
"Win32_System_DataExchange",
"Win32_System_Memory",
"Win32_UI_WindowsAndMessaging",
"Win32_System_Threading",
"Win32_UI_Input_KeyboardAndMouse",
"Win32_System_Registry",
"Win32_Security",
"Win32_Graphics_Gdi",
"Win32_System_LibraryLoader",
] }
# 路径管理
directories = "5.0"
# 正则表达式
regex = "1.10"
# 打开网页
open = "5.0"
# 线程间通信与并发辅助
crossbeam = "0.8"
once_cell = "1.19"
log = "0.4"
env_logger = "0.11"
semver = "1.0"
chrono = "0.4"
base64 = "0.22"
[build-dependencies]
winres = "0.1"
# 优化发布体积
[profile.release]
opt-level = "z" # 优化代码尺寸
lto = true # 启用链接时优化
codegen-units = 1 # 降低并行度以提高优化质量
panic = "abort" # 移除堆栈展开信息
strip = true # 自动剥离符号表