rediff
Structural diffing and assertions for Facet types.
Compare any Facet-derived type without requiring PartialEq - rediff uses reflection to compare values structurally and produce detailed, colorized diff output.
Features
- Structural comparison without
PartialEq - Pretty
assert_same!andassert_sameish!macros for testing - Multi-format rendering (Rust, JSON, XML styles)
- ANSI colored terminal output
- Myers' algorithm for sequence diffing
Installation
Usage
Assertions in tests
use Facet;
use assert_same;
let a = Point ;
let b = Point ;
assert_same!;
Diffing values
use Facet;
use ;
let old = Config ;
let new = Config ;
let diff = old.diff;
println!;