CSS Minifier using Rust

About

I wrote This CSS minifier tool in Rust as a way of learning Rust. The way it works is straightforward. As the goal of minifier is to reduce the file size, the unnecessary characters of the source such as white spaces, comments, and line breaks are removed.

Below, I tried to minimize bootstrap.css which is an unoptimized version of the bootstrap with my css_minifier and the result is a 4KB difference between the optimized version of the bootstrap file and the output.

Screenshot_2023-06-17_at_10.54.36.png

You can ignore the time command as it’s used for measuring the execution time of a specific command, in this case, our css_minifier .