Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/toumorokoshi/dephammer
A jackhammer to remove deps for bazel projects
https://github.com/toumorokoshi/dephammer
Last synced: 29 days ago
JSON representation
A jackhammer to remove deps for bazel projects
- Host: GitHub
- URL: https://github.com/toumorokoshi/dephammer
- Owner: toumorokoshi
- License: mit
- Created: 2024-11-20T12:32:44.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-11-20T13:45:10.000Z (about 1 month ago)
- Last Synced: 2024-11-20T14:32:49.321Z (about 1 month ago)
- Language: Rust
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dephammer
A jackhammer to remove deps for bazel projects
## What is dephammer?
Dephammer helps you find unused dependencies in your bazel project.
## User Guide
dephammer expects to run in the root of your bazel workspace.
Dephammer works on a specific bazel target, paired with a list of test targets. the invocation looks like:
```bash
dephammer //foo:build --test=//foo:build_test --test=//foo:build_test_2
```From there, dephammer will:
1. look at all the deps and data entries of //foo:build.
2. remove them one by one.
3. run each of the test targets to see if they fail.
4. print a list of the deps in which the tests continued to pass, even after
they were removed.## Extracting