Skip to main content

runledger_core/
lib.rs

1//! Core durable-execution contracts shared by Runledger storage, runtime, and
2//! application crates.
3//!
4//! Use this crate for the storage-agnostic pieces of the job system:
5//! - [`jobs::JobHandler`] and [`jobs::JobHandlerRegistry`] for handler contracts
6//! - [`jobs::JobContext`], [`jobs::JobProgress`], and [`jobs::JobFailure`] for
7//!   execution-time state
8//! - workflow enqueue builders and validation helpers such as
9//!   [`jobs::WorkflowRunEnqueueBuilder`] and [`jobs::validate_workflow_run_enqueue`]
10//!
11//! This crate does not provide persistence or worker loops. Pair it with
12//! `runledger-postgres` for PostgreSQL-backed storage and `runledger-runtime`
13//! for worker, scheduler, and reaper execution.
14
15pub mod jobs;