-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCargo.toml
More file actions
87 lines (65 loc) · 2.22 KB
/
Cargo.toml
File metadata and controls
87 lines (65 loc) · 2.22 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
[package]
name = "music163bot-rust"
version = "1.1.19"
edition = "2024"
license = "WTFPL"
[dependencies]
# Async runtime
tokio = { version = "1.0", features = ["rt-multi-thread", "macros", "sync", "time", "fs", "io-util"] }
# Telegram bot framework
teloxide = { version = "0.17", default-features = false, features = ["macros", "rustls", "ctrlc_handler"] }
# HTTP client
reqwest = { version = "0.12", default-features = false, features = ["json", "cookies", "stream", "multipart", "rustls-tls"] }
# URL parsing
url = "2.4"
# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
# Database
sqlx = { version = "0.8", default-features = false, features = ["runtime-tokio-rustls", "sqlite", "chrono"] }
# Utilities
anyhow = "1.0"
thiserror = "2.0"
tracing = "0.1"
tracing-subscriber = { version = "0.3", default-features = false, features = ["env-filter", "fmt", "std"] }
chrono = { version = "0.4", default-features = false, features = ["clock", "std", "serde"] }
dashmap = "6.1.0"
regex = "1.0"
md5 = "0.8"
uuid = { version = "1.0", features = ["v4"] }
# Crypto for eapi search
cipher = "0.4"
aes = "0.8"
ecb = "0.1"
hex = "0.4"
# Config
clap = { version = "4.0", default-features = false, features = ["derive", "std"] }
# File operations
tokio-util = { version = "0.7", features = ["io"] }
futures-util = "0.3"
bytes = "1"
# Audio metadata
id3 = "1.0"
# Image processing
image = { version = "0.25", default-features = false, features = ["jpeg", "png", "gif", "webp"] }
# FLAC 元数据(写入封面)
metaflac = "0.2"
# System info (for memory detection in smart storage)
sysinfo = { version = "0.38", default-features = false, features = ["system"] }
# Memory allocator with better memory return behavior
[target.'cfg(not(target_env = "msvc"))'.dependencies]
tikv-jemallocator = { version = "0.6" }
tikv-jemalloc-sys = { version = "0.6" }
[profile.release]
# 优化级别: 3=最大速度 (TLS/memcpy/序列化等热路径均受益)
opt-level = 3
# 链接时优化
lto = true
# 单一代码生成单元(更好优化但编译更慢)
codegen-units = 1
# 移除 panic 展开代码
panic = "abort"
# 启用 strip 移除符号表
strip = true
# 禁用增量编译(对于 release 构建更好优化)
incremental = false