📂 trillium-static — static file serving from the filesystem
Serves static files directly from the filesystem. Supports index files, MIME type detection, and
ETag-based caching. For embedding files into the binary at compile time, see
trillium-static-compiled.
Note: This crate requires enabling a runtime feature:
smol,tokio, orasync-std.
Example
use ;
let handler = new
.with_index_file;
// run with your chosen runtime adapter, e.g.:
// trillium_tokio::run(handler);
Safety
This crate uses #![forbid(unsafe_code)].