# 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 = "cooldown-core"
version = "0.0.4"
authors = ["romnn <roman@airtype.de>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "The pure policy core of the cooldown CLI: domain model, evaluate/check_pin/resolve, ports, and config — no concrete I/O."
homepage = "https://github.com/romnn/cooldown"
readme = false
keywords = [
    "supply-chain",
    "security",
    "dependencies",
    "cooldown",
    "cli",
]
categories = [
    "command-line-utilities",
    "development-tools",
]
license = "MIT"
repository = "https://github.com/romnn/cooldown"
resolver = "2"

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

[[test]]
name = "check_pin"
path = "tests/check_pin.rs"

[[test]]
name = "evaluate"
path = "tests/evaluate.rs"

[[test]]
name = "explain"
path = "tests/explain.rs"

[[test]]
name = "resolve"
path = "tests/resolve.rs"

[dependencies.async-trait]
version = "0.1"

[dependencies.camino]
version = "1"
features = ["serde1"]

[dependencies.globset]
version = "0.4"

[dependencies.jiff]
version = "0.2"
features = ["serde"]

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

[dependencies.thiserror]
version = "2"

[dependencies.toml]
version = "1"

[dev-dependencies.camino]
version = "1"
features = ["serde1"]

[dev-dependencies.indoc]
version = "2"

[dev-dependencies.jiff]
version = "0.2"
features = ["serde"]

[lints.clippy]
allow_attributes_without_reason = "deny"
expect_used = "deny"
indexing_slicing = "deny"
panic = "deny"
struct_excessive_bools = "allow"
todo = "deny"
unimplemented = "deny"
unreachable = "deny"
unwrap_used = "deny"

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

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

[lints.rust]
missing_docs = "warn"
unsafe_code = "deny"
unused_must_use = "deny"

[lints.rust.warnings]
level = "warn"
priority = -1
