SkillAgentSearch skills...

Difference.rs

Rust text diffing and assertion library

Install / Use

/learn @johannhof/Difference.rs
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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
View on GitHub
GitHub Stars263
CategoryDevelopment
Updated29d ago
Forks34

Languages

Rust

Security Score

100/100

Audited on Mar 7, 2026

No findings