build: make pulldown-cmark optional and gated by server feature

This commit is contained in:
xfy 2026-06-16 17:09:39 +08:00
parent 6489ac604e
commit 726c6ec4e5

View File

@ -13,7 +13,7 @@ argon2 = { version = "0.5", optional = true }
uuid = { version = "1", features = ["v4", "js"], optional = true }
chrono = { version = "0.4", features = ["serde"] }
regex = { version = "1.12", optional = true }
pulldown-cmark = "0.13"
pulldown-cmark = { version = "0.13", optional = true }
dotenvy = { version = "0.15", optional = true }
tracing = { version = "0.1", optional = true, features = ["release_max_level_info"] }
tracing-subscriber = { version = "0.3", optional = true }
@ -63,6 +63,7 @@ server = [
"dep:argon2",
"dep:uuid",
"dep:regex",
"dep:pulldown-cmark",
"dep:dotenvy",
"dep:tracing",
"dep:tracing-subscriber",