isothrum_machine/lib.rs
1//! The machine-setup domain: this computer ([`Host`]: its OS, CPU, package manager and the files
2//! detection reads), which Vagrant providers (hypervisors) it can drive, and the machine check
3//! ([`check::check`]): its tools, Docker-compatible engines, package manager, cloud CLIs and, on
4//! Windows, WSL 2; a guided setup's options and plan from that check ([`setup`]); installing and
5//! removing the tools it runs projects with ([`install`]); the self-tests that prove it runs
6//! deployments ([`selftest`]); what a run needs here and what of it is missing, with the plan that
7//! brings it ([`requirements`]); and the cloud accounts its cloud CLIs
8//! are signed in to ([`cloud`]): whether a sign-in holds, and what an account offers; the boxes
9//! Vagrant holds here and adds ([`boxes`]); and this computer's public address, as independent
10//! services agree on it ([`net`]).
11//!
12//! Every tool runs through the Isothrum runner's no-unsafe [`isothrum_runner::ProcessRunner`], so
13//! nothing here forks a shell or touches raw process APIs. A caller hands it a [`Context`]: the runner (the
14//! real [`isothrum_runner::SystemProcesses`], or a strict fake in tests), the [`Host`] and a probe
15//! time limit. The crate keeps no statics and holds no UI types: a reason is a code
16//! ([`providers::Unavailable`]) a UI translates, with an English `message()`.
17
18pub mod boxes;
19pub mod check;
20pub mod cloud;
21mod context;
22pub mod docker;
23mod exec;
24pub mod failure;
25pub mod host;
26pub mod install;
27pub mod net;
28pub mod place;
29pub mod providers;
30pub mod requirements;
31pub mod selftest;
32pub mod setup;
33pub mod terminal;
34#[cfg(test)]
35mod testing;
36pub mod tools;
37pub mod wsl;
38
39pub use context::{Context, PROBE_TIMEOUT};
40pub use failure::{Failure, Refusal};
41pub use host::{Arch, Devices, Host, HostOs, LinuxPackages, Packages};