From 6a98e8767d01f8b1e8c90c9f6a438f2054287344 Mon Sep 17 00:00:00 2001 From: xfy Date: Tue, 16 Jun 2026 17:08:19 +0800 Subject: [PATCH] build: make argon2 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 165d9cd..62d933e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ serde = { version = "1.0", features = ["derive"] } tokio = { version = "1.52", features = ["rt-multi-thread", "macros", "fs", "time", "sync"], optional = true } tokio-postgres = { version = "0.7", features = ["with-chrono-0_4"], optional = true } deadpool-postgres = { version = "0.14", optional = true } -argon2 = "0.5" +argon2 = { version = "0.5", optional = true } uuid = { version = "1", features = ["v4", "js"] } chrono = { version = "0.4", features = ["serde"] } regex = "1.12" @@ -60,6 +60,7 @@ server = [ "dep:tokio", "dep:tokio-postgres", "dep:deadpool-postgres", + "dep:argon2", "dep:dotenvy", "dep:tracing", "dep:tracing-subscriber",