Expand description
Proc-macro approach for durable Lambda handlers.
Provides the #[durable_execution] attribute macro (FR32).
§Usage
Annotate an async handler function with #[durable_execution] to generate
all Lambda runtime boilerplate. The macro creates a main() function that
wires up AWS config, Lambda client, RealBackend, and lambda_runtime.
ⓘ
use durable_lambda_macro::durable_execution;
use durable_lambda_core::context::DurableContext;
use durable_lambda_core::error::DurableError;
#[durable_execution]
async fn handler(event: serde_json::Value, mut ctx: DurableContext) -> Result<serde_json::Value, DurableError> {
Ok(event)
}Attribute Macros§
- durable_
execution - Attribute macro that transforms an async handler into a complete durable Lambda binary.