lucy-macro 0.1.5

Proc-macros for lucyd: #[lucy_http], #[lucy_ws], #[lucy_mqtt] handler annotations
Documentation

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

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