precompress_static 0.1.6

Brotli pre-compression for http static content
Documentation
1
2
3
4
5
6
7
8
9
10
use std::collections::BTreeSet;
use std::sync::LazyLock;

pub static EXTENSIONS: LazyLock<BTreeSet<&'static str>> = LazyLock::new(|| {
    BTreeSet::from_iter([
        "html", "htm", "css", "js", "mjs", "cjs", "map", "json", "xml", "ldjson", "txt", "csv",
        "tsv", "md", "adoc", "wasm", "ico", "svg", "pdf", "gpx", "atom", "kml", "geojson", "pbf",
        "gltf", "glb", "bin", "ts", "xsd", "xslt", "dtd", "manifest",
    ])
});