server-less-macros
Proc-macro implementation crate for server-less.
Don't depend on this crate directly. It's the procedural-macro backend, pulled in automatically by the
server-lessfacade. Depend onserver-lessinstead — it re-exports every macro here alongside the runtime support they generate against, gated behind the matching feature flags. Usingserver-less-macroson its own gives you the macros without the traits and types their output requires.
What it provides
The attribute and derive macros that turn an impl block into protocol projections:
- Runtime protocols —
#[http],#[cli],#[mcp],#[ws],#[jsonrpc],#[graphql]. - Schema generators —
#[grpc],#[capnp],#[thrift],#[smithy],#[connect]. - Spec & doc generators —
#[openapi],#[openrpc],#[asyncapi],#[jsonschema],#[markdown]. - Blessed presets —
#[server],#[rpc],#[tool],#[program]. - Coordination & metadata —
#[serve],#[route],#[response],#[param],#[app]. - Derives —
#[derive(ServerlessError)],#[derive(HealthCheck)], and config support for#[derive(Config)].
Each macro lives behind a feature flag mirroring the server-less facade, so you only compile the projections you use.
Documentation
See the CHANGELOG.
License
MIT — see LICENSE.
Part of RHI.