- Cargo.toml: 默认启用 web 和 server features - login.rs: 修复 cookie 设置中的变量名错误 (token -> _token) - 格式化 login.rs 中的结构体模式匹配 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
34 lines
1.0 KiB
TOML
34 lines
1.0 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"
|
|
|
|
[features]
|
|
default = ["web", "server"]
|
|
web = ["dioxus/web"]
|
|
server = [
|
|
"dioxus/server",
|
|
"dep:tokio",
|
|
"dep:tokio-postgres",
|
|
"dep:deadpool-postgres",
|
|
"dep:dotenvy",
|
|
]
|