[package]
edition = "2021"
rust-version = "1.75"
name = "ai-refactor-cli"
version = "0.2.0"
authors = ["Masaaki Ito <info@locallab.jp>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rule-based legacy code refactoring CLI (TypeScript any / Python typing / Django FBV→CBV). Complement to general AI coding agents."
homepage = "https://gitlab.com/locallab1/ai-refactor-cli"
documentation = "https://docs.rs/ai-refactor-cli"
readme = "README.md"
keywords = [
"refactoring",
"cli",
"python",
"django",
"tree-sitter",
]
categories = [
"command-line-utilities",
"development-tools",
]
license = "Apache-2.0"
repository = "https://gitlab.com/locallab1/ai-refactor-cli"
[lib]
name = "ai_refactor_cli"
path = "src/lib.rs"
[[bin]]
name = "ai-refactor"
path = "src/main.rs"
[[bench]]
name = "check_bench"
path = "benches/check_bench.rs"
harness = false
[dependencies.anyhow]
version = "1"
[dependencies.clap]
version = "4.5"
features = ["derive"]
[dependencies.regex]
version = "1.10"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.tokio]
version = "1"
features = [
"rt-multi-thread",
"macros",
"fs",
"io-util",
]
[dependencies.tree-sitter]
version = "0.22"
[dependencies.tree-sitter-python]
version = "0.21"
[dependencies.walkdir]
version = "2.5"
[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]
[dev-dependencies.tempfile]
version = "3"
[profile.release]
lto = true
codegen-units = 1
strip = true