rust-cli / book

Documentation on how to use the Rust Programming Language to develop commandline applications
https://rust-cli.github.io/book/index.html
MIT License
847 stars 111 forks source link

Book: Chapter on "writing robust CLI applications" #53

Open killercup opened 5 years ago

killercup commented 5 years ago

Inspired by @vorner's comment (https://github.com/rust-lang-nursery/cli-wg/pull/105#discussion_r240003491).

We should look into adding an in-depth chapter on how to write applications in a robust and well-behaved way. For example, when an application was forcefully terminated (kill -9, power outage, …), it should still be possible to start it again without any issues.

For this to work, several aspects need to be considered. For example,

Other "robustness" aspects that come to mind:

Noe: As @vorner correctly pointed out, this does not need to be specific to CLI applications!

vorner commented 5 years ago

Other things that come into mind: