Not using the error type after construction is a common mistake. This can also easily happen with the provided macros, when using `eyre!` instead of `eyre::bail!`. By marking the type as `#[must_use]`, the compiler warns us in such cases.
* Add must-install feature, so that a non-default handler can be the only handler consuming .text.
* Provide a better panic message if `must-install` feature is enabled.
Co-authored-by: Jane Lusby <jlusby42@gmail.com>
* Bump version because new feature was added.
* Convert must-install feature to auto-install to avoid negative features.
* Add ability to manually install DefaultHandler (for when auto-install is disabled).
* Ensure doctests pass when auto-install feature is disabled.
* Integration tests now succeed without auto-install feature.
* Add integration test for when auto-install feature is disabled.
* Add auto-install feature testing to CI.
* cargo fmt.
Co-authored-by: Jane Lusby <jlusby42@gmail.com>
Co-authored-by: Jane 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
* Added convertion to pyo3::PyErr gated behind feature flag
* Added test_pyo3
* fix ci to not test unsupportable feature msrv
* fix rustfmt
Co-authored-by: Jane Lusby <jlusby@yaah.dev>
This change adds `track_caller` annotations to `context.rs` on various trait helper methods (`wrap_err`) that were missing it. It also adds tests for these APIs to ensure that the location captured is in the file that created the error.
* Implement track caller support for eyre::Report
* fix errors on old compiler version
* fix tests
* add a changelog
* (cargo-release) version 0.6.1-rc.1
* Allow missing replacement for diff range
* maybe it has to be deleted
* okay try removing it entirely...
* (cargo-release) version 0.6.1
* (cargo-release) start next development iteration 0.6.2-alpha.0
* add back missing replacement
* 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