github hashintel/hash error-stack@0.2.0

2 years ago

See the blog post on the new release >


What changed?

Breaking Changes

  • Set the MSRV to 1.63 (#944)
  • Use Provider API from core::any (#697)
  • Remove the unused features hooks, futures, and futures-core (#695, #1138)

Features

  • 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 and eyre to convert their types into Report (#763)
  • Implement Termination for Report (#671)
  • Report::set_debug_hook and Report::set_display_hook no longer return an error (#794)

Deprecations

  • IntoReport::report: Use IntoReport::into_report instead (#698)
  • Report::backtrace: Use Report::downcast_ref::<Backtrace> (non-nightly), Report::requested_ref::<Backtrace> (nightly) instead (#747)
  • Report::span_trace: Use Report::downcast_ref::<SpanTrace> (non-nightly), Report::requested_ref::<SpanTrace> (nightly) instead (#747)
  • Frame::source: Use Frame::sources instead (#747)
  • Frame::source_mut: Use Frame::sources_mut instead (#747)
  • Report::set_debug_hook: Use Report::install_debug_hook instead (#794)
  • Report::set_display_hook(#794)

Internal improvements

  • Greatly reduce the amount of unsafe code (#774)

Full Changelog

Don't miss a new hash release

NewReleases is sending notifications on new releases.