lambda-appsync-proc 0.10.0

Procedural macros for the lambda-appsync type-safe AWS AppSync resolver framework
Documentation

Procedural macros for the lambda-appsync type-safe AWS AppSync resolver framework.

This crate is not intended for direct use. Depend on lambda-appsync instead — it re-exports all macros from this crate under a stable, unified API.

Provided Macros

Macro Kind Purpose
[make_appsync!] function-like Generate the full AppSync resolver scaffolding from a GraphQL schema
[make_handlers!] function-like Generate handler dispatch glue for a set of operations
[make_operation!] function-like Generate a single typed operation from a GraphQL field definition
[make_types!] function-like Generate Rust types from GraphQL type definitions
[macro@appsync_operation] attribute Annotate an async handler function as an AppSync operation resolver
[appsync_lambda_main!] function-like (feature: compat) Generate a main entry point compatible with the legacy single-resolver pattern

Each macro has detailed documentation on its own page, including syntax, options, and examples.

Feature Flags

  • compat — Enables [appsync_lambda_main!] for backwards-compatible single-resolver Lambda entry points
  • log — Enables log-based logging support in generated code
  • env_logger — Enables env_logger initialisation in generated entry points
  • tracing — Enables tracing-based instrumentation in generated code