common: Only depend on konst when needed

This commit is contained in:
Jonas Platte 2023-07-14 09:38:03 +02:00
parent 6fdaff6aa5
commit f9ef276d41
No known key found for this signature in database
GPG Key ID: AAA7A61F696C3E0C

View File

@ -21,7 +21,7 @@ default = ["client", "server"]
client = []
server = []
api = ["dep:http"]
api = ["dep:http", "dep:konst"]
canonical-json = []
events = []
js = ["dep:js-sys", "getrandom?/js", "uuid?/js"]
@ -82,7 +82,7 @@ http = { workspace = true, optional = true }
indexmap = { version = "2.0.0", features = ["serde"] }
js_int = { workspace = true, features = ["serde"] }
js_option = "0.1.0"
konst = { version = "0.3.5", features = ["alloc"] }
konst = { version = "0.3.5", features = ["alloc"], optional = true }
percent-encoding = "2.1.0"
phf = { version = "0.11.1", features = ["macros"], optional = true }
pulldown-cmark = { version = "0.9.1", default-features = false, optional = true }