KO
|
EN
gitlite — search
Search
#javascript
#python
#hacktoberfest
#react
#ai
#typescript
#llm
#go
#golang
#android
#machine-learning
#rust
#deep-learning
#linux
rediff
★ 13
Open GitHub ↗
A diff+assertion library for Facet types
Download README (.md)
Explore Similar Repositories
mujoco-scene-editor
:
Lightweight, interactive scene editor for MuJoCo 3.x. Create or edit scenes in your browser to place shapes, import meshes, add robots, and edit elements interactively.
AIcode
:
一个嵌入式AICode的skills工程。
E-Learning-
:
No description available.
Vision-Transformer-ViT-for-Image-Classification
:
No description available.
Privileged-Information-Distillation-and-Self-Distillation
:
No description available.
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
rediff
?
Download (.md)
# rediff > [!IMPORTANT] > Rediff has moved to the Facet monorepo: > <https://github.com/facet-rs/facet/tree/main/rediff>. > > Please open future issues and pull requests in > <https://github.com/facet-rs/facet>. This standalone repository is retained > for history and archival purposes. Structural diffing and assertions for [Facet](https://github.com/bearcove/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!` and `assert_sameish!` macros for testing - Multi-format rendering (Rust, JSON, XML styles) - ANSI colored terminal output - Myers' algorithm for sequence diffing ## Installation ```bash cargo add rediff ``` ## Usage ### Assertions in tests ```rust use facet::Facet; use rediff::assert_same; #[derive(Facet)] struct Point { x: i32, y: i32 } let a = Point { x: 10, y: 20 }; let b = Point { x: 10, y: 20 }; assert_same!(a, b); ``` ### Diffing values ```rust use facet::Facet; use rediff::{FacetDiff, format_diff_default}; #[derive(Facet)] struct Config { host: String, port: u16, } let old = Config { host: "localhost".into(), port: 8080 }; let new = Config { host: "localhost".into(), port: 9000 }; let diff = old.diff(&new); println!("{}", format_diff_default(&diff)); ```