# 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.85"
name = "dupehound"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Sniffs out near-duplicate code in any codebase. Fast, offline, no AI required."
readme = "README.md"
keywords = [
    "duplicate",
    "clone-detection",
    "code-quality",
    "cli",
    "winnowing",
]
categories = [
    "command-line-utilities",
    "development-tools",
]
license = "MIT"
repository = "https://github.com/Rafaelpta/dupehound"

[features]
card = ["dep:resvg"]
default = ["card"]

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

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

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

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

[dependencies.anyhow]
version = "1.0.102"

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

[dependencies.ignore]
version = "0.4.26"

[dependencies.owo-colors]
version = "4.3.0"
features = ["supports-colors"]

[dependencies.rayon]
version = "1.12.0"

[dependencies.resvg]
version = "0.47.0"
optional = true

[dependencies.rustc-hash]
version = "2.1.2"

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

[dependencies.serde_json]
version = "1.0.150"

[dependencies.streaming-iterator]
version = "0.1.9"

[dependencies.thiserror]
version = "2.0.18"

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

[dependencies.tree-sitter-go]
version = "0.25.0"

[dependencies.tree-sitter-java]
version = "0.23.5"

[dependencies.tree-sitter-javascript]
version = "0.25.0"

[dependencies.tree-sitter-python]
version = "0.25.0"

[dependencies.tree-sitter-ruby]
version = "0.23.1"

[dependencies.tree-sitter-rust]
version = "0.24.2"

[dependencies.tree-sitter-typescript]
version = "0.23.2"

[dependencies.unicode-width]
version = "0.2.2"

[dev-dependencies.insta]
version = "1.47.2"
features = ["json"]

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

[profile.release]
lto = "thin"
codegen-units = 1
strip = true
