Cargo Features

Leptos has no features set by default.

[dependencies]
leptos = { version = "0.7.0-beta", 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_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

Enables rustls of server_fn

ssr = hydration

Enables ssr of leptos_macro, leptos_server, server_fn, and tachys

nightly

Enables nightly of leptos_dom, leptos_macro, and tachys

rkyv

Enables rkyv of server_fn

tracing

Enables tracing of reactive_graph and tachys

nonce = base64, rand

Enables nonce of leptos_dom

leptos_dom:

TODO implement nonces

Affects leptos::nonce

spin = leptos-spin-macro
experimental-islands

Enables serde_json, experimental-islands of leptos_dom and 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.

base64 nonce?
leptos-spin-macro spin?

Enables leptos-spin-macro ^0.1

rand nonce?