All Projects → johannhof → Difference.rs

johannhof / Difference.rs

Licence: mit
Rust text diffing and assertion library

Programming Languages

rust
11053 projects

Labels

Projects that are alternatives of or similar to Difference.rs

Deepdiff
🦀Amazingly incredible extraordinary lightning fast diffing in Swift
Stars: ✭ 1,995 (+868.45%)
Mutual labels:  diff
Emacs Vdiff
Like vimdiff for Emacs
Stars: ✭ 165 (-19.9%)
Mutual labels:  diff
Vim Mergetool
🍰 Efficient way of using Vim as a Git mergetool
Stars: ✭ 179 (-13.11%)
Mutual labels:  diff
Graphtage
A semantic diff utility and library for tree-like files such as JSON, JSON5, XML, HTML, YAML, and CSV.
Stars: ✭ 2,062 (+900.97%)
Mutual labels:  diff
Waldo
Find differences between R objects
Stars: ✭ 165 (-19.9%)
Mutual labels:  diff
Expdevbadchars
Bad Characters highlighter for exploit development purposes supporting multiple input formats while comparing.
Stars: ✭ 167 (-18.93%)
Mutual labels:  diff
Dwifft
Swift Diff
Stars: ✭ 1,822 (+784.47%)
Mutual labels:  diff
Split Diff
Side-by-side file compare for the Atom text editor.
Stars: ✭ 188 (-8.74%)
Mutual labels:  diff
Nbdime
Tools for diffing and merging of Jupyter notebooks.
Stars: ✭ 2,135 (+936.41%)
Mutual labels:  diff
Delta
Delta is a command-line diff tool implemented in Go.
Stars: ✭ 178 (-13.59%)
Mutual labels:  diff
Swagger Diff
🎿 Compare two swagger API specifications(1.x or v2.0)
Stars: ✭ 161 (-21.84%)
Mutual labels:  diff
Textdistance
Compute distance between sequences. 30+ algorithms, pure python implementation, common interface, optional external libs usage.
Stars: ✭ 2,575 (+1150%)
Mutual labels:  diff
Mirrordiffkit
Graduation from messy XCTAssertEqual messages.
Stars: ✭ 168 (-18.45%)
Mutual labels:  diff
Coveragechecker
Allows old code to use new standards
Stars: ✭ 159 (-22.82%)
Mutual labels:  diff
Dtl
diff template library written by C++
Stars: ✭ 180 (-12.62%)
Mutual labels:  diff
Composer Lock Diff
See what has changed after a composer update
Stars: ✭ 154 (-25.24%)
Mutual labels:  diff
Nytdiff
Code for the twitter bot nyt_diff
Stars: ✭ 166 (-19.42%)
Mutual labels:  diff
Htmlsimilarity
网页相似度判断:根据网页结构判断页面相似性 ,可用于相似度计算、越权检测等(Determine page similarity based on HTML page structure)
Stars: ✭ 189 (-8.25%)
Mutual labels:  diff
Diffobj
Compare R Objects with a Diff
Stars: ✭ 188 (-8.74%)
Mutual labels:  diff
Docker Osm
A docker compose project to setup an OSM PostGIS database with automatic updates from OSM periodically
Stars: ✭ 172 (-16.5%)
Mutual labels:  diff

difference.rs

A Rust text diffing library with built-in diffing assertion.

Documentation

Examples

use difference::Changeset;

let changeset = Changeset::new("test", "tent", "");

assert_eq!(changeset.diffs, vec![
  Difference::Same("te".to_string()),
  Difference::Rem("s".to_string()),
  Difference::Add("n".to_string()),
  Difference::Same("t".to_string())
]);

Usage

Add the following to your Cargo.toml:

[dependencies]
difference = "2.0"

Now you can use the crate in your code

extern crate difference;

Using the binary

difference can also be used as a command-line application. The best way to install it is using:

$ cargo install --features=bin
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].