Get the latest tech news

Show HN: Stack Error – ergonomic error handling for Rust


A pragmatic error handling library for Rust that provides helpful strings for debugging, and structured data for runtime error handling. - gmcgoldr/stackerror

The thiserror library provides flexible tools to facilitate the creation of custom error types. This reduces the effort required to develop (and stick to) a good error handling strategy for your project. macros are provided to simplify common operations on [ Result]s, and to add file name and line number information to error messages.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Rust

Rust

Photo of Stack Error

Stack Error

Related news:

News photo

'Rust is So Good You Can Get Paid $20K to Make It as Fast as C'

News photo

Show HN: Model2vec-Rs – Fast Static Text Embeddings in Rust

News photo

Lessons from Mixing Rust and Java: Fast, Safe, and Practical