Command Line Applications in Rust
rust-lang-nursery.github.io
rust-lang-nursery.github.io
Having worked on a project written in nim today the contrast is huge: The documentation isn't great, the stdlib argument parsing is odd, if you use argparse¹ then nim-using devs expect different behaviour, etc.
It's: The Fucking Article
I find this idea to be very effective, as long as the scope can be kept to a minimum (think MVP). I've seen it work not only for CLI apps, but also for simple HTTP API servers.
I find it to be a great method of development. The core use case (what the project is and why it exists), and the public interface are so important, and often overlooked when people start a project by writing the code first. I tend to write the README in my head naturally, before I start a project, so writing it down makes sense.
I also like to write the developer guide part of the README at the beginning (how to setup a development environment), so I ensure the project is easy to contribute to.
The idea is to have all of this tutorial (and more) in a blank template so that you can get started on your CLI very fast and focus on doing the logic rather than making choices. (Rust-Starter is biased, it picks the crates and you just make use of the structure).
If you are interested, feel free to look at the code, open an issue, or send me an email!
There is a lot of more info and discussions on the associated repo [1]. We didn't have a lot of time to quickly respond to everything recently, but: Questions, typo fixes, and additional chapters are very welcome :)