Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 1.17 KB

README.md

File metadata and controls

45 lines (29 loc) · 1.17 KB

mozlz4

Decompress / compress mozlz4 files, specifically search.json.mozlz4 in Firefox.

Binaries available here

Usage

$ ./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)

Examples

Extract search.json.lz4

$ ./mozlz4 search.json.mozlz4 search.json

Compress search.json

$ ./mozlz4 -z search.json search.json.mozlz4

Building

$ cargo build --release

Notes

$ rustc --version
rustc 1.61.0 (fe5b13d68 2022-05-18)

lz4.h and lz4.c copied directly from Mozilla repo