Registry / utility / prettydiff

prettydiff

JSON →
library0.9.0rscratesunverified

A Rust library for computing and displaying side-by-side diffs between two files.

# Cargo.toml [dependencies] prettydiff = "0.9.0"
INSTALL
IMPORT
SIG · PRETTYDIFF
P
prettydiff
utilityrustv0.9.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

diff
use prettydiff::diff;

Compute and print a side-by-side diff of two strings.

use prettydiff::diff; fn main() { let a = "hello\nworld"; let b = "hello\nrust"; let d = diff(a, b); println!("{}", d); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.9.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
prettydiff — cargo add prettydiff · libregistry