rightsize_docker/lib.rs
1#![warn(missing_docs)]
2#![forbid(unsafe_code)]
3
4//! `rightsize-docker` is a from-scratch Docker daemon client over
5//! `tokio::net::UnixStream` — no `bollard`, no `hyper`, no shared HTTP stack the
6//! consumer's dependency tree can accidentally reroute onto TCP. It speaks exactly
7//! the daemon endpoints `rightsize` needs (containers, exec, logs, networks) and
8//! decodes the daemon's chunked transfer encoding and 8-byte log-frame multiplexing
9//! format by hand.
10//!
11//! This backend also doubles as the correctness oracle other backends are checked
12//! against, since Docker enforces the semantics (read-only mounts, native networks)
13//! that microsandbox only emulates.
14
15mod backend;
16mod client;
17mod frames;
18mod json;
19mod provider;
20
21pub use backend::DockerBackend;
22pub use provider::DockerBackendProvider;