[package]
edition = "2021"
rust-version = "1.85"
name = "ad1-core"
version = "0.1.0"
authors = ["Albert Hui <albert@securityronin.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pure-Rust reader for the AccessData AD1 logical image container (FTK Imager / Custom Content Image)"
readme = false
license = "Apache-2.0"
repository = "https://github.com/SecurityRonin/ad1-forensic"
[features]
testfix = [
"dep:md-5",
"dep:sha1",
]
[lib]
name = "ad1"
path = "src/lib.rs"
[[example]]
name = "dump_fixture"
path = "examples/dump_fixture.rs"
required-features = ["testfix"]
[[test]]
name = "malformed"
path = "tests/malformed.rs"
[[test]]
name = "reader"
path = "tests/reader.rs"
[[test]]
name = "tier1_real"
path = "tests/tier1_real.rs"
[dependencies.flate2]
version = "1"
features = ["rust_backend"]
default-features = false
[dependencies.md-5]
version = "0.10"
optional = true
[dependencies.sha1]
version = "0.10"
optional = true
[dependencies.thiserror]
version = "2"
[dev-dependencies.flate2]
version = "1"
features = ["rust_backend"]
default-features = false
[dev-dependencies.md-5]
version = "0.10"
[dev-dependencies.sha1]
version = "0.10"
[dev-dependencies.tempfile]
version = "3"
[lints.clippy]
correctness = "deny"
suspicious = "deny"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.cast_possible_truncation]
level = "allow"
priority = 1
[lints.clippy.cast_precision_loss]
level = "allow"
priority = 1
[lints.clippy.cast_sign_loss]
level = "allow"
priority = 1
[lints.clippy.doc_markdown]
level = "allow"
priority = 1
[lints.clippy.expect_used]
level = "deny"
priority = 0
[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.unwrap_used]
level = "deny"
priority = 0
[lints.rust]
unsafe_code = "forbid"