[package]
edition = "2021"
name = "silence-cli"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Remove comments from source code using tree-sitter. Installs a post-edit hook into Claude Code, Codex, Opencode, and Pi so AI-written slop comments are stripped automatically. Provides the `silence` binary."
readme = "README.md"
keywords = [
"comments",
"tree-sitter",
"claude-code",
"codex",
"agent",
]
categories = [
"command-line-utilities",
"development-tools",
]
license = "GPL-3.0-or-later"
repository = "https://github.com/hasparus/silence"
[[bin]]
name = "silence"
path = "src/main.rs"
[[test]]
name = "git_line_ranges"
path = "tests/git_line_ranges.rs"
[[test]]
name = "hooks"
path = "tests/hooks.rs"
[dependencies.anyhow]
version = "1"
[dependencies.clap]
version = "4.6"
features = ["derive"]
[dependencies.git2]
version = "0.21"
default-features = false
[dependencies.ignore]
version = "0.4"
[dependencies.rayon]
version = "1.12"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.silence-strip-core]
version = "0.1.0"
[dependencies.silence-strip-langs]
version = "0.1.0"
[dependencies.toml]
version = "1.1"
[lints.clippy.all]
level = "deny"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
unsafe_code = "forbid"