Skip to main content

swf_runtime/
lib.rs

1#![deny(unsafe_code)]
2#![allow(clippy::result_large_err)]
3#![doc = include_str!("../README.md")]
4
5pub mod context;
6pub mod error;
7pub mod events;
8pub mod handler;
9pub mod listener;
10pub mod runner;
11pub mod secret;
12pub mod status;
13
14pub(crate) mod expression;
15pub(crate) mod json_pointer;
16pub(crate) mod json_schema;
17pub(crate) mod task_runner;
18pub(crate) mod tasks;
19pub(crate) mod utils;
20
21#[cfg(test)]
22pub(crate) mod test_utils;
23
24pub use context::WorkflowContext;
25pub use error::{ErrorFields, WorkflowError, WorkflowResult};
26pub use events::{CloudEvent, EventBus, EventSubscription, InMemoryEventBus, SharedEventBus};
27pub use expression::{ExpressionEngine, ExpressionEngineRegistry};
28pub use handler::{CallHandler, CustomTaskHandler, HandlerContext, HandlerRegistry, RunHandler};
29pub use listener::{
30    CollectingListener, MultiListener, NoOpListener, WorkflowEvent, WorkflowExecutionListener,
31};
32pub use runner::{ScheduledWorkflow, WorkflowHandle, WorkflowRunner};
33pub use secret::{EnvSecretManager, MapSecretManager, SecretManager};
34pub use status::{StatusPhase, StatusPhaseLog};