Cargo Features

picoserve has no features set by default.

[dependencies]
picoserve = { version = "0.13.2", features = ["std", "alloc", "tokio", "embassy", "defmt", "log"] }
std tokio? = alloc
alloc std?
tokio = std

Enables tokio and std of serde

serde:

Provide impls for common standard library types like Vec<T> and HashMap<K, V>.
Requires a dependency on the Rust standard library.

embassy

Enables embassy-net and embassy-time

Affects picoserve::serve, picoserve::serve_with_state, picoserve::listen_and_serve, picoserve::listen_and_serve_with_state

defmt

Enables defmt and defmt of serde-json-core and optional embassy-net

embassy-net:

Enable defmt

Affects logging::LogDisplay

log

Enables log