Rust Errors Without Dependencies
vincents.dev·2h·
🦀Rust Scientific
Preview
Report Post

December 27th 2025

Rust error handling is a complex topic mostly due to the composability it gives you and no "blessed way" to accomplish this from the community. Popular libraries include, anyhow, thiserror, and eyre are often recommended and for good reason, they’re great libraries! However, personally, I wanted to use what the standard library offered and write my errors without dependencies. This is not THE idiomatic way to write rust but rather the way that I write errors.

This is mostly for two reasons

Security

I want less code. I want to limit the amount of 3rd party code I pull in. This is mostly due to supply chain disasters over on NPM scaring m…

Similar Posts

Loading similar posts...