Skip to main content

Crate lucy_macro

Crate lucy_macro 

Source
Expand description

Proc-macro crate for the Lucy documentation framework.

Provides three attribute macros to annotate Axum handlers:

§Example

#[lucy_macro::lucy_http(method = "GET", path = "/health", description = "Health check")]
async fn health_handler() -> &'static str { "ok" }

Attribute Macros§

lucy_http
Annotates an Axum HTTP handler for Lucy documentation generation.
lucy_mqtt
Annotates an MQTT topic handler for Lucy documentation generation.
lucy_ws
Annotates an Axum WebSocket handler for Lucy documentation generation.