- opt-level = "z": 优化二进制体积 - lto = true: 启用链接时优化 - codegen-units = 1: 单代码生成单元以换取更优优化 - panic = "abort": 移除 panic 展开开销 - strip = true: 去除调试符号 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
42 lines
1.1 KiB
TOML
42 lines
1.1 KiB
TOML
[package]
|
|
name = "yggdrasil"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[dependencies]
|
|
dioxus = { version = "0.7.9", features = ["fullstack", "router"] }
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
tokio = { version = "1.52", features = ["full"], optional = true }
|
|
tokio-postgres = { version = "0.7", features = ["with-chrono-0_4"], optional = true }
|
|
deadpool-postgres = { version = "0.14", optional = true }
|
|
argon2 = "0.5"
|
|
uuid = { version = "1", features = ["v4", "js"] }
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
regex = "1.10"
|
|
dotenvy = { version = "0.15", optional = true }
|
|
rand = { version = "0.8", features = ["getrandom"] }
|
|
getrandom = { version = "0.2", features = ["js"] }
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
web-sys = { version = "0.3", features = ["Document", "Window", "HtmlDocument", "Storage", "Element"] }
|
|
wasm-bindgen = "0.2"
|
|
|
|
[profile.release]
|
|
debug = false
|
|
opt-level = "z"
|
|
lto = true
|
|
codegen-units = 1
|
|
panic = "abort"
|
|
strip = true
|
|
|
|
[features]
|
|
default = ["web", "server"]
|
|
web = ["dioxus/web"]
|
|
server = [
|
|
"dioxus/server",
|
|
"dep:tokio",
|
|
"dep:tokio-postgres",
|
|
"dep:deadpool-postgres",
|
|
"dep:dotenvy",
|
|
]
|