Proc-macro crate for the Lucy documentation framework.
Provides three attribute macros to annotate Axum handlers:
- [
lucy_http] — HTTP REST endpoints - [
lucy_ws] — WebSocket endpoints - [
lucy_mqtt] — MQTT topics
Example
async
Proc-macro crate for the Lucy documentation framework.
Provides three attribute macros to annotate Axum handlers:
lucy_http] — HTTP REST endpointslucy_ws] — WebSocket endpointslucy_mqtt] — MQTT topics#[lucy_macro::lucy_http(method = "GET", path = "/health", description = "Health check")]
async fn health_handler() -> &'static str { "ok" }