[package]
edition = "2024"
rust-version = "1.93"
name = "dupes-core"
version = "0.2.1"
authors = ["Matjaz Domen Pecan <matjaz.pecan@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core library for detecting duplicate and near-duplicate code blocks"
readme = "README.md"
keywords = [
"duplicates",
"code-quality",
"lint",
"ast",
]
categories = ["development-tools"]
license = "MIT"
repository = "https://github.com/mpecan/cargo-dupes"
[features]
cli = ["clap"]
[lib]
name = "dupes_core"
path = "src/lib.rs"
[dependencies.clap]
version = "4"
features = ["derive"]
optional = true
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.thiserror]
version = "2"
[dependencies.toml]
version = "0.8"
[dependencies.walkdir]
version = "2"
[dev-dependencies.tempfile]
version = "3"
[lints.clippy]
cast_possible_truncation = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
cognitive_complexity = "warn"
doc_markdown = "allow"
implicit_hasher = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
option_if_let_else = "allow"
too_long_first_doc_paragraph = "allow"
useless_let_if_seq = "allow"
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1