Comments (2)
Update: This change is planned to go into the next breaking release, since introducing a (default) anyhow
feature flag ended up being an unintended breaking change.
@ten3roberts responded to my question "Since it's a breaking change anyway, shall we then remove it from default features right away?" with:
Absolutely, that would be great.
It would further go into our intents of making the error wrapping represent a logical error chain, rather than context attached to an error. The anyhow compatibility has unfortunately incentivized the latter approach where through API naming the error chains are treated like context stores where you can interpolate arbitrary data, such as usernames or other variables.
Making it opt-in would thus be awesome, and push towards a more descriptive chain of errors.
Do you mind opening a PR with a short explanation in the Readme of what it means and how to opt in/how it compares to anyhow?
from eyre.
Status: Waiting for #149 due to some thematic overlap.
from eyre.
Related Issues (20)
- Improve discoverability of `OptionExt::ok_or_eyre` HOT 2
- Ergonomics: Hide `context` behind a feature HOT 4
- [breaking] remove alias exports `DefaultContext` and `EyreContext`
- `cargo doc` warning: "this URL is not a hyperlink"
- Segfault in `Report::downcast()` introduced in 0.6.9 HOT 6
- enable raw mode compatibility for panic & error reports HOT 1
- `fn Ok()` breaks all code with `use eyre::*` in new releases HOT 5
- `OptionExt` feature test is incorrectly feature-gated behind the `anyhow` flag
- [ BREAKING ] `ContextCompat` contains identically named methods to `WrapErr` which can be confusing and a footgun HOT 1
- [email protected] missing in the repository? HOT 2
- Eyre broken in rust-analyzer with nightly HOT 1
- and_then() that automatically converts error type to Report? HOT 11
- docs: enclosing in backticks HOT 1
- Implement From for anyhow errors
- New version of backtrace doesn't export `gimli-symbolize` anymore
- Path to 1.0
- DISCUSS: merge eyre and anyhow libraries HOT 1
- Add pre-hook callbacks HOT 2
- Question on sections and accumulating errors HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eyre.