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
//! User-facing re-exports for the closure-native approach.
//!
//! Single import for everything needed to write a durable Lambda handler:
//!
//! ```no_run
//! use durable_lambda_closure::prelude::*;
//! ```
//!
//! # Complete Minimal Handler
//!
//! ```no_run
//! use durable_lambda_closure::prelude::*;
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
//! run(|event: serde_json::Value, mut ctx: ClosureContext| 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() }))
//! }).await
//! }
//! ```
//!
//! This re-exports:
//! - [`ClosureContext`] — the context wrapper for durable operations
//! - [`run`](crate::run) — the entry point for closure-native handlers
//! - Core types: [`DurableError`], [`StepOptions`], [`CallbackOptions`], [`CallbackHandle`],
//! [`ExecutionMode`], [`CheckpointResult`]
pub use crateClosureContext;
pub use craterun;
pub use DurableError;
pub use DurableContextOps;
pub use ;