# 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"
rust-version = "1.95"
name = "safe-chains"
version = "0.170.0"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Auto-allow safe bash commands in agentic coding tools"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/michaeldhopkins/safe-chains"

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

[[bin]]
name = "safe-chains"
path = "src/main.rs"

[[example]]
name = "generate_assets"
path = "examples/generate_assets.rs"

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

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

[dependencies.clap]
version = "4"
features = ["derive"]

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

[dependencies.serde_json]
version = "1"

[dependencies.shell-words]
version = "1"

[dependencies.toml]
version = "0.8"

[dependencies.winnow]
version = "0.7.15"

[dev-dependencies.clap_complete]
version = "4"

[dev-dependencies.clap_mangen]
version = "0.2"

[dev-dependencies.expectrl]
version = "0.8"

[dev-dependencies.proptest]
version = "1.10.0"

[dev-dependencies.tempfile]
version = "3"

[lints.clippy]
bool_to_int_with_if = "warn"
cognitive-complexity = "warn"
collapsible-if = "deny"
extend_with_drain = "deny"
fn-params-excessive-bools = "deny"
match_bool = "warn"
needless-range-loop = "deny"
struct-excessive-bools = "deny"
too-many-arguments = "deny"
too-many-lines = "warn"
unwrap_used = "deny"
