#static #brotli #extension #version

bin+lib precompress_static

Brotli pre-compression for http static content

1 unstable release

0.1.1 Jul 27, 2024

#569 in Compression

MIT license

20KB
469 lines

precompress_static  LICENSE crates.io Version Documentation Rust 1.80

Precompress all static web content from a directory with brotli at max compression (original files are kept).

sync and async (tokio) versions, both as a lib and as executables.

See ext.rs for the list of file extensions that are compressed.

Dependencies

~8–14MB
~329K SLoC