📦 trillium-static-compiled — embedded static file serving
Serves static files embedded directly into the binary at compile time. No runtime feature flag
required. For serving files from the filesystem at runtime, see
trillium-static.
Example
use static_compiled;
let handler = static_compiled!.with_index_file;
// run with your chosen runtime adapter, e.g.:
// trillium_tokio::run(handler);
The static_compiled! macro embeds the directory contents at compile time, so the binary is
self-contained — no filesystem access at runtime.
Safety
This crate uses #![forbid(unsafe_code)].