# 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"
rust-version = "1.85"
name = "precommit-verify"
version = "0.1.4"
authors = ["KoheiKido <kido@9wick.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pre-commit hook helper that records and verifies repository state via blake3 hash."
homepage = "https://github.com/9wick/precommit-verify"
readme = "README.md"
keywords = [
    "git",
    "pre-commit",
    "hook",
    "cli",
    "lefthook",
]
categories = [
    "command-line-utilities",
    "development-tools",
]
license = "MIT"
repository = "https://github.com/9wick/precommit-verify"

[[bin]]
name = "precommit-verify"
path = "src/main.rs"

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

[dependencies.anyhow]
version = "=1.0.102"

[dependencies.blake3]
version = "=1.8.5"

[dependencies.bstr]
version = "=1.12.1"

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

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

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

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

[lints.clippy]
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"

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

[lints.rust]
unsafe_code = "forbid"

[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
panic = "abort"
strip = true
