#cargo #newlines #tabs #ruin #cargo-ruin

app cargo-ruin

Ruins your project with different options

2 releases

new 0.0.4 Apr 13, 2025
0.0.3 Apr 13, 2025
0.0.2 Feb 27, 2025
0.0.1 Feb 27, 2025

#43 in Simulation

Custom license

8KB
126 lines

cargo-ruin

This crate ruins your project by:

  • Replacing ? with unwrap()

  • Replacing expect() with unwrap()

  • Removing all newlines

  • Removing all tabs

Usage

just do

cargo ruin

without arguments does all of the above

but you can also specify arguments as shown in

cargo ruin --help

Why??

i made this crate because i kept typing

cargo ruin

instead of

cargo run

so i made cargo-ruin as a joke.

Inspiration

inspired by this reddit post

Feature suggestions

leave feature suggestions at this reddit post

Dependencies

~3–5MB
~84K SLoC