Fix default feature

This commit is contained in:
Greg Johnston 2022-10-08 07:54:49 -04:00
parent ecd584bc57
commit 8936e06783
2 changed files with 1 additions and 2 deletions

View file

@ -28,7 +28,6 @@ web-sys = { version = "0.3", optional = true, features = ["Element"] }
sycamore = "0.8.0-beta.7"
[features]
default = ["csr"]
csr = ["dep:wasm-bindgen", "dep:wasm-bindgen-futures", "dep:web-sys"]
hydrate = ["dep:base64", "dep:js-sys", "dep:serde-wasm-bindgen", "dep:serde_json", "dep:wasm-bindgen", "dep:wasm-bindgen-futures", "dep:web-sys"]
ssr = ["dep:base64", "dep:futures", "dep:serde_json", "dep:tokio"]

View file

@ -28,7 +28,7 @@ where
wasm_bindgen_futures::spawn_local(fut)
}
#[cfg(not(any(feature = "csr", feature = "hydrate")))]
#[cfg(feature = "ssr")]
pub fn spawn_local<F>(fut: F)
where
F: Future<Output = ()> + 'static,