3 ms·
I have rewritten a relatively small but critical 2k CLI from nodejs/ts to Rust, and this was the best decision ever. Cold start and runtime performance got a bi
by jeremychone 4y ago
I have rewritten a relatively small but critical 2k CLI from nodejs/ts to Rust, and this was the best decision ever. Cold start and runtime performance got a big boost, but also the code design got much better, and the code is much simpler to maintain and evolve. The single binary install was also a big boost, which I assume is similar to Go.
Since then, we have written all our CLI in Rust, regardless of size.
Tip: for small personal CLI, "cargo watch -x 'install --path .'" can make the whole dev experience script-like.