Cargo Features

[dependencies]
leptos = { version = "0.7.0-preview2", default-features = false, features = ["hydration", "csr", "hydrate", "default-tls", "rustls", "ssr", "nightly", "serde", "serde-lite", "miniserde", "rkyv", "tracing", "nonce", "spin", "experimental-islands", "trace-component-props", "delegation"] }
default = serde

The serde feature is set by default whenever leptos is added without default-features = false somewhere in the dependency tree.

hydration hydrate? ssr?

Enables browser of hydration_context, hydration of leptos_server

csr

Enables csr of leptos_macro and leptos_reactive

hydrate = hydration

Enables hydrate of leptos_macro, leptos_reactive, and tachys

Affects mount::hydrate_body, mount::hydrate_from

default-tls

Enables default-tls of leptos_server and server_fn

rustls

Enables rustls of leptos_server and server_fn

ssr = hydration

Enables ssr of leptos_macro, leptos_reactive, leptos_server, server_fn, and tachys

nightly

Enables nightly of leptos_dom, leptos_macro, leptos_reactive, and tachys

serde default

Enables serde of leptos_reactive

serde-lite

Enables serde-lite of leptos_reactive

miniserde

Enables miniserde of leptos_reactive

rkyv

Enables rkyv of leptos_reactive

tracing

Enables tracing of reactive_graph

nonce = base64, rand

Enables nonce of leptos_dom

leptos_dom:

TODO implement nonces

Affects leptos::nonce

spin = leptos-spin-macro

Enables spin of leptos_reactive

experimental-islands

Enables serde_json, experimental-islands of leptos_dom, leptos_macro, and leptos_reactive

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?
rand nonce?