# 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 = "sloc-guard"
version = "0.2.3"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A CLI tool that enforces SLOC limits and directory structure rules to guard against codebase complexity"
homepage = "https://github.com/doraemonkeys/sloc-guard"
readme = "README.md"
keywords = [
    "sloc",
    "code-quality",
    "linter",
    "static-analysis",
    "complexity",
]
categories = [
    "command-line-utilities",
    "development-tools",
]
license = "Apache-2.0"
repository = "https://github.com/doraemonkeys/sloc-guard"

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

[[bin]]
name = "sloc-guard"
path = "src/main.rs"

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

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

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

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

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

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

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

[dependencies.dunce]
version = "1"

[dependencies.gix]
version = "0.76"
features = [
    "revision",
    "index",
    "dirwalk",
]
default-features = false

[dependencies.globset]
version = "0.4"

[dependencies.ignore]
version = "0.4"

[dependencies.indicatif]
version = "0.18.3"

[dependencies.rayon]
version = "1.10"

[dependencies.regex]
version = "1"

[dependencies.reqwest]
version = "0.12"
features = [
    "blocking",
    "rustls-tls",
]
default-features = false

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

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10"

[dependencies.thiserror]
version = "2"

[dependencies.toml]
version = "0.9.8"

[dependencies.walkdir]
version = "2"

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

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

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

[lints.clippy]
all = "deny"
cognitive_complexity = "deny"
too_many_lines = "deny"

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

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

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
    "cfg(tarpaulin_include)",
    "cfg(tarpaulin)",
]
