mirror of
https://github.com/mre/idiomatic-rust
synced 2024-11-21 19:43:04 +00:00
Add "Context-preserving error handling" by @nagisa
This commit is contained in:
parent
9e314e45f9
commit
861c548f71
1 changed files with 1 additions and 0 deletions
|
@ -43,6 +43,7 @@ This repository collects resources for writing clean, idiomatic Rust code. [Plea
|
|||
|
||||
### 2020
|
||||
|
||||
* [Context-preserving error handling](https://kazlauskas.me/entries/errors) by [Simonas Kazlauskas](https://github.com/nagisa) - Explains how to use crates like `thiserror` in combination with `map_err` to add context to errors to prevent information loss.
|
||||
* [Refactoring Rust Transpiled from C](https://immunant.com/blog/2020/09/transpiled_c_safety/) by [Per Larsen](https://github.com/thedataking) - Describes how to lift a C-project that was automatically converted to unsafe Rust with C2Rust to safer, more idiomatic Rust with some human intervention.
|
||||
* [Learning Rust through open source and live code reviews](https://loige.co/learning-rust-through-open-source-and-live-code-reviews/) by [Luciano Mammino](https://github.com/lmammino) and [Stefano Abalsamo](https://github.com/stefanoabalsamo79) - Covers patterns like [FromStr](https://doc.rust-lang.org/std/str/trait.FromStr.html) and exposing a CLI and a library in one crate.
|
||||
* [Guide on how to write documentation for a Rust crate](https://blog.guillaume-gomez.fr/articles/2020-03-12+Guide+on+how+to+write+documentation+for+a+Rust+crate) - Writing good documentation with rustdoc including many examples.
|
||||
|
|
Loading…
Reference in a new issue