├── .github ├── PULL_REQUEST_TEMPLATE.md ├── dependabot.yml └── workflows │ ├── benches.yml │ ├── codecov.yml │ ├── format.yml │ ├── fuzzing.yml │ ├── lints.yml │ ├── rustdoc.yml │ └── tests.yml ├── .gitignore ├── CHANGELOG.md ├── Cargo.toml ├── LICENSE ├── README.md ├── benches └── lzma.rs ├── fuzz ├── .gitignore ├── Cargo.toml ├── README.md └── fuzz_targets │ ├── compare_xz.rs │ ├── decompress_lzma.rs │ ├── decompress_lzma2.rs │ ├── decompress_lzma_stream.rs │ ├── decompress_xz.rs │ ├── interop_xz_decode.rs │ ├── interop_xz_encode.rs │ ├── roundtrip_lzma.rs │ ├── roundtrip_lzma2.rs │ └── roundtrip_xz.rs ├── rustfmt.toml ├── src ├── decode │ ├── lzbuffer.rs │ ├── lzma.rs │ ├── lzma2.rs │ ├── mod.rs │ ├── options.rs │ ├── rangecoder.rs │ ├── stream.rs │ ├── util.rs │ └── xz.rs ├── encode │ ├── dumbencoder.rs │ ├── lzma2.rs │ ├── mod.rs │ ├── options.rs │ ├── rangecoder.rs │ ├── util.rs │ └── xz.rs ├── error.rs ├── lib.rs ├── macros.rs ├── util │ ├── mod.rs │ └── vec2d.rs └── xz │ ├── crc.rs │ ├── footer.rs │ ├── header.rs │ └── mod.rs └── tests ├── files ├── README.md ├── block-check-crc32.txt ├── block-check-crc32.txt.xz ├── empty.txt ├── empty.txt.lzma ├── empty.txt.xz ├── foo.txt ├── foo.txt.lzma ├── foo.txt.xz ├── good-1-lzma2-1 ├── good-1-lzma2-1.xz ├── good-1-lzma2-2 ├── good-1-lzma2-2.xz ├── good-1-lzma2-3 ├── good-1-lzma2-3.xz ├── good-1-lzma2-4 ├── good-1-lzma2-4.xz ├── hello.txt ├── hello.txt.lzma ├── hello.txt.xz ├── hugedict.txt.lzma ├── range-coder-edge-case ├── range-coder-edge-case.lzma └── small.txt ├── lzma.rs ├── lzma2.rs └── xz.rs /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/.github/PULL_REQUEST_TEMPLATE.md -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/benches.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/.github/workflows/benches.yml -------------------------------------------------------------------------------- /.github/workflows/codecov.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/.github/workflows/codecov.yml -------------------------------------------------------------------------------- /.github/workflows/format.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/.github/workflows/format.yml -------------------------------------------------------------------------------- /.github/workflows/fuzzing.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/.github/workflows/fuzzing.yml -------------------------------------------------------------------------------- /.github/workflows/lints.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/.github/workflows/lints.yml -------------------------------------------------------------------------------- /.github/workflows/rustdoc.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/.github/workflows/rustdoc.yml -------------------------------------------------------------------------------- /.github/workflows/tests.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/.github/workflows/tests.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | **/*.rs.bk 3 | Cargo.lock 4 | .DS_Store 5 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/README.md -------------------------------------------------------------------------------- /benches/lzma.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/benches/lzma.rs -------------------------------------------------------------------------------- /fuzz/.gitignore: -------------------------------------------------------------------------------- 1 | 2 | target 3 | corpus 4 | artifacts 5 | -------------------------------------------------------------------------------- /fuzz/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/fuzz/Cargo.toml -------------------------------------------------------------------------------- /fuzz/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/fuzz/README.md -------------------------------------------------------------------------------- /fuzz/fuzz_targets/compare_xz.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/fuzz/fuzz_targets/compare_xz.rs -------------------------------------------------------------------------------- /fuzz/fuzz_targets/decompress_lzma.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/fuzz/fuzz_targets/decompress_lzma.rs -------------------------------------------------------------------------------- /fuzz/fuzz_targets/decompress_lzma2.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/fuzz/fuzz_targets/decompress_lzma2.rs -------------------------------------------------------------------------------- /fuzz/fuzz_targets/decompress_lzma_stream.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/fuzz/fuzz_targets/decompress_lzma_stream.rs -------------------------------------------------------------------------------- /fuzz/fuzz_targets/decompress_xz.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/fuzz/fuzz_targets/decompress_xz.rs -------------------------------------------------------------------------------- /fuzz/fuzz_targets/interop_xz_decode.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/fuzz/fuzz_targets/interop_xz_decode.rs -------------------------------------------------------------------------------- /fuzz/fuzz_targets/interop_xz_encode.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/fuzz/fuzz_targets/interop_xz_encode.rs -------------------------------------------------------------------------------- /fuzz/fuzz_targets/roundtrip_lzma.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/fuzz/fuzz_targets/roundtrip_lzma.rs -------------------------------------------------------------------------------- /fuzz/fuzz_targets/roundtrip_lzma2.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/fuzz/fuzz_targets/roundtrip_lzma2.rs -------------------------------------------------------------------------------- /fuzz/fuzz_targets/roundtrip_xz.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/fuzz/fuzz_targets/roundtrip_xz.rs -------------------------------------------------------------------------------- /rustfmt.toml: -------------------------------------------------------------------------------- 1 | imports_granularity = "Module" 2 | wrap_comments = true 3 | -------------------------------------------------------------------------------- /src/decode/lzbuffer.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/src/decode/lzbuffer.rs -------------------------------------------------------------------------------- /src/decode/lzma.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/src/decode/lzma.rs -------------------------------------------------------------------------------- /src/decode/lzma2.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/src/decode/lzma2.rs -------------------------------------------------------------------------------- /src/decode/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/src/decode/mod.rs -------------------------------------------------------------------------------- /src/decode/options.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/src/decode/options.rs -------------------------------------------------------------------------------- /src/decode/rangecoder.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/src/decode/rangecoder.rs -------------------------------------------------------------------------------- /src/decode/stream.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/src/decode/stream.rs -------------------------------------------------------------------------------- /src/decode/util.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/src/decode/util.rs -------------------------------------------------------------------------------- /src/decode/xz.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/src/decode/xz.rs -------------------------------------------------------------------------------- /src/encode/dumbencoder.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/src/encode/dumbencoder.rs -------------------------------------------------------------------------------- /src/encode/lzma2.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/src/encode/lzma2.rs -------------------------------------------------------------------------------- /src/encode/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/src/encode/mod.rs -------------------------------------------------------------------------------- /src/encode/options.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/src/encode/options.rs -------------------------------------------------------------------------------- /src/encode/rangecoder.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/src/encode/rangecoder.rs -------------------------------------------------------------------------------- /src/encode/util.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/src/encode/util.rs -------------------------------------------------------------------------------- /src/encode/xz.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/src/encode/xz.rs -------------------------------------------------------------------------------- /src/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/src/error.rs -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/src/lib.rs -------------------------------------------------------------------------------- /src/macros.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/src/macros.rs -------------------------------------------------------------------------------- /src/util/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/src/util/mod.rs -------------------------------------------------------------------------------- /src/util/vec2d.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/src/util/vec2d.rs -------------------------------------------------------------------------------- /src/xz/crc.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/src/xz/crc.rs -------------------------------------------------------------------------------- /src/xz/footer.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/src/xz/footer.rs -------------------------------------------------------------------------------- /src/xz/header.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/src/xz/header.rs -------------------------------------------------------------------------------- /src/xz/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/src/xz/mod.rs -------------------------------------------------------------------------------- /tests/files/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/tests/files/README.md -------------------------------------------------------------------------------- /tests/files/block-check-crc32.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/tests/files/block-check-crc32.txt -------------------------------------------------------------------------------- /tests/files/block-check-crc32.txt.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/tests/files/block-check-crc32.txt.xz -------------------------------------------------------------------------------- /tests/files/empty.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/files/empty.txt.lzma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/tests/files/empty.txt.lzma -------------------------------------------------------------------------------- /tests/files/empty.txt.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/tests/files/empty.txt.xz -------------------------------------------------------------------------------- /tests/files/foo.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/tests/files/foo.txt -------------------------------------------------------------------------------- /tests/files/foo.txt.lzma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/tests/files/foo.txt.lzma -------------------------------------------------------------------------------- /tests/files/foo.txt.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/tests/files/foo.txt.xz -------------------------------------------------------------------------------- /tests/files/good-1-lzma2-1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/tests/files/good-1-lzma2-1 -------------------------------------------------------------------------------- /tests/files/good-1-lzma2-1.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/tests/files/good-1-lzma2-1.xz -------------------------------------------------------------------------------- /tests/files/good-1-lzma2-2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/tests/files/good-1-lzma2-2 -------------------------------------------------------------------------------- /tests/files/good-1-lzma2-2.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/tests/files/good-1-lzma2-2.xz -------------------------------------------------------------------------------- /tests/files/good-1-lzma2-3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/tests/files/good-1-lzma2-3 -------------------------------------------------------------------------------- /tests/files/good-1-lzma2-3.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/tests/files/good-1-lzma2-3.xz -------------------------------------------------------------------------------- /tests/files/good-1-lzma2-4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/tests/files/good-1-lzma2-4 -------------------------------------------------------------------------------- /tests/files/good-1-lzma2-4.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/tests/files/good-1-lzma2-4.xz -------------------------------------------------------------------------------- /tests/files/hello.txt: -------------------------------------------------------------------------------- 1 | Hello world 2 | -------------------------------------------------------------------------------- /tests/files/hello.txt.lzma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/tests/files/hello.txt.lzma -------------------------------------------------------------------------------- /tests/files/hello.txt.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/tests/files/hello.txt.xz -------------------------------------------------------------------------------- /tests/files/hugedict.txt.lzma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/tests/files/hugedict.txt.lzma -------------------------------------------------------------------------------- /tests/files/range-coder-edge-case: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/tests/files/range-coder-edge-case -------------------------------------------------------------------------------- /tests/files/range-coder-edge-case.lzma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/tests/files/range-coder-edge-case.lzma -------------------------------------------------------------------------------- /tests/files/small.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/tests/files/small.txt -------------------------------------------------------------------------------- /tests/lzma.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/tests/lzma.rs -------------------------------------------------------------------------------- /tests/lzma2.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/tests/lzma2.rs -------------------------------------------------------------------------------- /tests/xz.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gendx/lzma-rs/HEAD/tests/xz.rs --------------------------------------------------------------------------------