awa/lib.rs
1//! Awa — Postgres-native background job queue for Rust and Python.
2//!
3//! This is the facade crate that re-exports the main types from awa-model,
4//! awa-macros, and awa-worker for ergonomic usage.
5
6// Re-export core model types (includes JobArgs derive macro via awa-model)
7pub use awa_model::{
8 self as model, admin, insert, insert_many, insert_many_copy, insert_many_copy_from_pool,
9 insert_with, migrations, AwaError, InsertOpts, InsertParams, JobArgs, JobRow, JobState,
10 UniqueOpts,
11};
12
13// Re-export worker runtime
14pub use awa_worker::{
15 self as worker, BuildError, Client, ClientBuilder, HealthCheck, JobContext, JobError,
16 JobResult, PeriodicJob, PeriodicJobBuilder, QueueCapacity, QueueConfig, QueueHealth, RateLimit,
17 Worker,
18};