Cargo Features
Leptos has no features set by default.
[dependencies]
leptos = { version = "0.8.15", features = ["hydration", "csr", "hydrate", "default-tls", "rustls", "ssr", "nightly", "rkyv", "bitcode", "serde-lite", "cbor", "msgpack", "postcard", "multipart", "tracing", "nonce", "spin", "islands", "trace-component-props", "delegation", "islands-router", "subsecond"] }
- hydration hydrate? ssr?
-
Enables browser of hydration_context, hydration of leptos_dom, leptos_server, and reactive_graph
- csr
-
Enables csr of leptos_macro, effects of reactive_graph and wasm_js of optional getrandom
NOTE: While not used directly,
getrandom'swasm_jsfeature is needed whenrandis used on WASM to avoid a compilation error - hydrate = hydration
-
Enables hydrate of leptos_macro, effects of reactive_graph, hydrate of tachys, wasm_js of optional getrandom
Affects
mount::hydrate_body,mount::hydrate_lazy,mount::hydrate_from,mount::hydrate_from_async,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
-
Enables rkyv of leptos_server and server_fn
- bitcode
- serde-lite
-
Enables serde-lite of leptos_server and server_fn
- cbor
- msgpack
- postcard
- multipart
- tracing
-
Enables tracing, tracing of leptos_dom, leptos_macro, leptos_server, reactive_graph, and tachys
- nonce = base64, rand
-
Enables getrandom
Affects
leptos::nonce… - spin = leptos-spin-macro
- islands
-
Enables 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
- islands-router
-
Enables mark_branches of tachys
- subsecond
-
Enables subsecond, dioxus-cli-config and dioxus-devtools, subsecond of reactive_graph, Location, MessageEvent, WebSocket and Window of web-sys
Affects
leptos::subsecond…
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.