# 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.91"
name = "capsula-capture-git-repo"
version = "0.12.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Capsula hook that captures Git repository information."
readme = "README.md"
keywords = [
    "capsula",
    "capsula-hook",
]
categories = ["development-tools"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/shunichironomura/capsula"

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

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

[dependencies.capsula-core]
version = "0.12.1"

[dependencies.git2]
version = "0.20"

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.tracing]
version = "0.1"

[dev-dependencies.ulid]
version = "1"
features = ["serde"]

[lints.clippy]
all = "warn"

[lints.clippy.allow_attributes]
level = "warn"
priority = 1

[lints.clippy.allow_attributes_without_reason]
level = "warn"
priority = 1

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

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

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

[lints.clippy.dbg_macro]
level = "warn"
priority = 1

[lints.clippy.decimal_literal_representation]
level = "warn"
priority = 1

[lints.clippy.derive_partial_eq_without_eq]
level = "allow"
priority = 1

[lints.clippy.else_if_without_else]
level = "warn"
priority = 1

[lints.clippy.expect_used]
level = "allow"
priority = 1

[lints.clippy.indexing_slicing]
level = "allow"
priority = 1

[lints.clippy.missing_errors_doc]
level = "allow"
priority = 1

[lints.clippy.missing_panics_doc]
level = "allow"
priority = 1

[lints.clippy.multiple_crate_versions]
level = "allow"
priority = 1

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

[lints.clippy.panic]
level = "allow"
priority = 1

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

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

[lints.clippy.print_stderr]
level = "warn"
priority = 1

[lints.clippy.print_stdout]
level = "warn"
priority = 1

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

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

[lints.clippy.todo]
level = "warn"
priority = 1

[lints.clippy.undocumented_unsafe_blocks]
level = "warn"
priority = 1

[lints.clippy.unimplemented]
level = "warn"
priority = 1

[lints.clippy.unwrap_used]
level = "warn"
priority = 1

[lints.rust]
unsafe-code = "warn"
