Cargo Features

picoserve has no features set by default.

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

Use the standard library. Used by examples.

alloc std?

Enable FromRequest and Content for some alloc types.

tokio = std

Use the tokio runtime. Used by examples.

Enables tokio, std of serde

embassy

Use the embassy runtime and embassy-net sockets.

Enables embassy-net and embassy-time

Affects picoserve::EmbassyRuntime, time::EmbassyTimer

defmt

Emit log messages using the defmt crate.

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

Affects logging::LogDisplay

log

Emit log messages using the log crate.

Enables log

json

Enable JSON support

Enables ryu and serde-json-core

Affects extract::json, response::json

ws

Enable WebSocket support

Enables data-encoding and lhash

Affects response::ws