rust-cli / team

CLI working group
https://rust-cli.github.io/book
MIT License
294 stars 34 forks source link

Mention the need to add exitcode dependency #138

Closed stappersg closed 4 years ago

stappersg commented 4 years ago

The text does mention exitcode library. Now the example source code does have it expliciet.

stappersg commented 4 years ago

This is for issue #137

killercup commented 4 years ago

Hey, sorry it took a while to get back to this. I'd rather not merge this as-is, since using extern crate is pretty much deprecated since the 2018 edition. Maybe we can add a sentence that tells you to add the dependency to your Cargo.toml instead?

stappersg commented 4 years ago

... sorry ... Maybe we can add ...

Here the person who was reading a half year ago the rust cli docs.

I encountered a non-working example that resulted into #137. Got a good response that resulted into this #138.

Now (November 2019) there is a sorry and a Maybe we can add. At which place to exchange those warm words for working examples in a textbook?

Best response on this blunt reply would be a blunt reply saying something like:

Use rust version ... or higher for working examples in the rust cli docs.