Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 17 days 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 (2 months ago)
- Default Branch: master
- Last Pushed: 2024-10-25T21:32:30.000Z (2 months ago)
- Last Synced: 2024-10-26T22:15:26.420Z (2 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
[![Documentation](https://docs.rs/diffogus/badge.svg)](https://docs.rs/diffogus/)
[![Crates.io](https://img.shields.io/crates/v/diffogus.svg)](https://crates.io/crates/diffogus)
[![Build status](https://github.com/funlennysub/diffogus/workflows/CI/badge.svg)](https://github.com/funlennysub/diffogus/actions/workflows/ci.yml)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](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