dtolnay/thiserror
View on GitHub ↗ ★ 5,586 Rust
derive(Error) for struct and enum error types
10 mentions on Hacker News by 10 people: 0 stories, 10 comments · first 2020-04-23 · latest 2025-06-03
20082026
-
Thiserror 2.0 (released 6 months ago) supports no_std. https://github.com/dtolnay/thiserror/releases/tag/2.0.0
comment by Expurple · 2025-06-03 · in Why Use Structured Errors in Rust Applications? -
…kind of a mix of thiserror [2] and anyhow [3] I think. [1] https://github.com/shepmaster/snafu [2] https://github.com/dtolnay/thiserror [3] https://github.com/dtolnay/anyhow
comment by 0rzech · 2025-03-04 · in Show HN: Cot: a Rust web framework for lazy developers -
…to the thiserror crate. I'm hoping that dtolnay will consider it. You can find my PR here: https://github.com/dtolnay/thiserror/pull/402
comment by carlsverre · 2024-12-19 · in Error Stacking in Rust -
It's technically feasible to add SpanTrace support to thiserror fairly easily (30 mins work - Issue: https://github.com/dtolnay/thiserror/issues/400 , PR: https://github.com/dtolnay/thiserror/pull/401 ). This would solve part of the…
comment by joshka · 2024-12-19 · in Error Stacking in Rust -
Here’s an example of a common Rust dependency which had a very subtle caching issue: https://github.com/dtolnay/thiserror/pull/279
comment by cstrahan · 2024-10-06 · in HPy – A better C API for Python -
…nicely formatted and good links to further reading topics. The only missing piece was talking about https://github.com/dtolnay/thiserror which I would expect to be prominently featured given how prevalent it is And possibly…
comment by airstrike · 2024-08-25 · in Guide to Error Handling in Rust -
…think you realize how ridiculous this comment is. Youre comparing 10 lines of Go, with 200 of Rust: https://github.com/dtolnay/thiserror/blob/master/src/lib.rs
comment by svnpenn · 2022-03-30 · in Generics can make your Go code slower -
…ever actually done that? I have, its not easy. Yes. I do it frequently. "#[derive(Error, Debug)]": https://github.com/dtolnay/thiserror#example Much easier than implementing the error interface in go. Rust is powerful enough to allow…
comment by TheDong · 2022-03-30 · in Generics can make your Go code slower -
…again. Anyhow[1] and thiserror[2] really help here, no? 1. https://github.com/dtolnay/anyhow 2. https://github.com/dtolnay/thiserror
comment by orf · 2020-11-09 · in Why Rust Is the Future of Game Development