build: make uuid optional and gated by server feature

This commit is contained in:
xfy 2026-06-16 17:08:48 +08:00
parent 6a98e8767d
commit 837f120621

View File

@ -10,7 +10,7 @@ tokio = { version = "1.52", features = ["rt-multi-thread", "macros", "fs", "time
tokio-postgres = { version = "0.7", features = ["with-chrono-0_4"], optional = true }
deadpool-postgres = { version = "0.14", optional = true }
argon2 = { version = "0.5", optional = true }
uuid = { version = "1", features = ["v4", "js"] }
uuid = { version = "1", features = ["v4", "js"], optional = true }
chrono = { version = "0.4", features = ["serde"] }
regex = "1.12"
pulldown-cmark = "0.13"
@ -61,6 +61,7 @@ server = [
"dep:tokio-postgres",
"dep:deadpool-postgres",
"dep:argon2",
"dep:uuid",
"dep:dotenvy",
"dep:tracing",
"dep:tracing-subscriber",