isothrum-runner
Runs a Compose project, a Vagrantfile or a Terraform module through its own tool, whoever wrote it: bring an environment up, check it, park, resume, update and tear it down. The runner keeps each run's state and lock under a home folder, delivers params and secrets without ever putting a value on a command line, and reports every operation as a stream of JSON events.
It is the library behind the isothrum command line;
embed it to drive runs from your own program.
Install
The runner is async, on Tokio.
Example
use Path;
use ;
async
Feature flags
| Feature | What it adds |
|---|---|
fake |
Test doubles for embedders' tests: isothrum_runner::fake::{FakeProcesses, Reply, Call} (scripted tools answering at once, every call recorded) and FakePorts (the free host ports a run is handed, in order; none taken, no address answering). Set them on RunnerConfig::processes and RunnerConfig::ports. |
ts-rs |
The TypeScript type of Provider (VagrantProvider, through ts-rs), for an embedder whose UI is TypeScript. |
fuzzing |
Internal: the pure cores the repository's fuzz targets drive. Hidden from the docs and not part of the public API. |
No feature is on by default.
Documentation
- API: https://docs.rs/isothrum-runner
- The event stream's JSON Schema:
schema/events-v1.schema.json - Guides and reference: https://github.com/Isothrum/isothrum/blob/main/docs/README.md
Minimum Rust: 1.90. Licence: Apache-2.0.