rust-viewflow 0.1.0

Rust workflow library inspired by Viewflow, compatible with Axum and Actix-web
Documentation
pub mod api;
/// Rust Viewflow - A workflow library inspired by Viewflow, compatible with Axum and Actix-web
///
/// This library provides a flexible workflow engine that can be integrated with different web frameworks
/// and database backends. It includes a sample leave request workflow to demonstrate usage.
pub mod core;
pub mod db;

pub use api::{
    ApiResponse, CompleteTaskRequest, CreateWorkflowRequest, DefaultWorkflowApi, WorkflowApi,
};
pub use core::engine::DefaultWorkflowEngine;
pub use core::workflows::leave_request::LeaveRequestWorkflow;
/// Re-export core types for easier access
pub use core::{
    TaskState, TaskStatus, WorkflowDefinition, WorkflowEngine, WorkflowResult, WorkflowState,
    WorkflowStatus,
};
pub use db::{migrate_mysql, migrate_postgres, migrate_sqlite};
pub use db::{MemoryDatabase, MySqlDatabase, PostgresDatabase, SqliteDatabase, WorkflowDatabase};

#[cfg(feature = "axum")]
pub use api::axum::create_router as create_axum_router;

#[cfg(feature = "actix")]
pub use api::actix::workflow_scope as create_actix_scope;

/// Version of the library
pub const VERSION: &str = env!("CARGO_PKG_VERSION");