Hacker News new | ask | show | jobs
by steveklabnik 716 days ago
A common but of advice is “use anyhow for applications and thiserror for libraries” but what it really boils down to is, anyhow is good for handling errors, and thiserror is good for defining your own error types.

The docs have good examples of basic usage: https://docs.rs/anyhow/latest/anyhow/