33 lines
1006 B
Rust
33 lines
1006 B
Rust
//! `faunosteo-worker` library: the sandboxed decode child (R0) and the keyed job loop (R1).
|
||
//!
|
||
//! Process model (review Part IV.1): a keyed parent spawns the same binary as `decode`, a
|
||
//! child with an empty environment that confines itself (rlimits + seccomp) before reading
|
||
//! one image on stdin and writing one 512 × 512 WebP on stdout. The parent never decodes:
|
||
//! it checks the container header of what comes back (`webp_check`).
|
||
//!
|
||
//! V1-2.3 adds the `verify` child on the same model: one framed sheet input on stdin
|
||
//! (`verify_frame`), the core's verdict JSON on stdout; `run --jobs sheet-verify` drives it.
|
||
|
||
pub mod backend;
|
||
pub mod config;
|
||
pub mod decode;
|
||
pub mod decoder;
|
||
pub mod exit_codes;
|
||
#[cfg(feature = "test-hooks")]
|
||
pub mod fixtures;
|
||
pub mod http;
|
||
pub mod job;
|
||
pub mod keys;
|
||
pub mod limits;
|
||
pub mod log;
|
||
pub mod run;
|
||
pub mod sandbox;
|
||
pub mod spawn;
|
||
pub mod sweep;
|
||
pub mod verifier;
|
||
pub mod verify;
|
||
pub mod verify_frame;
|
||
pub mod verify_job;
|
||
pub mod watchdog;
|
||
pub mod webp_check;
|