| Crates.io | bury |
| lib.rs | bury |
| version | 0.1.0 |
| created_at | 2025-12-24 02:24:42.582075+00 |
| updated_at | 2025-12-24 02:24:42.582075+00 |
| description | A blazingly fast dead code detector for Python and TypeScript using reachability analysis |
| homepage | https://github.com/neural-garage/tools |
| repository | https://github.com/neural-garage/tools |
| max_upload_size | |
| id | 2002651 |
| size | 42,172 |
A blazingly fast dead code detector using reachability analysis
Bury the dead code before it haunts your codebase!
Bury finds unused code in your Python and TypeScript projects by performing reachability analysis from entry points. Unlike simple pattern matching tools, Bury builds a complete call graph and identifies code that's truly unreachable.
# From crates.io
cargo install bury
# From source
git clone https://github.com/neural-garage/tools
cd tools
cargo install --path crates/bury
# Analyze current directory
bury
# Analyze specific path
bury ./src
# Output as JSON
bury --format json ./src
# Verbose mode
bury --verbose ./src
Bury uses a three-phase reachability analysis:
# module.py
class Calculator:
def add(self, a, b): # â
Used
return a + b
def multiply(self, a, b): # â DEAD CODE
return a * b
def main():
calc = Calculator()
result = calc.add(1, 2) # Only calls add()
Output:
{
"summary": {
"total_findings": 1
},
"findings": [
{
"kind": "Method",
"name": "multiply",
"file": "module.py",
"line": 6,
"reason": "Not reachable from any entry point",
"confidence": "High"
}
]
}
Bury is part of the Neural Garage toolkit - AI-powered code analysis tools built in Rust.
Other Neural Garage tools:
Licensed under either of:
at your option.
See the main repository for contribution guidelines.