Decompress / compress mozlz4 files, specifically search.json.mozlz4 in Firefox.
Binaries available here
$ ./mozlz4 --help
mozlz4 0.1.0
Justin Wong
Decompress and compress mozlz4 files. Overwrites existing files.
USAGE:
mozlz4.exe [FLAGS] <input> [output]
FLAGS:
-x, --extract decompress mozlz4 (default)
-z, --compress compress to mozlz4
-h, --help Prints help information
-V, --version Prints version information
ARGS:
<input> input file, - for stdin
<output> output file, - for stdout (default)
Extract search.json.lz4
$ ./mozlz4 search.json.mozlz4 search.json
Compress search.json
$ ./mozlz4 -z search.json search.json.mozlz4
$ cargo build --release
$ rustc --version
rustc 1.61.0 (fe5b13d68 2022-05-18)