#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

#562 in Compression

Download history 3/week @ 2024-12-06 133/week @ 2025-01-03 7/week @ 2025-01-10

80 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
~328K SLoC