Files
faunosteo/crates/worker/src/lib.rs
T

16 lines
595 B
Rust
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//! `faunosteo-worker` library: the pieces the binary, the tests and the R1 job loop share.
//!
//! 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`).
pub mod decode;
pub mod exit_codes;
#[cfg(feature = "test-hooks")]
pub mod fixtures;
pub mod limits;
pub mod sandbox;
pub mod spawn;
pub mod webp_check;