[package]
edition = "2021"
rust-version = "1.96"
name = "trash-core"
version = "0.2.0"
authors = ["Albert Hui <albert@securityronin.com>"]
build = false
exclude = [
"tests/data/",
"fuzz/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pure-Rust read-only readers for trash / deleted-file artifacts across Windows ($Recycle.Bin $I/$R), Linux (XDG .trashinfo), macOS (.DS_Store put-back), Android (MediaStore .trashed-), and iOS (Photos.sqlite) — recover original path, size, and deletion time"
homepage = "https://github.com/SecurityRonin/trash-forensic"
documentation = "https://docs.rs/trash-core"
readme = "README.md"
keywords = [
"forensics",
"trash",
"recycle-bin",
"dfir",
"parser",
]
categories = ["parser-implementations"]
license = "Apache-2.0"
repository = "https://github.com/SecurityRonin/trash-forensic"
[features]
android = []
default = [
"windows",
"linux",
"macos",
"android",
"ios",
]
ios = ["dep:sqlite-core"]
linux = ["dep:percent-encoding"]
macos = []
serde = [
"dep:serde",
"chrono/serde",
]
windows = []
[lib]
name = "trash_core"
path = "src/lib.rs"
[[test]]
name = "parse"
path = "tests/parse.rs"
[dependencies.chrono]
version = "0.4"
features = ["std"]
default-features = false
[dependencies.percent-encoding]
version = "2"
optional = true
[dependencies.serde]
version = "1"
features = ["derive"]
optional = true
[dependencies.sqlite-core]
version = "0.1"
optional = true
[dependencies.thiserror]
version = "2"
[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_precision_loss]
level = "allow"
priority = 1
[lints.clippy.cast_sign_loss]
level = "allow"
priority = 1
[lints.clippy.correctness]
level = "deny"
priority = -1
[lints.clippy.expect_used]
level = "deny"
priority = 0
[lints.clippy.items_after_statements]
level = "allow"
priority = 1
[lints.clippy.manual_let_else]
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.clippy.suspicious]
level = "deny"
priority = -1
[lints.clippy.too_many_lines]
level = "allow"
priority = 1
[lints.clippy.unwrap_used]
level = "deny"
priority = 0
[lints.rust]
unsafe_code = "forbid"