#static #brotli #content

bin+lib precompress_static

Brotli pre-compression for http static content

3 releases

new 0.1.3 Apr 23, 2025
0.1.2 Jan 4, 2025
0.1.1 Jul 27, 2024

#379 in Compression

Download history 136/week @ 2025-01-04 4/week @ 2025-01-11 2/week @ 2025-02-15 1/week @ 2025-02-22 6/week @ 2025-04-12 104/week @ 2025-04-19

110 downloads per month

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