Skip to main content

gzip_asset

Function gzip_asset 

Source
pub fn gzip_asset(bytes: &[u8]) -> Option<Vec<u8>>
Expand description

gzip some bytes the way largo build does, or None when a compressed form is not worth shipping — exposed so asset_compression_lock measures the REAL compressor on a REAL asset rather than a copy of the rule.