#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

new 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

#84 in #difference

Download history 287/week @ 2024-10-21 23/week @ 2024-10-28

310 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

~325–780KB
~18K SLoC