3 ms·
There's nothing stopping you from continuing to use anyhow in a library, it just doesn't produce error types with much structure. You can continue returning `a
by lpghatguy 6y ago
There's nothing stopping you from continuing to use anyhow in a library, it just doesn't produce error types with much structure.
You can continue returning `anyhow::Error`, wrap it into a newtype error for your library, or refactor to use thiserror. Thanks to the `?` operator and Rust's type aliases, you can get away with very few code changes to switch between these!