namada icon indicating copy to clipboard operation
namada copied to clipboard

consider using `std::io::Error` in place of `storage_api::Error`

Open tzemanovic opened this issue 2 years ago • 2 comments

The std::io::Error has the same design considerations that we want for storage_api::Error and is familiar to Rust devs, so it might be better to use it than to re-invent our own. Additionally, std::io::Error is well suited for no-std (wasm) env too.

tzemanovic avatar Mar 13 '23 08:03 tzemanovic

a new alternative that improves many things in error handling: https://github.com/hashintel/hash/tree/main/libs/error-stack

tzemanovic avatar Oct 23 '23 08:10 tzemanovic

another new crate that provides nice error handling ergonomics without giving up type-safety https://crates.io/crates/terrors (can be used in combination with some other crate)

tzemanovic avatar Apr 30 '24 11:04 tzemanovic