From 837f120621e1c6e73848a68ef496e96f73551c6d Mon Sep 17 00:00:00 2001 From: xfy Date: Tue, 16 Jun 2026 17:08:48 +0800 Subject: [PATCH] build: make uuid optional and gated by server feature --- Cargo.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 62d933e..17e8131 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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",