Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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_strip

cd 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
```