Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 11 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@ rmp-serde = "1"
tokio = { version = "1", features = ["rt-multi-thread", "macros", "net", "time", "signal", "sync", "fs"] }
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
# "multipart": 插件上传(R11)接收 multipart/form-data 的 tar.gz。
axum = { version = "0.8", features = ["ws", "macros", "multipart"] }
# "multipart": 插件上传(R11)接收 multipart/form-data 的 tar.gz。`http1`/
# `json`/`query`/`tokio` 是显式列出来的必要项;`tracing`/`tower-log`/`form`/
# `matched-path` 等默认 features 都是我们没在用的(没有 TraceLayer/LogLayer/
# Form extractor/匹配路径展开),default-features=false 砍掉。
axum = { version = "0.8", default-features = false, features = ["ws", "macros", "multipart", "http1", "json", "query", "tokio"] }
rusqlite = { version = "0.37", features = ["bundled", "backup"] }
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls", "stream"] }
argon2 = "0.5"
Expand All @@ -32,7 +35,7 @@ chrono = { version = "0.4", default-features = false, features = ["std", "clock"
rust-embed = { version = "8", features = ["include-exclude"] }
mime_guess = "2"
tokio-util = { version = "0.7", features = ["io"] }
tower-http = { version = "0.6", features = ["limit", "compression-gzip"] }
tower-http = { version = "0.6", default-features = false, features = ["limit", "compression-gzip"] }
# Theme archives. Both are pure Rust: the release binary is built with `cross`
# and the image is FROM scratch, which rules out a C dependency or an external
# tar.
Expand Down Expand Up @@ -74,3 +77,8 @@ lto = true
opt-level = "z"
panic = "abort"
strip = true
# 整数溢出检查在 release 里关掉:`panic = "abort"` 已经把 panic 转成进程退出,
# overflow 也只是这条路径的另一条出口,减一个分支检查能再压一点体积;hub 内部
# 计数(流量字节、月份累加、id 序列)的 `wrapping_*` 调用仍然走显式环绕,
# 不依赖隐式 wrapping。debug profile 保留检查,免得本地复现时被静默溢出误导。
overflow-checks = false
Loading