# 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 = "2024"
name = "necessist-core"
version = "3.1.0"
authors = ["Samuel Moelius <sam@moeli.us>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "necessist-core"
readme = false
license = "AGPL-3.0"
repository = "https://github.com/trailofbits/necessist"
resolver = "2"

[features]
default = [
    "limit_threads",
    "lock_root",
]
limit_threads = ["rlimit"]
lock_root = [
    "libc",
    "windows-sys",
]

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

[dependencies.ansi_term]
version = "0.12"

[dependencies.anyhow]
version = "1.0"

[dependencies.bitflags]
version = "2.13"

[dependencies.clap]
version = "4.6"
features = [
    "cargo",
    "derive",
]
optional = true

[dependencies.ctrlc]
version = "3.5"

[dependencies.diesel]
version = "2.3"
features = ["sqlite"]

[dependencies.dunce]
version = "1.0"

[dependencies.git2]
version = "0.21"

[dependencies.heck]
version = "0.5"

[dependencies.hex]
version = "0.4"

[dependencies.indexmap]
version = "2.14"

[dependencies.indicatif]
version = "0.18"

[dependencies.itertools]
version = "0.15"

[dependencies.log]
version = "0.4"

[dependencies.once_cell]
version = "1.21"

[dependencies.proc-macro2]
version = "1.0"
features = ["span-locations"]

[dependencies.regex]
version = "1.13"

[dependencies.remain]
version = "0.2"

[dependencies.rewriter]
version = "0.2"
features = ["proc-macro2-impl"]

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.sha2]
version = "0.11"

[dependencies.strum]
version = "0.28"

[dependencies.strum_macros]
version = "0.28"

[dependencies.subprocess]
version = "1.2"

[dependencies.tempfile]
version = "3.27"

[dependencies.toml]
version = "1.1"

[dev-dependencies.assert_cmd]
version = "2.2"

[dev-dependencies.predicates]
version = "3.1"

[build-dependencies.cargo_metadata]
version = "0.23"

[build-dependencies.curl]
version = "0.4"

[build-dependencies.heck]
version = "0.5"

[build-dependencies.syn]
version = "2.0"

[target."cfg(unix)".dependencies.libc]
version = "0.2"
optional = true

[target."cfg(unix)".dependencies.rlimit]
version = "0.11"
optional = true

[target."cfg(windows)".dependencies.libsqlite3-sys]
version = "0.37"
features = ["bundled"]

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

[lints.clippy]
format-collect = "allow"
let-underscore-untyped = "warn"
missing-errors-doc = "allow"
missing-panics-doc = "allow"
mutable-key-type = "allow"
struct-field-names = "allow"

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

[lints.rust.unexpected_cfgs]
level = "deny"
priority = 0
check-cfg = ["cfg(dylint_lib, values(any()))"]
