Skip to content

Ilingu/rtkill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RTKill :: Rust Target Folder Killer

➡ An interactive terminal user iterface (TUI), that search and delete 'rust /target folders'.

rtkill_demo.mp4

Origin

The rust target folder is what allow your program to run; so it can get (depending on the size of your application) very large (for an intermediate app it's easily >5GB).

If you come from JavaScript and especially NodeJS, the node_modules folder can be an analogy for the rust target folder.

Therefore, this folder must be deleted whenever the project bound to it is finished, in order to save space on my disk.

But keeping track of every rust projects can be very tedious (if you watch the demo video above, you'll see 107 'target' folders which is quite big for my brain).

So I made this tui app that will scan recursively the folder you specified to find any 'target' rust folders, it'll then shows the result on screen where you'll be able to choose whichever you want to delete.

Be careful, when you press space on the one you've selected, it instantaneously delete it, it does not mark it for deletion, if you press space, it's gone forever

Purpose

  • Improve my rust skillset
  • Have fun

Thus do not take this project seriously, it's just a fun side project.

Installation

This TUI might not works on other OS than linux, do it at your own risk.

Build from source with cargo, or download (if you're on linux) the linux executable from the release page

cargo build --release # will creates a single executable for your os in ./target/release, named "rtkill" (with the associated executable extension in your os)

Made with:

  1. Elegance
  2. RUST ✨🦀
  3. tui-rs ♥ (awesome lib btw)
  4. go see Cargo.toml

Credit

This project, is heavily inspired by npkill, which does the same thing but for the node_modules folder from the NodeJS ecosystem.

About

It deletes rust 'target' folders

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages