# 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.77"
name = "clrd"
version = "0.1.1"
authors = ["clrd contributors"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "AI-native code maintenance tool - Transparent, Delicate, and Fast"
readme = "README.md"
keywords = [
    "dead-code",
    "linter",
    "ai",
    "code-maintenance",
    "oxc",
]
categories = [
    "development-tools",
    "command-line-utilities",
]
license = "MIT"
repository = "https://github.com/relkimm/clrd"

[features]
cli = []
default = ["cli"]
napi = [
    "dep:napi",
    "dep:napi-derive",
]

[lib]
name = "clrd"
crate-type = [
    "cdylib",
    "lib",
]
path = "src/lib.rs"

[[bin]]
name = "clr"
path = "src/main.rs"
required-features = ["cli"]

[dependencies.anyhow]
version = "1.0"

[dependencies.clap]
version = "4.5"
features = [
    "derive",
    "env",
    "unicode",
    "wrap_help",
]

[dependencies.colored]
version = "2.1"

[dependencies.console]
version = "0.15"

[dependencies.crossterm]
version = "0.28"

[dependencies.globset]
version = "0.4"

[dependencies.ignore]
version = "0.4"

[dependencies.indicatif]
version = "0.17"

[dependencies.napi]
version = "2"
features = [
    "async",
    "serde-json",
]
optional = true

[dependencies.napi-derive]
version = "2"
optional = true

[dependencies.num_cpus]
version = "1.16"

[dependencies.oxc_allocator]
version = "0.56"

[dependencies.oxc_ast]
version = "0.56"

[dependencies.oxc_parser]
version = "0.56"

[dependencies.oxc_resolver]
version = "3"

[dependencies.oxc_span]
version = "0.56"

[dependencies.pathdiff]
version = "0.2"

[dependencies.ratatui]
version = "0.29"

[dependencies.rayon]
version = "1.10"

[dependencies.schemars]
version = "0.8"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.42"
features = ["full"]

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]

[dependencies.walkdir]
version = "2.5"

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

[build-dependencies.napi-build]
version = "2"

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