#instance #diff #calculate #difference #derive #serde #diffogus

macro diffogus_derive

Rust crate to calculate the difference between 2 instances of a type

5 unstable releases

0.3.0 Nov 6, 2024
0.2.0 Oct 25, 2024
0.1.2 Oct 25, 2024
0.1.1 Oct 24, 2024
0.1.0 Oct 24, 2024

#90 in #difference

Download history 68/week @ 2024-10-18 231/week @ 2024-10-25 92/week @ 2024-11-01 31/week @ 2024-11-08 12/week @ 2024-11-15 5/week @ 2024-11-22

143 downloads per month
Used in diffogus

MIT license

7KB
127 lines

diffogus

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)]
  • Serialize your diffs with serde feature flag

lib.rs:

diffogus_derive

This crate provides a derive macro to help users implement diffing for their types

Dependencies

~305–760KB
~17K SLoC