Skip to content

v0.13.0

Latest

Choose a tag to compare

@TethysSvensson TethysSvensson released this 14 Jun 17:50
· 11 commits to main since this release
Immutable release. Only release title and notes can be modified.
6666091

Added

  • &dyn Any accessors for contexts and attachments via current_context_as_any(_mut) on Report/ReportRef/ReportMut and inner_as_any(_mut) on ReportAttachment/ReportAttachmentRef/ReportAttachmentMut #151.
  • Added a compatibility module for error-stack v0.7 #169.
  • Implement Deref<Target = dyn Error> and AsRef<dyn Error> for Report, ReportRef and ReportMut; Report<_, _, SendSync> targets dyn Error + Send + Sync. May break type inference at some Report::new* call sites. #147, #149
  • Doc examples for nearly all public functions #136.

Changed

  • Moved the preformat functionality out of rootcause into the new rootcause-preformat companion crate. The preformatted module, the preformat* methods, and the display_preformatted/debug_preformatted formatter-hook methods are removed; use the Preformat*Ext and ContextTransformNestedExt traits from the new crate. AttachmentFormatterHook::preferred_formatting_style and ContextFormatterHook::preferred_context_formatting_style now take a concrete type instead of Dynamic. #148

Fixed

  • Fixed cross-compilation support in rootcause-backtrace by detecting the path separator from Location::caller() at compile time instead of from a build-script-recorded host constant #134.