#static #brotli #extension #version

bin+lib precompress_static

Brotli pre-compression for http static content

2 releases

0.1.2 Jan 4, 2025
0.1.1 Jul 27, 2024

#519 in Compression

Download history 9/week @ 2024-09-18 4/week @ 2024-09-25 2/week @ 2024-10-02 1/week @ 2024-12-04 2/week @ 2024-12-11 129/week @ 2025-01-01

132 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–15MB
~329K SLoC