make serde optional

This commit is contained in:
Evan Almloff committed 2023-06-01 11:03:44 -05:00
1 parent fe601e2a48
commit 2f473f7c97
7 files changed
+289 -89

No files matched your search

+5 -3
View File
@@ -16,17 +16,19 @@ dioxus = { path="../dioxus" }
dioxus-router-macro = { path="../router-macro" }
gloo = { version = "0.8.0", optional = true }
log = "0.4.17"
serde = { version = "1.0.163", features = ["derive"] }
serde = { version = "1.0.163", features = ["derive"], optional = true }
thiserror = "1.0.37"
url = "2.3.1"
wasm-bindgen = { version = "0.2.86", optional = true }
web-sys = { version = "0.3.60", optional = true, features = ["ScrollRestoration"] }
gloo-utils = { version = "0.1.6", optional = true, features = ["serde"] }
js-sys = { version = "0.3.63", optional = true }
gloo-utils = { version = "0.1.6", optional = true }
[features]
default = ["web"]
wasm_test = []
web = ["gloo", "web-sys", "wasm-bindgen", "gloo-utils"]
serde = ["dep:serde", "gloo-utils/serde"]
web = ["gloo", "web-sys", "wasm-bindgen", "gloo-utils", "js-sys"]
[dev-dependencies]
dioxus = { path = "../dioxus" }