rust-doctor 0.2.0

A unified code health tool for Rust — scan, score, and fix your codebase
Documentation
# 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 = "rust-doctor"
version = "0.2.0"
build = false
exclude = [
    "npm/",
    ".claude-plugin/",
    ".claude/",
    ".meta/",
    "tasks/",
    "ULTRON/",
    "server.json",
    "rust-doctor-video/",
    "assets/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A unified code health tool for Rust — scan, score, and fix your codebase"
homepage = "https://rust-doctor.vercel.app"
documentation = "https://docs.rs/rust-doctor"
readme = "README.md"
keywords = [
    "lint",
    "clippy",
    "code-quality",
    "health",
    "diagnostics",
]
categories = [
    "development-tools",
    "command-line-utilities",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/ArthurDEV44/rust-doctor"

[features]
default = ["mcp"]
mcp = [
    "dep:rmcp",
    "dep:tokio",
    "dep:schemars",
]

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

[[bin]]
name = "rust-doctor"
path = "src/main.rs"

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

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

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

[dependencies.cargo_metadata]
version = "0.19"

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

[dependencies.dialoguer]
version = "0.11"

[dependencies.globset]
version = "0.4"

[dependencies.indicatif]
version = "0.18"

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

[dependencies.proc-macro2]
version = "1"
features = ["span-locations"]

[dependencies.rayon]
version = "1.11"

[dependencies.rmcp]
version = "1.2.0"
features = [
    "server",
    "transport-io",
    "macros",
]
optional = true

[dependencies.schemars]
version = "1"
optional = true

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

[dependencies.serde_json]
version = "1"

[dependencies.syn]
version = "2"
features = [
    "full",
    "parsing",
    "visit",
]

[dependencies.tempfile]
version = "3"

[dependencies.thiserror]
version = "2.0.18"

[dependencies.tokio]
version = "1.50.0"
features = ["rt-multi-thread"]
optional = true

[dependencies.toml]
version = "1"

[dependencies.tracing]
version = "0.1"

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

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

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

[target."cfg(unix)".dependencies.rustix]
version = "1.1.4"
features = ["process"]

[lints.clippy]
dbg_macro = "deny"
expect_used = "warn"
option_if_let_else = "allow"
panic = "deny"
significant_drop_tightening = "allow"
todo = "warn"
unimplemented = "deny"
unwrap_in_result = "warn"
unwrap_used = "warn"

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

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

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