difflib
Run this command in a terminal, in your project's directory:
cargo add --dev difflib
to add it a dev dependency (if it's used only in tests, not in the final product). To add it as a regular run-time dependency, run:
cargo add difflib
To add it manually, edit your project's Cargo.toml file and add to the [dependencies] section:
Cargo.toml
[dependencies]
difflib = "0.4.0"
The difflib library will be automatically available globally. Read the difflib library documentation.
Back to the crate overview.