1pub mod api;
2pub mod core;
7pub mod db;
8
9pub use api::{
10 ApiResponse, CompleteTaskRequest, CreateWorkflowRequest, DefaultWorkflowApi, WorkflowApi,
11};
12pub use core::engine::DefaultWorkflowEngine;
13pub use core::workflows::leave_request::LeaveRequestWorkflow;
14pub use core::{
16 TaskState, TaskStatus, WorkflowDefinition, WorkflowEngine, WorkflowResult, WorkflowState,
17 WorkflowStatus,
18};
19pub use db::{migrate_mysql, migrate_postgres, migrate_sqlite};
20pub use db::{MemoryDatabase, MySqlDatabase, PostgresDatabase, SqliteDatabase, WorkflowDatabase};
21
22#[cfg(feature = "axum")]
23pub use api::axum::create_router as create_axum_router;
24
25#[cfg(feature = "actix")]
26pub use api::actix::workflow_scope as create_actix_scope;
27
28pub const VERSION: &str = env!("CARGO_PKG_VERSION");