Cargo.toml

[package]
name = "xpd"
version = "4.3.0"
edition = "2024"
rust-version = "1.99"
description = "Fast, opinionated linter for Python library habits with pandas, NumPy, SciPy, scikit-learn and dozens more data and ML libraries, for humans and coding agents"
license = "MIT AND Apache-2.0 AND BSD-3-Clause AND BSD-2-Clause AND NCSA AND MPL-2.0 AND ISC AND MIT-0 AND PSF-2.0"
repository = "https://github.com/bjoernaagaard/xpd"
homepage = "https://bjoernaagaard.github.io/xpd/"
readme = "README.md"
keywords = ["pandas", "python", "linter", "ast-grep", "agents"]
categories = ["command-line-utilities", "development-tools"]
include = ["/src", "/.cargo/config.toml", "/indexes", "/licenses", "/python/**/*.py", "/rules", "/py", "/build.rs", "/skills", "/.claude-plugin/plugin.json", "/mcp.json", "/LICENSE-*", "/README.md", "/pyproject.toml"]

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

[dependencies]
anyhow = "1.0.104"
ast-grep = "0.51.3"
ast-grep-config = "0.51.3"
ast-grep-core = "0.51.3"
ast-grep-language = "0.51.3"
ast-grep-outline = "0.51.3"
clap = { version = "4.6.7", features = ["derive"] }
clap_complete = "4.6.3"
globset = "0.4.21"
ignore = "0.4.34"
inquire = "0.9.5"
libcst = { version = "1.9.0", default-features = false }
llama-cpp-2 = { version = "0.1.161", default-features = false }
lsp-server = "0.10.0"
lsp-types = "0.97.0"
rayon = "1.12.0"
regex = "1.13.1"
serde = { version = "1.0.229", features = ["derive"] }
serde-saphyr = "2.1.1"
serde_json = "1.0.154"
similar = "3.2.1"
toml_edit = { version = "0.25.19", default-features = false, features = ["parse", "display"] }
shlex = "1.3"
sha2 = "0.10.9"
siphasher = "1.0.4"
gix = { version = "0.91.0", default-features = false, features = ["revision", "blob-diff", "sha1", "sha256"] }
salsa = "0.28.6"
duroxide = { version = "=0.2.1", features = ["sqlite"] }
tokio = { version = "1.54.1", features = ["rt", "macros", "process"] }
tracing-subscriber = { version = "0.3.23", features = ["env-filter"] }
uuid = { version = "1.29.3", features = ["v4"] }
duroxide-pg = { version = "=0.2.0", optional = true }

[target.'cfg(target_os = "linux")'.dependencies]
openssl = { version = "0.10", features = ["vendored"] }
openssl-sys = { version = "0.9", features = ["vendored"] }

[target.'cfg(target_os = "linux")'.build-dependencies]
openssl-sys = { version = "0.9", features = ["vendored"] }

[features]
default = []
ledger-distributed = ["dep:duroxide-pg"]

[build-dependencies]
anyhow = "1.0.104"
ast-grep-config = "0.51.3"
serde_json = "1.0.154"

[lints.rust]
unsafe_op_in_unsafe_fn = "warn"
missing_debug_implementations = "warn"
unreachable_pub = "warn"
rust_2018_idioms = { level = "warn", priority = -1 }

[lints.clippy]
all = { level = "warn", priority = -1 }
pedantic = { level = "warn", priority = -1 }

unwrap_used = "warn"
expect_used = "allow"
panic_in_result_fn = "warn"
missing_assert_message = "warn"

allow_attributes = "warn"
allow_attributes_without_reason = "warn"

undocumented_unsafe_blocks = "warn"
multiple_unsafe_ops_per_block = "warn"

fn_params_excessive_bools = "warn"
struct_excessive_bools = "warn"
clone_on_ref_ptr = "warn"
redundant_clone = "warn"
rc_buffer = "warn"

string_add = "warn"
wildcard_imports = "warn"

dbg_macro = "warn"
todo = "warn"

as_conversions = "warn"
cast_possible_truncation = "warn"
cast_sign_loss = "warn"

module_name_repetitions = "allow"
must_use_candidate = "allow"
module_inception = "allow"
enum_glob_use = "allow"

[profile.release]
opt-level = "s"
lto = "thin"
codegen-units = 16
strip = true

[profile.dev]
debug = 0

[profile.dev.package."*"]
opt-level = 2
debug = 0