[package]
edition = "2021"
rust-version = "1.87"
name = "archive-core"
version = "0.1.3"
authors = ["Albert Hui <albert@securityronin.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pure-Rust archive-layer reader for forensics: transparently peels gzip/bzip2/xz/zip/7z/tar archive layers to reveal the inner evidence, with extension-and-magic format detection."
readme = "README.md"
keywords = [
"archive",
"gzip",
"forensics",
"dfir",
"decompress",
]
categories = [
"compression",
"filesystem",
"parser-implementations",
]
license = "Apache-2.0"
repository = "https://github.com/SecurityRonin/archive-forensic"
[features]
vfs = ["dep:forensic-vfs"]
[lib]
name = "archive_core"
path = "src/lib.rs"
[[test]]
name = "archive_7z"
path = "tests/archive_7z.rs"
[[test]]
name = "archive_layer"
path = "tests/archive_layer.rs"
[[test]]
name = "archive_tar"
path = "tests/archive_tar.rs"
[[test]]
name = "archive_zip"
path = "tests/archive_zip.rs"
[[test]]
name = "resolve"
path = "tests/resolve.rs"
[dependencies.bzip2-rs]
version = "0.1"
[dependencies.flate2]
version = "1"
features = ["rust_backend"]
default-features = false
[dependencies.forensic-vfs]
version = "0.7"
optional = true
[dependencies.sevenz-rust2]
version = "0.21"
[dependencies.tar]
version = "0.4"
default-features = false
[dependencies.tempfile]
version = "3"
[dependencies.thiserror]
version = "2"
[dependencies.zip-forensic-core]
version = "0.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_possible_wrap]
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"