43 lines
1.2 KiB
TOML
43 lines
1.2 KiB
TOML
[package]
|
|
name = "stash"
|
|
version = "0.1.0"
|
|
description = ""
|
|
authors = [""]
|
|
edition = "2024"
|
|
|
|
[dependencies]
|
|
tokio = { version = "1.38", features = ["full"] }
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
thiserror = "2.0.21"
|
|
anyhow = "1.0"
|
|
clap = { version = "4.6.7", features = ["derive"] }
|
|
colored = "3.1.1"
|
|
|
|
# Web 核心与静态托管
|
|
axum = "0.8.9"
|
|
tower-http = { version = "0.7.1", features = ["fs", "cors", "trace"] }
|
|
tower = { version = "0.4", features = ["util"] }
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
mime_guess = "2.0"
|
|
include_dir = "0.7"
|
|
async-stream = "0.3"
|
|
notify = "8"
|
|
|
|
# 内容库:SQLite 随二进制静态编译,运行时不需要任何外部 DLL
|
|
rusqlite = { version = "0.32", features = ["bundled"] }
|
|
|
|
[build-dependencies]
|
|
# build.rs 用它递归复制前端产物到 $OUT_DIR/web
|
|
walkdir = "2.4"
|
|
|
|
# MSVC 的 /Z7(旧式调试信息)在 cc-rs 生成的命令行下会触发
|
|
# "D8050: 无法执行 c1.dll" —— SQLite 是纯 C 依赖,调试它没有意义,
|
|
# 这里关掉该 crate 的调试信息,cc-rs 就不会再加 -Z7。
|
|
[profile.dev.package.libsqlite3-sys]
|
|
debug = false
|
|
|
|
[profile.test.package.libsqlite3-sys]
|
|
debug = false
|