├── .gitattributes ├── .github ├── dependabot.yml └── workflows │ └── rust.yml ├── .gitignore ├── CHANGELOG.md ├── Cargo.toml ├── LICENSE ├── README.md ├── examples ├── advance.rs ├── block_decompress.rs ├── compress.rs ├── data │ ├── sample.7z │ └── sample │ │ ├── 7zFormat.txt │ │ ├── 7ziplogo.png │ │ └── inner │ │ └── inner.txt ├── decompress.rs ├── decompress_progress.rs └── mt_decompress.rs ├── rustfmt.toml ├── src ├── archive.rs ├── bitset.rs ├── block.rs ├── codec.rs ├── codec │ ├── brotli.rs │ └── lz4.rs ├── decoder.rs ├── encoder.rs ├── encoder_options.rs ├── encryption.rs ├── encryption │ ├── aes.rs │ └── password.rs ├── error.rs ├── lib.rs ├── reader.rs ├── time.rs ├── util.rs ├── util │ ├── compress.rs │ ├── decompress.rs │ └── wasm.rs ├── writer.rs └── writer │ ├── counting_writer.rs │ ├── lazy_file_reader.rs │ ├── pack_info.rs │ ├── seq_reader.rs │ ├── source_reader.rs │ └── unpack_info.rs └── tests ├── compress_tests.rs ├── decompress_encrypted_tests.rs ├── decompression_tests.rs ├── resources ├── 7za433_7zip_lzma2_bcj2.7z ├── aes_small_test.7z ├── apache2.txt ├── bzip2_file.7z ├── copy.7z ├── decompress_arm64.exe ├── decompress_example_bcj_arm64.7z ├── decompress_example_lzma2_bcj_x86.7z ├── decompress_x86.exe ├── delta.7z ├── encrypted.7z ├── non_solid.7z ├── ppmd.7z ├── single_empty_file.7z ├── single_file_with_content_lzma.7z ├── solid.7z ├── two_empty_file.7z ├── two_files_with_content_lzma.7z ├── zstdmt-brotli.7z └── zstdmt-lz4.7z └── solid_compress_tests.rs /.gitattributes: -------------------------------------------------------------------------------- 1 | *.txt text eol=lf -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/rust.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/.github/workflows/rust.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/.gitignore -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/README.md -------------------------------------------------------------------------------- /examples/advance.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/examples/advance.rs -------------------------------------------------------------------------------- /examples/block_decompress.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/examples/block_decompress.rs -------------------------------------------------------------------------------- /examples/compress.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/examples/compress.rs -------------------------------------------------------------------------------- /examples/data/sample.7z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/examples/data/sample.7z -------------------------------------------------------------------------------- /examples/data/sample/7zFormat.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/examples/data/sample/7zFormat.txt -------------------------------------------------------------------------------- /examples/data/sample/7ziplogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/examples/data/sample/7ziplogo.png -------------------------------------------------------------------------------- /examples/data/sample/inner/inner.txt: -------------------------------------------------------------------------------- 1 | inner content -------------------------------------------------------------------------------- /examples/decompress.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/examples/decompress.rs -------------------------------------------------------------------------------- /examples/decompress_progress.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/examples/decompress_progress.rs -------------------------------------------------------------------------------- /examples/mt_decompress.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/examples/mt_decompress.rs -------------------------------------------------------------------------------- /rustfmt.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/rustfmt.toml -------------------------------------------------------------------------------- /src/archive.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/src/archive.rs -------------------------------------------------------------------------------- /src/bitset.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/src/bitset.rs -------------------------------------------------------------------------------- /src/block.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/src/block.rs -------------------------------------------------------------------------------- /src/codec.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/src/codec.rs -------------------------------------------------------------------------------- /src/codec/brotli.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/src/codec/brotli.rs -------------------------------------------------------------------------------- /src/codec/lz4.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/src/codec/lz4.rs -------------------------------------------------------------------------------- /src/decoder.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/src/decoder.rs -------------------------------------------------------------------------------- /src/encoder.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/src/encoder.rs -------------------------------------------------------------------------------- /src/encoder_options.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/src/encoder_options.rs -------------------------------------------------------------------------------- /src/encryption.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/src/encryption.rs -------------------------------------------------------------------------------- /src/encryption/aes.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/src/encryption/aes.rs -------------------------------------------------------------------------------- /src/encryption/password.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/src/encryption/password.rs -------------------------------------------------------------------------------- /src/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/src/error.rs -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/src/lib.rs -------------------------------------------------------------------------------- /src/reader.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/src/reader.rs -------------------------------------------------------------------------------- /src/time.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/src/time.rs -------------------------------------------------------------------------------- /src/util.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/src/util.rs -------------------------------------------------------------------------------- /src/util/compress.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/src/util/compress.rs -------------------------------------------------------------------------------- /src/util/decompress.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/src/util/decompress.rs -------------------------------------------------------------------------------- /src/util/wasm.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/src/util/wasm.rs -------------------------------------------------------------------------------- /src/writer.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/src/writer.rs -------------------------------------------------------------------------------- /src/writer/counting_writer.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/src/writer/counting_writer.rs -------------------------------------------------------------------------------- /src/writer/lazy_file_reader.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/src/writer/lazy_file_reader.rs -------------------------------------------------------------------------------- /src/writer/pack_info.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/src/writer/pack_info.rs -------------------------------------------------------------------------------- /src/writer/seq_reader.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/src/writer/seq_reader.rs -------------------------------------------------------------------------------- /src/writer/source_reader.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/src/writer/source_reader.rs -------------------------------------------------------------------------------- /src/writer/unpack_info.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/src/writer/unpack_info.rs -------------------------------------------------------------------------------- /tests/compress_tests.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/tests/compress_tests.rs -------------------------------------------------------------------------------- /tests/decompress_encrypted_tests.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/tests/decompress_encrypted_tests.rs -------------------------------------------------------------------------------- /tests/decompression_tests.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/tests/decompression_tests.rs -------------------------------------------------------------------------------- /tests/resources/7za433_7zip_lzma2_bcj2.7z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/tests/resources/7za433_7zip_lzma2_bcj2.7z -------------------------------------------------------------------------------- /tests/resources/aes_small_test.7z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/tests/resources/aes_small_test.7z -------------------------------------------------------------------------------- /tests/resources/apache2.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/tests/resources/apache2.txt -------------------------------------------------------------------------------- /tests/resources/bzip2_file.7z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/tests/resources/bzip2_file.7z -------------------------------------------------------------------------------- /tests/resources/copy.7z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/tests/resources/copy.7z -------------------------------------------------------------------------------- /tests/resources/decompress_arm64.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/tests/resources/decompress_arm64.exe -------------------------------------------------------------------------------- /tests/resources/decompress_example_bcj_arm64.7z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/tests/resources/decompress_example_bcj_arm64.7z -------------------------------------------------------------------------------- /tests/resources/decompress_example_lzma2_bcj_x86.7z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/tests/resources/decompress_example_lzma2_bcj_x86.7z -------------------------------------------------------------------------------- /tests/resources/decompress_x86.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/tests/resources/decompress_x86.exe -------------------------------------------------------------------------------- /tests/resources/delta.7z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/tests/resources/delta.7z -------------------------------------------------------------------------------- /tests/resources/encrypted.7z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/tests/resources/encrypted.7z -------------------------------------------------------------------------------- /tests/resources/non_solid.7z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/tests/resources/non_solid.7z -------------------------------------------------------------------------------- /tests/resources/ppmd.7z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/tests/resources/ppmd.7z -------------------------------------------------------------------------------- /tests/resources/single_empty_file.7z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/tests/resources/single_empty_file.7z -------------------------------------------------------------------------------- /tests/resources/single_file_with_content_lzma.7z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/tests/resources/single_file_with_content_lzma.7z -------------------------------------------------------------------------------- /tests/resources/solid.7z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/tests/resources/solid.7z -------------------------------------------------------------------------------- /tests/resources/two_empty_file.7z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/tests/resources/two_empty_file.7z -------------------------------------------------------------------------------- /tests/resources/two_files_with_content_lzma.7z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/tests/resources/two_files_with_content_lzma.7z -------------------------------------------------------------------------------- /tests/resources/zstdmt-brotli.7z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/tests/resources/zstdmt-brotli.7z -------------------------------------------------------------------------------- /tests/resources/zstdmt-lz4.7z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/tests/resources/zstdmt-lz4.7z -------------------------------------------------------------------------------- /tests/solid_compress_tests.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasenbanck/sevenz-rust2/HEAD/tests/solid_compress_tests.rs --------------------------------------------------------------------------------