Cargo Features

[dependencies]
sycamore = { version = "0.9.0-beta.2", default-features = false, features = ["hydrate", "nightly", "ssr", "suspense", "serde", "trace", "wasm-bindgen-interning", "web"] }
default = wasm-bindgen-interning, web

These default features are set whenever sycamore is added without default-features = false somewhere in the dependency tree.

hydrate ssr? = web

Enables hydrate of sycamore-core, sycamore-macro, and sycamore-web

Affects utils::hydrate, web::NoHydrateProps, web::NoHydrate, web::NoSsrProps, web::NoSsr

nightly

Enables nightly of sycamore-reactive

ssr = html-escape, hydrate, once_cell, web

Enables ssr of sycamore-macro and sycamore-web

Affects web::render_to_string_await_suspense

suspense = futures, sycamore-futures, wasm-bindgen-futures

Enables suspense of sycamore-core

Affects sycamore::futures, sycamore::suspense, web::render_to_string_await_suspense

serde

Enables serde of sycamore-reactive

trace

Enables trace of sycamore-reactive

wasm-bindgen-interning default = web

Enables enable-interning of wasm-bindgen

web default hydrate? ssr? wasm-bindgen-interning = js-sys, sycamore-web, wasm-bindgen, web-sys

Affects sycamore::web

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

futures suspense?
html-escape ssr?
js-sys web
once_cell ssr?
sycamore-futures suspense?
sycamore-web hydrate? ssr? web
wasm-bindgen wasm-bindgen-interning web
wasm-bindgen-futures suspense?
web-sys web