dmp

Crates.iodmp
lib.rsdmp
version0.2.0
sourcesrc
created_at2022-01-27 16:25:53.897959
updated_at2023-05-19 10:07:07.82224
descriptionA high-performance library in that manipulates plain text
homepagehttps://github.com/surrealdb/dmp
repositoryhttps://github.com/surrealdb/dmp
max_upload_size
id522620
size124,564
Tobie Morgan Hitchcock (tobiemh)

documentation

README

dmp

The Diff Match and Patch libraries offer robust algorithms to perform the operations required for synchronising plain text. This repository contains a Rust version of the original diff-match-patch library, using up-to-date crate packages.

docs.rs Crates.io

Features

  • Diffing and patching library for plain text
  • Retrieve differences between two blocks of text
  • Create a set of patches for converting a block of text into another
  • Apply a set of patches onto a block of text to convert it to another block of text
  • Uses best-effort to apply patch even when the underlying text doesn't fully match.

Fuzzing

A fuzzer is provided as a sanity-check:

RUST_BACKTRACE=1 cargo fuzz run fuzz

Original

This code is forked originally from diff_match_patch.rs, licensed under the MIT license.

Commit count: 21

cargo fmt