mesh_worker/lib.rs
1// Copyright (c) Microsoft Corporation.
2// Licensed under the MIT License.
3
4//! Infrastructure for workers, which are agents that mostly communicate via
5//! mesh message passing. These provide a way for splitting up your program into
6//! separable components, each of which can optionally run in a separate
7//! process.
8//!
9//! The primary entry points are the [`worker_host()`] function, used to launch
10//! workers, and the [`Worker`] trait, used to define workers. The
11//! [`register_workers`] macro and the [`RegisteredWorkers`] factory are helpful
12//! for defining the possible workers in a binary.
13
14mod worker;
15
16// TODO: flatten this module.
17pub use worker::*;