Skip to content

v0.6.0

Choose a tag to compare

@lpotthast lpotthast released this 30 Apr 15:56
· 38 commits to main since this release

Added

  • #[assertr_eq(compare_bounds = "...")] for AssertrEq fields using custom compare_with functions, letting the
    derive macro stay agnostic about the comparison's trait bounds.

Changed

  • Breaking: Assertion traits now route diagnostics through an AssertionRenderer<T> (new type state on
    AssertThat, defaulting to DebugRenderer) instead of requiring T: Debug. Use .with_renderer(...) or
    .with_debug_format(...) to render non-Debug values. Some traits gained additional generics, notably
    HashSetAssertions and HashMapAssertions now carry the hasher typeS.
  • Breaking: Generated AssertrEq matcher structs now use a custom Debug implementation that prints
    <unrendered> for fields whose type does not implement Debug.

Fixed

  • AssertrEq no longer emits renderer bounds for private fields, matching how those fields are excluded from
    comparison.
  • Collection comparisons (AssertrPartialEq for slices and maps) now use the active assertion renderer instead of
    always falling back to DebugRenderer.