1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//! User-facing re-exports for the builder-pattern approach.
//!
//! Single import for everything needed to write a durable Lambda handler:
//!
//! ```no_run
//! use durable_lambda_builder::prelude::*;
//! ```
//!
//! # Complete Minimal Handler
//!
//! ```no_run
//! use durable_lambda_builder::prelude::*;
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
//! handler(|event: serde_json::Value, mut ctx: BuilderContext| async move {
//! let result: Result<String, String> = ctx.step("greet", || async {
//! Ok("Hello from durable Lambda!".to_string())
//! }).await?;
//! Ok(serde_json::json!({ "greeting": result.unwrap() }))
//! })
//! .run()
//! .await
//! }
//! ```
//!
//! This re-exports:
//! - [`BuilderContext`] — the context wrapper for durable operations
//! - [`DurableHandlerBuilder`] — the builder type
//! - [`handler`](crate::handler) — the constructor function
//! - Core types: [`DurableError`], [`StepOptions`], [`CallbackOptions`], [`CallbackHandle`],
//! [`ExecutionMode`], [`CheckpointResult`]
pub use crateBuilderContext;
pub use crate;
pub use DurableError;
pub use DurableContextOps;
pub use ;