Cargo Features
Leptos has no features set by default.
[dependencies]
leptos = { version = "0.7.0-rc1", features = ["hydration", "csr", "hydrate", "default-tls", "rustls", "ssr", "nightly", "rkyv", "tracing", "nonce", "spin", "experimental-islands", "trace-component-props", "delegation"] }
- hydration hydrate? ssr?
-
Enables browser of hydration_context, hydration of leptos_dom, leptos_server, and reactive_graph
- csr
-
Enables csr of leptos_macro and effects of reactive_graph
reactive_graph:
whether to run effects: should be disabled for something like server rendering
- hydrate = hydration
-
Enables hydrate of leptos_macro, effects of reactive_graph, hydrate of tachys
Affects
mount::hydrate_body
,mount::hydrate_from
,mount::hydrate_islands
… - default-tls
-
Enables default-tls of server_fn
- rustls
- ssr = hydration
-
Enables ssr of leptos_macro, leptos_server, server_fn, and tachys
- nightly
-
Enables nightly of leptos_macro, reactive_graph, and tachys
- rkyv
- tracing
-
Enables tracing, tracing of leptos_dom, leptos_macro, leptos_server, reactive_graph, and tachys
- nonce = base64, rand
- spin = leptos-spin-macro
- experimental-islands
-
Enables serde_json, experimental-islands of leptos_macro
- trace-component-props
-
Enables trace-component-props of leptos_dom and leptos_macro
- delegation
-
Enables delegation of tachys
tachys:
enables event delegation
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.