All notable changes to error-stack
will be documented in this file.
- Support for
defmt
- Better support for serialization and deserialization of
Report
- Report has been split into
Report<C>
andReport<[C]>
to distinguish between a group of related errors and a single error. These errors can still be nested. (#5047) - Introduce a new
unstable
flag, which is used to enable unstable features, these features are not covered by semver and may be modified or removed at any time. (#5181)
- Set the MSRV to 1.83 (#5333)
Extend
is no longer implemented byReport<C>
, instead it is implemented onReport<[C]>
, either useFrom
orReport::expand
to convert betweenReport<C>
intoReport<[C]>
. (#5047)extend_one
has been renamed topush
and is only implemented onReport<[C]>
. (#5047)bail!(report,)
has been removed, one must now usebail!(report)
. This is in preparation for the unstablebail!
macro that allows to constructReport<[C]>
. (#5047)
Context
: Usecore::error::Error
instead (#5533)Result<T, C>
: Usecore::result::Result<T, Report<C>>
instead (#5533)
0.5.0 - 2024-07-12
- Capture
source()
errors when convertingError
toReport
(#4678)
Backtrace
s are not included in thestd
feature anymore. Instead, thebacktrace
feature is used which is enabled by default (#4685)- Remove deprecated
IntoReport
(#4706)
0.4.1 - 2023-09-04
- Fix deprecation warning typo for
IntoReport
(#3088)
0.4.0 - 2023-08-23
- Add
ResultExt::Context
as associated type (#2883)
- Implement
ResultExt
forResult
even if theErr
-variant is notReport<C>
but onlyC: Context
(#2883)
IntoReport
: UseReportExt
orFrom
viaResult::map_err(Report::from)
instead (#2883)
0.3.1 - 2023-02-08
- Fix multiline attachments not being aligned (#2022)
0.3.0 - 2023-02-01
- Add initial serializing support using
serde
(#1290) - Support
Debug
hooks onno-std
platforms via thehooks
feature (#1556) - Support converting
Report
intoError
viaReport::as_error
andReport::into_error
(#1749) - Support converting
Report
intoBox<dyn Error>
via theFrom
trait (#1749) - Programmatic selection of color mode and charset used for
Debug
output (#1800)
0.2.4 - 2022-11-04
- The output of
Location
is no longer hard-coded and can now be adjusted through hooks. (#1237) - The
TypeId
of a value contained in aFrame
can now be accessed viaFrame::type_id
(#1289) - Deprecate
Frame::location
in favor of an additional attachment on context change/creation (#1311)
0.2.3 - 2022-10-12
- Add Apache 2.0 as an additional license option (#1172)
0.2.2 - 2022-10-07
- Add a space before attachment formatting (#1174)
0.2.0 - 2022-10-03
- Set the MSRV to 1.63 (#944)
- Use
Provider
API fromcore::any
(#697) - Remove the unused features
hooks
,futures
, andfutures-core
(#695, #1138)
- Support backtraces on non-nightly channels starting with 1.65.0-beta (#1098)
- Add support for
core::error::Error
on nightly (#1038) - Add support for
Error::provide()
(#904) - New output for Debug (#794)
- New hook interface for Debug (#794)
- Add support for related errors and multiple error sources (#747)
- Add compatibility for
anyhow
andeyre
to convert their types intoReport
(#763) - Implement
Termination
forReport
(#671) Report::set_debug_hook
andReport::set_display_hook
no longer return an error (#794)
IntoReport::report
: UseIntoReport::into_report
instead (#698)Report::backtrace
: UseReport::downcast_ref::<Backtrace>
(non-nightly),Report::request_ref::<Backtrace>
(nightly) instead (#747)Report::span_trace
: UseReport::downcast_ref::<SpanTrace>
(non-nightly),Report::request_ref::<SpanTrace>
(nightly) instead (#747)Frame::source
: UseFrame::sources
instead (#747)Frame::source_mut
: UseFrame::sources_mut
instead (#747)Report::set_debug_hook
: UseReport::install_debug_hook
instead (#794)Report::set_display_hook
(#794)
- Greatly reduce the amount of
unsafe
code (#774)
0.1.0 - 2022-06-10
- Initial release