devsandbox 0.11.1

Manage devcontainer-style sandboxes on docker, podman, or Apple container — many throwaway instances per repo from one TOML config.
//! `devsandbox serve`: the per-user host daemon
//! (docs/architecture/daemon/role.md). Unix-only for now; `main.rs` gates the
//! whole module.
//!
//! The socket and its permissions, the start lock, lazy start from clients,
//! version handoff and the idle exit; the bridges, with the outbox drain,
//! popups and control ops, and the startup autostart pass. The API
//! (docs/reference/api.md): `api` methods over the same wire,
//! `subscribe` notifications.
//!
//! - `api`: the method table and handlers (thin calls into `inbox::ops`,
//!   `snapshot`), testable without a socket
//! - `endpoint`: the `local_endpoint` abstraction (paths, bind/connect/accept)
//! - `proto`: the JSON-lines wire bits (`hello`, ids, errors)
//! - `idle`: the pure idle countdown over a holder snapshot
//! - `daemon`: the accept loop, lock, handoff and idle exit
//! - `host`: the live host side: the one container poll (bridges, forwards,
//!   watched roots' snapshots), the autostart pass and the updates thread
//! - `updates`: the scheduled feature updates (when one is due, the claim,
//!   the logged `devsandbox update` subprocess, the failure notice)
//! - `events`: the runtime's container event stream (`docker events`) as
//!   wake-ups, on its own thread
//! - `snapshots`: the watched roots' snapshot cache and the poll's cadence
//! - `capacity`: the host's capacity report the snapshots carry
//! - `forwards`: the port forwards (ad-hoc and configured), on their own thread
//! - `forward_store`: `forwards.toml`, the ad-hoc forwards a successor restores
//! - `locked_file`: the locked read-modify-write and atomic rename every
//!   daemon-owned TOML file (`machines.toml`, `forwards.toml`, `member.toml`)
//!   is written with
//! - `client`: connect-or-lazy-start for commands
//! - `machines`: remote hosts over ssh (docs/architecture/daemon/machines.md):
//!   the registry (`machines.toml`), the ssh argv and dial, the link
//!   handshake, the `machines.*` methods
//! - `fleet`: machines as one pool (docs/architecture/daemon/fleet.md): the
//!   peer link between two machines, its channels, the trust table,
//!   `member.toml` and placement
//! - `relay`: `devsandbox api --stdio`, stdin/stdout ↔ the socket
//! - `install`: `serve install|uninstall`, the systemd user unit / LaunchAgent
//! - `verbs`: `run`/`rebuild`/`start`/`stop`/`rm`/`services.rebuild` as
//!   requests, each a `devsandbox --in-process` subprocess streamed back to
//!   its client
//! - `verbs_client`: the CLI's side of those six: prompts, streaming,
//!   Ctrl-C, exit codes, the in-process fallback
//! - `helper`: host → container RPC calls (`HelperClient`) over the
//!   bridges' links, and the internal `helper.call` method
//! - `attaches`: who attached to which instance last (in memory): what
//!   routes an instance's opens, and what a member checks before taking one
//! - `opens`: which host opens a container's URL: the bridges' opener routing
//!   to the last attach, and `open.deliver`'s check on the receiving member

pub mod api;
pub mod attaches;
pub mod capacity;
pub mod client;
pub mod daemon;
pub mod endpoint;
mod events;
pub mod fleet;
pub mod forward_store;
pub mod forwards;
pub mod helper;
mod host;
pub mod idle;
pub mod install;
pub mod locked_file;
pub mod machines;
pub mod opens;
pub mod proto;
pub mod relay;
pub mod snapshots;
mod updates;
pub mod verbs;
pub mod verbs_client;
#[cfg(test)]
pub(crate) mod dts;