structdiff

zero-dependency rust crate for generating and applying partial diffs between struct instances

APACHE-2.0 License

Downloads
13.6K
Stars
22
Committers
1

Bot releases are visible (Hide)

structdiff - v0.6.3 Latest Release

Published by knickish 7 months ago

Changes in this release:

  • Added the ordered_array_like collection strategy, which uses levenshtein distance to create changesets for ordered collections
  • Fixed a case where generated setters would not update the base struct when combined with a collection strategy
structdiff - v0.6.2

Published by knickish 8 months ago

This release adds two changes to increase performance of diffing collections:

  • size hints are used internally to decrease amount of time spent allocating (~5-8% faster according to in-repo benchmarks)
  • rustc_hash is added as a (feature gated) dependency for cases where a non-cryptographic hash is acceptable (~50-60% faster according to in-repo benchmarks)