Skip to main content

Crate aster_forge_api_docs_macros

Crate aster_forge_api_docs_macros 

Source
Expand description

OpenAPI attribute macros shared by Aster services.

The crate keeps route annotations lightweight in production builds while preserving utoipa::path metadata when the openapi feature is enabled for debug builds. This lets application code keep a single annotation path without pulling OpenAPI generation into normal release binaries.

Attribute Macrosยง

path
Expands to #[utoipa::path(...)] when OpenAPI generation is enabled for debug builds.