4 ms·
Idiomatic Rust – A peer-reviewed collection of Rust articles/talks/repos
- forgotpwd16 9mo agoIs this the correct link? Rust Cookbook states it's a collection of examples to accomplish various tasks, some with brief explanation. But nothing that could be called article/talk/repo. Should note, for anyone curious, that learning idiomatic Rust off those examples isn't straightforward. E.g. https://rust-lang-nursery.github.io/rust-cookbook/file/dir.html https://rust-lang-nursery.github.io/rust-cookbook/file/dir.h... The explanation simply states what the code is doing, the classic sin of code commenting. But no explanation given on why `anyhow::Result`, `main() -> Resut<()>`, `?` operator, `{:?}`, ... are used. If wanted to learn, those are what one would care about. But, if looking for a snippet to use for a task, what the cookbook is about, then is fine.
- keernan 9mo ago>>These examples are complete, and suitable for copying directly into new cargo projects. They are tested and guaranteed to work. ...guaranteed to work... seems to contradict - and thereby invalidate - waivers of liability contained within the licensing
- Brysonbw 9mo agoCorrect link: https://github.com/mre/idiomatic-rust https://github.com/mre/idiomatic-rust