[package]
edition = "2024"
rust-version = "1.85"
name = "zesven"
version = "3.2.0"
authors = ["Andrey Akinshin <andrey.akinshin@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A pure Rust implementation of the 7z archive format"
readme = "README.md"
keywords = [
"7z",
"archive",
"compression",
"lzma",
"7zip",
]
categories = [
"compression",
"encoding",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/AndreyAkinshin/zesven"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
aes = [
"lzma2",
"dep:aes",
"dep:cbc",
"dep:sha2",
"dep:zeroize",
"dep:getrandom",
]
async = [
"dep:tokio",
"dep:tokio-util",
]
brotli = ["dep:brotli"]
bzip2 = ["dep:bzip2"]
cli = [
"aes",
"dep:clap",
"dep:clap_complete",
"dep:indicatif",
"dep:rpassword",
"dep:glob",
"dep:serde_json",
"dep:console",
"dep:dialoguer",
"dep:ctrlc",
"dep:walkdir",
]
default = [
"lzma",
"lzma2",
"deflate",
"bzip2",
"ppmd",
"aes",
"parallel",
"sysinfo",
]
deflate = ["dep:flate2"]
lz4 = ["dep:lz4_flex"]
lzma = ["dep:lzma-rust2"]
lzma2 = ["lzma"]
parallel = ["dep:rayon"]
ppmd = ["dep:ppmd-rust"]
regex = ["dep:regex"]
sysinfo = ["dep:sysinfo"]
wasm = [
"dep:wasm-bindgen",
"dep:wasm-bindgen-futures",
"dep:js-sys",
"dep:web-sys",
"getrandom/js",
]
wasm-default = [
"lzma",
"lzma2",
"deflate",
"bzip2",
"ppmd",
"aes",
"wasm",
]
zstd = ["dep:zstd"]
[lib]
name = "zesven"
crate-type = [
"cdylib",
"rlib",
]
path = "src/lib.rs"
[[bin]]
name = "zesven"
path = "src/bin/cli/main.rs"
required-features = ["cli"]
[[example]]
name = "create_archive"
path = "examples/create_archive.rs"
[[example]]
name = "create_encrypted"
path = "examples/create_encrypted.rs"
[[example]]
name = "extract_selective"
path = "examples/extract_selective.rs"
[[example]]
name = "progress_callback"
path = "examples/progress_callback.rs"
[[test]]
name = "append_keeps_the_archive"
path = "tests/append_keeps_the_archive.rs"
[[test]]
name = "async_parity"
path = "tests/async_parity.rs"
[[test]]
name = "async_tests"
path = "tests/async_tests.rs"
[[test]]
name = "bcj2_write"
path = "tests/bcj2_write.rs"
[[test]]
name = "cli"
path = "tests/cli.rs"
[[test]]
name = "cli_exit_codes"
path = "tests/cli_exit_codes.rs"
required-features = [
"cli",
"lzma",
]
[[test]]
name = "codec_availability"
path = "tests/codec_availability.rs"
[[test]]
name = "codec_combinations"
path = "tests/codec_combinations.rs"
[[test]]
name = "codec_roundtrip_props"
path = "tests/codec_roundtrip_props.rs"
[[test]]
name = "compression_settings"
path = "tests/compression_settings.rs"
[[test]]
name = "editing"
path = "tests/editing.rs"
[[test]]
name = "extract_keeps_what_it_replaces"
path = "tests/extract_keeps_what_it_replaces.rs"
[[test]]
name = "filter_roundtrip"
path = "tests/filter_roundtrip.rs"
[[test]]
name = "hardlink"
path = "tests/hardlink.rs"
[[test]]
name = "interop_7zip"
path = "tests/interop_7zip.rs"
[[test]]
name = "large_entry_write"
path = "tests/large_entry_write.rs"
[[test]]
name = "malformed_archives"
path = "tests/malformed_archives.rs"
[[test]]
name = "multivolume"
path = "tests/multivolume.rs"
[[test]]
name = "ntfs"
path = "tests/ntfs.rs"
[[test]]
name = "options_have_effect"
path = "tests/options_have_effect.rs"
[[test]]
name = "ownership"
path = "tests/ownership.rs"
[[test]]
name = "parallel_write"
path = "tests/parallel_write.rs"
[[test]]
name = "password_tests"
path = "tests/password_tests.rs"
[[test]]
name = "pipelined_write"
path = "tests/pipelined_write.rs"
[[test]]
name = "proptest_tests"
path = "tests/proptest_tests.rs"
[[test]]
name = "read_progress"
path = "tests/read_progress.rs"
[[test]]
name = "recovery"
path = "tests/recovery.rs"
[[test]]
name = "reference_archives"
path = "tests/reference_archives.rs"
[[test]]
name = "resource_limits"
path = "tests/resource_limits.rs"
[[test]]
name = "resource_options"
path = "tests/resource_options.rs"
[[test]]
name = "roundtrip"
path = "tests/roundtrip.rs"
[[test]]
name = "sfx"
path = "tests/sfx.rs"
[[test]]
name = "stats"
path = "tests/stats.rs"
[[test]]
name = "streaming"
path = "tests/streaming.rs"
[[test]]
name = "streaming_write"
path = "tests/streaming_write.rs"
[[test]]
name = "write_memory_account"
path = "tests/write_memory_account.rs"
[[test]]
name = "write_progress"
path = "tests/write_progress.rs"
[[test]]
name = "write_validation"
path = "tests/write_validation.rs"
[[test]]
name = "writer_contract"
path = "tests/writer_contract.rs"
[[test]]
name = "zstdmt_frames"
path = "tests/zstdmt_frames.rs"
[[bench]]
name = "write_throughput"
path = "benches/write_throughput.rs"
harness = false
[dependencies.aes]
version = "0.8"
optional = true
[dependencies.brotli]
version = "6"
optional = true
[dependencies.bzip2]
version = "0.6"
optional = true
[dependencies.cbc]
version = "0.1"
optional = true
[dependencies.clap]
version = "4.5"
features = [
"derive",
"env",
"wrap_help",
"string",
]
optional = true
[dependencies.clap_complete]
version = "4.5"
optional = true
[dependencies.console]
version = "0.15"
optional = true
[dependencies.crc32fast]
version = "1"
[dependencies.crc64fast]
version = "1"
[dependencies.ctrlc]
version = "3.4"
optional = true
[dependencies.dialoguer]
version = "0.11"
optional = true
[dependencies.filetime]
version = "0.2"
[dependencies.flate2]
version = "1"
features = ["zlib-rs"]
optional = true
default-features = false
[dependencies.getrandom]
version = "0.2"
optional = true
[dependencies.glob]
version = "0.3"
optional = true
[dependencies.indicatif]
version = "0.17"
optional = true
[dependencies.js-sys]
version = "0.3"
optional = true
[dependencies.log]
version = "0.4"
[dependencies.lz4_flex]
version = "0.11"
optional = true
[dependencies.lzma-rust2]
version = "0.15"
optional = true
[dependencies.ppmd-rust]
version = "1"
optional = true
[dependencies.rayon]
version = "1.10"
optional = true
[dependencies.regex]
version = "1"
optional = true
[dependencies.rpassword]
version = "7.3"
optional = true
[dependencies.serde_json]
version = "1.0"
optional = true
[dependencies.sha2]
version = "0.10"
optional = true
[dependencies.sysinfo]
version = "0.32"
features = ["system"]
optional = true
default-features = false
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1.43"
features = [
"fs",
"io-util",
"sync",
"rt",
"macros",
"time",
"rt-multi-thread",
]
optional = true
[dependencies.tokio-util]
version = "0.7"
features = [
"io",
"compat",
]
optional = true
[dependencies.walkdir]
version = "2.5"
optional = true
[dependencies.wasm-bindgen]
version = "0.2"
optional = true
[dependencies.wasm-bindgen-futures]
version = "0.4"
optional = true
[dependencies.web-sys]
version = "0.3.70"
features = [
"File",
"Blob",
"FileReader",
"ReadableStream",
"WritableStream",
"ReadableStreamDefaultReader",
"ReadableStreamDefaultController",
"WritableStreamDefaultWriter",
"Window",
"console",
]
optional = true
[dependencies.zeroize]
version = "1"
optional = true
[dependencies.zstd]
version = "0.13"
optional = true
[dev-dependencies.proptest]
version = "1"
[dev-dependencies.rand]
version = "0.8"
[dev-dependencies.tempfile]
version = "3"
[dev-dependencies.wasm-bindgen-test]
version = "0.3"
[target.'cfg(target_arch = "wasm32")'.dependencies]