#iota #tangle #identity

identity-diff

Diff trait to compute and merge data structure differences

12 releases

0.7.0-alpha.6 Mar 3, 2023
0.7.0-alpha.4 Nov 24, 2022
0.6.3 Aug 17, 2023
0.6.2 Mar 9, 2023
0.6.1 Jun 30, 2022

#4 in #tangle

Download history 99/week @ 2023-07-28 90/week @ 2023-08-04 132/week @ 2023-08-11 64/week @ 2023-08-18 50/week @ 2023-08-25 50/week @ 2023-09-01 68/week @ 2023-09-08 52/week @ 2023-09-15 20/week @ 2023-09-22 65/week @ 2023-09-29 33/week @ 2023-10-06 35/week @ 2023-10-13 43/week @ 2023-10-20 52/week @ 2023-10-27 41/week @ 2023-11-03 48/week @ 2023-11-10

191 downloads per month

Apache-2.0

39KB
1K SLoC

IOTA Identity - Diff

This module implements a Diff trait. This gives data structures the ability to compare themselves to another data structure of the same type over time. The library pairs off with identity_diff_derive, which implements a derive macro for the Diff Trait.

Types supported include HashMap, Option, String, serde_json::Value, Vec and primitives such as i8/u8 up to usize and isize, as well as the unit type (), bool, and char types. Structs and Enums are supported via identity_diff_derive and can be composed of any number of these types.

Dependencies

~1.4–2MB
~46K SLoC