Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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