Expand description
§blazingly-macros
Procedural macros for Blazingly operation, model, and error declarations.
This crate provides #[operation] and its method aliases (#[get],
#[head], #[post], #[put], #[patch], #[delete], #[options],
#[trace], #[connect]), #[api_model], #[api_error], #[provider],
#[security], and the MCP #[tool] attribute.
It is internal plumbing, not a standalone library. The generated code names
paths under ::blazingly, so it only compiles inside a crate that depends on
the blazingly facade. Do not depend on blazingly-macros directly: depend
on blazingly, which re-exports every macro (blazingly::get,
blazingly::api_model, blazingly::mcp::tool, and so on) alongside the
runtime types the expansions refer to. For that reason this page carries no
usage example; see the getting-started guide for the macros in context.
§Links
Attribute Macros§
- api_
error - Declares a stable domain error as an enum.
- api_
model - Declares an API model.
- connect
- Declares a
CONNECToperation. Seegetfor the argument form. - delete
- Declares a
DELETEoperation. Seegetfor the argument form. - get
- Declares a
GEToperation. - head
- Declares a
HEADoperation. Seegetfor the argument form. - operation
- Defines an operation using an explicit HTTP method.
- options
- Declares an
OPTIONSoperation. Seegetfor the argument form. - patch
- Declares a
PATCHoperation. Seegetfor the argument form. - post
- Declares a
POSToperation. Seegetfor the argument form. - provider
- Turns a typed factory function into a compiled DI provider declaration.
- put
- Declares a
PUToperation. Seegetfor the argument form. - security
- Requires a registered security scheme, and optionally scopes, for an operation.
- tool
- Exposes an operation as a native MCP tool.
- trace
- Declares a
TRACEoperation. Seegetfor the argument form.