remora/crates/remora-worker/src/lib.rs

30 lines
736 B
Rust
Raw Normal View History

mod application;
mod client;
mod descriptor;
mod error;
mod executor;
mod runtime;
pub use application::{WorkerApplication, WorkerApplicationConfig};
pub use client::WorkerApiClient;
pub use descriptor::{DescriptorStore, migrate, migrator};
pub use error::WorkerError;
pub use executor::{AdapterExecutor, ObjectSourceEndpoint};
pub use runtime::{
AttemptContext, AttemptExecution, AttemptExecutor, ExecutionFailure, WorkerConfig,
WorkerRunOutcome, WorkerRuntime,
};
pub const COMPONENT_NAME: &str = "remora-worker";
use client::{incarnation_id, operation_id};
#[cfg(test)]
mod tests {
use super::COMPONENT_NAME;
#[test]
fn exposes_component_name() {
assert_eq!(COMPONENT_NAME, "remora-worker");
}
}