DISCUSS: merge eyre and anyhow libraries #177
Labels
breaking change
Non-urgent breaking changes, probably delay to the next release
help wanted
Extra attention is needed
Eyre is a close clone of anyhow which aims to provide extra configurabilities and more dynamic features compared to anyhow.
The library has been able to achieve its purpose and provide more elaborate error handling.
However, there has been compatibility issues and fragmentation arising when mixing the use of the libraries, most often due to external crates or ecosystem conventions. It is not easy to mix the usage of convert between
anyhow::Error
andeyre::Report
and preserve the backtrace and other data.Numerous attempts, issues and discussions have been related to this topic
#31
#171
Backtrace preserving conversion PR
The discussed solution has been to rethink our approach and reconcile the two libarier, providing a hook similar to the
log
crate in anyhow, and makingeyre
and most notablycolor-eyre
integrate with anyhow directly, allowing the community to use both libraries together rather than fighting the chasm.Any feedback is more than welcome
The text was updated successfully, but these errors were encountered: