//! Procedural macros for the Rusty Gasket framework.
//!
//! Currently provides `#[derive(ApiError)]` for generating [`ApiError`]
//! trait implementations and `IntoResponse` conversions from annotated
//! enum variants.
use TokenStream;
/// Derive macro for the `ApiError` trait.
///
/// Each enum variant must be annotated with `#[api_error(code = "...", status = ...)]`.
/// An optional `expose = true/false` controls whether the error message is
/// sent to the client (defaults to `true` for 4xx, `false` for 5xx).
///
/// Also generates an `IntoResponse` implementation that produces
/// standardized JSON error bodies via `error_into_response`.