# 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"
name = "longline"
version = "0.17.0"
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "System-installed safety hook for Claude Code"
readme = "README.md"
license = "MIT"
repository = "https://github.com/devinbarry/longline"

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

[[bin]]
name = "longline"
path = "src/main.rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.chrono]
version = "0.4"
features = ["serde"]

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

[dependencies.comfy-table]
version = "7"

[dependencies.glob-match]
version = "0.2"

[dependencies.libc]
version = "0.2"

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

[dependencies.serde_json]
version = "1"

[dependencies.serde_norway]
version = "0.9"

[dependencies.tree-sitter]
version = "0.26"

[dependencies.tree-sitter-bash]
version = "0.25"

[dependencies.yansi]
version = "1"
features = [
    "detect-tty",
    "detect-env",
]

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

[dev-dependencies.assert_fs]
version = "1"

[dev-dependencies.cargo-husky]
version = "1"
features = ["user-hooks"]
default-features = false

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

[dev-dependencies.serde_json]
version = "1"

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