johannhof / Difference.rs
Licence: mit
Rust text diffing and assertion library
Stars: ✭ 206
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
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
Expdevbadchars
Bad Characters highlighter for exploit development purposes supporting multiple input formats while comparing.
Stars: ✭ 167 (-18.93%)
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
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
Composer Lock Diff
See what has changed after a composer update
Stars: ✭ 154 (-25.24%)
Mutual labels: diff
Htmlsimilarity
网页相似度判断:根据网页结构判断页面相似性 ,可用于相似度计算、越权检测等(Determine page similarity based on HTML page structure)
Stars: ✭ 189 (-8.25%)
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.
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].