Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DISCUSS: merge eyre and anyhow libraries #177

Open
Tracked by #176
ten3roberts opened this issue Jun 6, 2024 · 1 comment
Open
Tracked by #176

DISCUSS: merge eyre and anyhow libraries #177

ten3roberts opened this issue Jun 6, 2024 · 1 comment
Labels
breaking change Non-urgent breaking changes, probably delay to the next release help wanted Extra attention is needed

Comments

@ten3roberts
Copy link
Contributor

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 and eyre::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 making eyre and most notably color-eyre integrate with anyhow directly, allowing the community to use both libraries together rather than fighting the chasm.

Any feedback is more than welcome

@ten3roberts ten3roberts added help wanted Extra attention is needed breaking change Non-urgent breaking changes, probably delay to the next release labels Jun 6, 2024
@ten3roberts ten3roberts mentioned this issue Jun 6, 2024
1 task
@joshtriplett
Copy link

Discussion and plans in this regard may also want to consider the possibility of getting a subset of eyre's functionality merged into the standard library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change Non-urgent breaking changes, probably delay to the next release help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants