Cargo Features

picoserve has no features set by default.

[dependencies]
picoserve = { version = "0.12.3", 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 ^0.4.0 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 ^0.4.0

embassy-net:

Enable defmt

Affects logging::LogDisplay

log

Enables log