Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sundy-li/rust_strip
A simple tool to auto remove unused imports in rust
https://github.com/sundy-li/rust_strip
Last synced: about 2 months ago
JSON representation
A simple tool to auto remove unused imports in rust
- Host: GitHub
- URL: https://github.com/sundy-li/rust_strip
- Owner: sundy-li
- Created: 2021-06-30T13:36:30.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-07-02T02:39:55.000Z (over 3 years ago)
- Last Synced: 2024-08-03T09:08:30.524Z (5 months ago)
- Language: Go
- Size: 3.91 KB
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## rust_strip
A simple tool to remove unused imports in RUST.
1. Call `Cargo build/test`
2. Process the warning logs of unused imports
3. Then replace the involved files## usage
```
go get -u -v github.com/sundy-li/rust_stripcd your_crate_path
rust_strip -root=your_root_crate_path
## for test files
rust_strip -root=your_root_crate_path -test
```## More
```
rust_strip -h
```