rusty-hooks 0.1.0

PostToolUse validation hook for Claude Code — blocks Edit/Write when on-disk content diverges from expected
Documentation
# 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 = "rusty-hooks"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "PostToolUse validation hook for Claude Code — blocks Edit/Write when on-disk content diverges from expected"
readme = "README.md"
keywords = [
    "claude",
    "hook",
    "validation",
    "ai",
    "claude-code",
]
categories = [
    "development-tools",
    "command-line-utilities",
]
license = "MIT"
repository = "https://github.com/89jobrien/rusty-hooks"

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

[[bin]]
name = "validate-hook"
path = "src/main.rs"

[[test]]
name = "01_write_ok"
path = "tests/01_write_ok.rs"

[[test]]
name = "02_write_block_mismatch"
path = "tests/02_write_block_mismatch.rs"

[[test]]
name = "03_invalid_json_blocks"
path = "tests/03_invalid_json_blocks.rs"

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

[[bench]]
name = "read_payload"
path = "benches/read_payload.rs"
harness = false

[[bench]]
name = "resolve_file"
path = "benches/resolve_file.rs"
harness = false

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

[dependencies.serde_json]
version = "1"

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

[dev-dependencies.criterion]
version = "0.5"

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

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

[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
strip = true