Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust Target Cleaner (rtc)

Crates.io License: MIT

Desktop GUI tool to scan Rust project target/ directories, show disk usage, and safely delete selected folders to free space.

桌面 GUI 工具:扫描 Rust 项目的 target/ 目录,展示占用体积,并按勾选安全删除以释放空间。

Screenshots

中文界面 / Chinese UI

扫描结果列表示例:项目路径、target 路径、体积、最近修改、状态;支持勾选后清理。

中文界面扫描结果

English UI

Same workflow with the language switcher (top-right: 中文 / English).

English UI scan results

Install

cargo install rust-target-cleaner
rtc

From source:

git clone https://github.com/DaQun/rust-target-cleaner.git
cd rust-target-cleaner
cargo run --release

Binary name: rtc (target/release/rtc / rtc.exe on Windows).

Features

  • Recursive scan for Cargo projects under a chosen root
  • Only treats target/ next to a Cargo.toml as candidates (safer)
  • Parallel size calculation; sort by size or last modified time
  • Confirm before permanent delete (not Recycle Bin / Trash)
  • Default-select items larger than 100 MB
  • Remember last scan path and language (中文 / English)
  • Cross-platform: Windows, macOS, Linux (desktop GUI required)

Usage

  1. Choose or browse a scan root directory
  2. Adjust max depth if needed, click Scan / 扫描
  3. Select rows to clean (select all / none available)
  4. Check reclaimable size in the footer
  5. Clean selected… / 清理选中… → confirm → delete

Safety

  • Only deletes directories named target under a Cargo project
  • Confirmation dialog; deletion is permanent
  • Source code and Cargo.toml are not deleted
  • Skips noisy dirs such as node_modules, .git

Platform notes

  • Windows / macOS / Linux desktop: supported via eframe
  • Linux: may need GUI/dev packages and CJK fonts for Chinese UI, e.g. fonts-noto-cjk
  • Headless servers without a display are not supported

Test

cargo test

Friends / 友情链接

License

MIT

About

No description, website, or topics provided.

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages