server-less-macros 0.5.0

Proc macros for server-less
Documentation

server-less-macros

crates.io docs.rs License

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-less facade. Depend on server-less instead — it re-exports every macro here alongside the runtime support they generate against, gated behind the matching feature flags. Using server-less-macros on 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.