[package]
edition = "2021"
rust-version = "1.87"
name = "zip-forensic-core"
version = "0.2.0"
authors = ["Albert Hui <albert@securityronin.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pure-Rust, no-C-FFI ZIP reader for forensics: decodes Stored, Deflate, Deflate64, Bzip2, Zstd, LZMA and XZ, decrypts ZipCrypto + WinZip AES, with deflate-block random access into E01-in-zip."
readme = "README.md"
keywords = [
"zip",
"deflate64",
"zstd",
"decrypt",
"forensics",
]
categories = [
"compression",
"filesystem",
"parser-implementations",
]
license = "Apache-2.0"
repository = "https://github.com/SecurityRonin/zip-forensic"
[lib]
name = "zip_core"
path = "src/lib.rs"
[[test]]
name = "archive_signature"
path = "tests/archive_signature.rs"
[[test]]
name = "codecs"
path = "tests/codecs.rs"
[[test]]
name = "coverage"
path = "tests/coverage.rs"
[[test]]
name = "differential"
path = "tests/differential.rs"
[[test]]
name = "encryption"
path = "tests/encryption.rs"
[[test]]
name = "extra_fields"
path = "tests/extra_fields.rs"
[[test]]
name = "legacy_methods"
path = "tests/legacy_methods.rs"
[[test]]
name = "malformed"
path = "tests/malformed.rs"
[[test]]
name = "native_parser"
path = "tests/native_parser.rs"
[[test]]
name = "realworld_corpus"
path = "tests/realworld_corpus.rs"
[[test]]
name = "safety"
path = "tests/safety.rs"
[[test]]
name = "spanned"
path = "tests/spanned.rs"
[[test]]
name = "strong_encryption"
path = "tests/strong_encryption.rs"
[[test]]
name = "structure"
path = "tests/structure.rs"
[dependencies.aes]
version = "0.8"
[dependencies.bzip2-rs]
version = "0.1"
[dependencies.constant_time_eq]
version = "0.3"
[dependencies.crc32fast]
version = "1"
[dependencies.ctr]
version = "0.9"
[dependencies.deflate64]
version = "0.1"
[dependencies.flate2]
version = "1"
features = ["rust_backend"]
default-features = false
[dependencies.hmac]
version = "0.12"
[dependencies.lzma-rs]
version = "0.3"
[dependencies.pbkdf2]
version = "0.12"
features = ["hmac"]
default-features = false
[dependencies.ruzstd]
version = "0.8"
[dependencies.sha1]
version = "0.10"
[dependencies.thiserror]
version = "2"
[dev-dependencies.tempfile]
version = "3"
[dev-dependencies.zip]
version = "2"
[lints.clippy]
correctness = "deny"
expect_used = "deny"
suspicious = "deny"
unwrap_used = "deny"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.cast_possible_truncation]
level = "allow"
priority = 1
[lints.clippy.cast_sign_loss]
level = "allow"
priority = 1
[lints.clippy.missing_errors_doc]
level = "allow"
priority = 1
[lints.clippy.missing_panics_doc]
level = "allow"
priority = 1
[lints.clippy.module_name_repetitions]
level = "allow"
priority = 1
[lints.clippy.must_use_candidate]
level = "allow"
priority = 1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.clippy.similar_names]
level = "allow"
priority = 1
[lints.rust]
unsafe_code = "forbid"