# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
rust-version = "1.85"
name = "livedisk-core"
version = "0.1.2"
build = false
exclude = [
    ".github/",
    ".pre-commit-config.yaml",
    "deny.toml",
    "renovate.json",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Cross-platform live block-device enumeration — list physical disks and partitions on the running host (macOS IOKit, Linux sysfs, Windows DeviceIoControl) in one unified model, with proportional partition-layout rendering"
homepage = "https://github.com/SecurityRonin/livedisk-forensic"
documentation = "https://docs.rs/livedisk-core"
readme = "README.md"
keywords = [
    "forensics",
    "disk",
    "partition",
    "enumeration",
    "block-device",
]
categories = [
    "filesystem",
    "os",
    "hardware-support",
]
license = "Apache-2.0"
repository = "https://github.com/SecurityRonin/livedisk-forensic"

[features]
default = []
serde = ["dep:serde"]

[lib]
name = "livedisk"
path = "src/lib.rs"

[dependencies.serde]
version = "1"
features = ["derive"]
optional = true

[dependencies.thiserror]
version = "2"

[target.'cfg(target_os = "macos")'.dependencies.core-foundation]
version = "0.10"

[target.'cfg(target_os = "macos")'.dependencies.core-foundation-sys]
version = "0.8"

[target.'cfg(target_os = "macos")'.dependencies.io-kit-sys]
version = "0.5"

[target."cfg(windows)".dependencies.windows-sys]
version = "0.61"
features = [
    "Win32_Foundation",
    "Win32_Security",
    "Win32_Storage_FileSystem",
    "Win32_System_Ioctl",
    "Win32_System_IO",
]

[lints.clippy.all]
level = "warn"
priority = -1

[lints.clippy.cast_lossless]
level = "allow"
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.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.unreadable_literal]
level = "allow"
priority = 1

[lints.rust]
unsafe_code = "deny"
