This change hides the `anyhow` compatibility layer behind an `"anyhow"`
feature flag.
In `eyre` v1.0.0 the feature is currently enabled by default.
Fixes#131
---------
Co-authored-by: Freja Roberts <ten3roberts@gmail.com>
Previously, a closure and macro invocation was
required to generate a static string error object
from an `Option::None`.
This change adds an extension trait, providing
the `ok_or_eyre` method on the `Option` type.
`Option::ok_or_eyre` accepts static error messages
and creates `Report` objects lazily in the `None` case.
Implements #125
no_std support was removed in 2020 with PR #29. This change updates the documentation to reflect that as suggested in PR #89. It still mentions no_std, which will hopefully keep it on our minds enough to check sometimes and see if the upstream problem has been resolved.
Co-authored-by: Jane Losare-Lusby <jlusby@yaah.dev>
* update changelog
* mention new format args capture in docs
* cfg doctest to compile on all versions of rustc
* update field for newer versions of cargo release
* (cargo-release) version 0.6.6
* Switch report handler to a global hook
* more cleanup
* remove default from example
* remove broken support for no_std
* back out the unneeded nostd check
* remove one stackframe when capturing a Handler
* update docs and prep for release
* port lib.rs docs updates to readme
* fix type inference issue in eyre macro autoderef behavior
* use the upstream example
* update testcase compile err output
* remove cruft
* bump version for breaking change
* Update testing
* dont bother testing no_std yet ...
* bump version for new release with fixed indenter
* add documentation about custom context crates