Railwind 0.1.2 - A Tailwind compiler rewritten in Rust
I've been wanting to create full stack applications with Rust for a long time and styling them was never my strong suit. Tailwind really helped with that, but using Trunk with Yew alongside NPM for Tailwind always felt a bit clunky to me. So naturally I decided to rewrite it in Rust.
Version 0.1.2 seems to me like a good starting point. The compiler is usable for simple setups - currently it can only parse files for Tailwind classes but more features will be added. A few benefits over the original compiler are:
- Much smaller - optimized for size, the entire compiled CLI weighs in around 2 Mb while the Tailwind standalone CLI is about 30 Mb
- Blazingly fast - I still have to do proper benchmarks but for something that Tailwind takes around 300 ms, Railwind takes 15 ms. Tailwind seem to have caching and optimization that reduces that time significantly to 10-20 ms if there are small file changes (source: trust a random stranger on the internet)
If you want to check it out here's a link to the github repo