https://github.com/funlennysub/diffogus
Rust crate to calculate the difference between 2 instances of a type
https://github.com/funlennysub/diffogus
diffing rust serde
Last synced: 7 months ago
JSON representation
Rust crate to calculate the difference between 2 instances of a type
- Host: GitHub
- URL: https://github.com/funlennysub/diffogus
- Owner: funlennysub
- License: mit
- Created: 2024-10-20T14:05:01.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-10-25T21:32:30.000Z (9 months ago)
- Last Synced: 2024-10-26T22:15:26.420Z (9 months ago)
- Topics: diffing, rust, serde
- Language: Rust
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# diffogus
[](https://docs.rs/diffogus/)
[](https://crates.io/crates/diffogus)
[](https://github.com/funlennysub/diffogus/actions/workflows/ci.yml)
[](LICENSE)Rust crate to calculate the difference between 2 instances of the same type
# Features
- Simple diff of basic rust types
- All integer types
- All floats
- Vectors of elements that implement `Diffable`
- HashMaps where value implements `Diffable`
- Options of types that implement `Diffable`
- Diff between 2 instances of a struct that implements `Diffable`
- Implemented manually or with `#[derive(Diff)]`
- ⚠️ Currently only structs with named fields are supported
- Serialize your diffs with `serde` feature flag