Drop-in replacement of diffutils in Rust
Repo uutils/diffutils, read from GitHub 2 d ago. uutils has not joined Take My Repo.
We are happy to announce the release of Rust Diffutils 0.6.0 - a release focused on output compatibility, cmp on large files and project infrastructure.
On the diff side, three output formats moved closer to GNU: unified and context hunks are now merged when they are separated by up to twice the context size, the context format marks every line of a change block with !, and the side-by-side (-y) gutter marker sits in the middle of the gutter. These are small differences on screen, but they are exactly what makes a generated patch differ byte for byte from the one GNU produces.
cmp got faster and more capable: verbose byte printing no longer allocates (about 2.3x faster than before on large, completely different files), and --bytes / --ignore-initial are now 64-bit everywhere, so 32-bit systems can compare files beyond 4 GiB like GNU cmp does with large file support.
Around the code, the project grew up a lot this cycle: we now run the upstream GNU diffutils test suite in CI and track its results on every pull request, we have Divan benchmarks tracked by CodSpeed, a security audit workflow, a SECURITY.md, pre-commit hooks, and a wasm32-wasip1 build in CI.
We are now at 7 passing, 22 failing, 4 skipped on the GNU test suite.
| Result | 0.6.0 | % Total 0.6.0 |
|---|---|---|
| Pass | 7 | 21.21% |
| Skip | 4 | 12.12% |
| Fail | 22 | 66.67% |
| Error | 0 | 0% |
| Total | 33 |
Note: this is the first release with GNU test suite tracking (#217), so there is no 0.5.0 baseline to compare against. Many of the failing tests exercise options that are not implemented yet; they give us a clear list of what to work on next. The evolution is now tracked in uutils/diffutils-tracking, refreshed twice a day.
| File | Platform | Checksum |
|---|---|---|
| diffutils-aarch64-apple-darwin.tar.xz | Apple Silicon macOS | checksum |
| diffutils-x86_64-apple-darwin.tar.xz | Intel macOS | checksum |
| diffutils-x86_64-pc-windows-msvc.zip | x64 Windows | checksum |
| diffutils-aarch64-unknown-linux-gnu.tar.xz | ARM64 Linux | checksum |
| diffutils-x86_64-unknown-linux-gnu.tar.xz | x64 Linux | checksum |
diff Output Compatibility
cmp Improvements
GNU Compatibility & Robustness
Testing & Benchmarking
Platform & Security
Contributions: This release landed 92 pull requests from 13 new contributors
Help us improve compatibility - Pick a failing GNU test and send a PR: github.com/uutils/diffutils
Sponsor us on GitHub to accelerate development: github.com/sponsors/uutils
.pre-commit-config.yaml by @cakebaker in #227compare_test_results.py executable by commit: 5a933d7
| File | Platform | Checksum |
|---|---|---|
| diffutils-aarch64-apple-darwin.tar.xz | Apple Silicon macOS | checksum |
| diffutils-x86_64-apple-darwin.tar.xz | Intel macOS | checksum |
| diffutils-x86_64-pc-windows-msvc.zip | x64 Windows | checksum |
| diffutils-aarch64-unknown-linux-gnu.tar.xz | ARM64 Linux | checksum |
| diffutils-x86_64-unknown-linux-gnu.tar.xz | x64 Linux | checksum |
CARGO_FEATURES_OPTION by @cakebaker in #106unnecessary_unwrap lint by @cakebaker in #125| File | Platform | Checksum |
|---|---|---|
| diffutils-aarch64-apple-darwin.tar.xz | Apple Silicon macOS | checksum |
| diffutils-x86_64-apple-darwin.tar.xz | Intel macOS | checksum |
| diffutils-x86_64-pc-windows-msvc.zip | x64 Windows | checksum |
| diffutils-x86_64-unknown-linux-gnu.tar.xz | x64 Linux | checksum |
Full Changelog: v0.4.1...v0.4.2
| File | Platform | Checksum |
|---|---|---|
| diffutils-aarch64-apple-darwin.tar.xz | Apple Silicon macOS | checksum |
| diffutils-x86_64-apple-darwin.tar.xz | Intel macOS | checksum |
| diffutils-x86_64-pc-windows-msvc.zip | x64 Windows | checksum |
| diffutils-x86_64-unknown-linux-gnu.tar.xz | x64 Linux | checksum |
Full Changelog: v0.4.0...v0.4.1
| File | Platform | Checksum |
|---|---|---|
| diffutils-aarch64-apple-darwin.tar.xz | Apple Silicon macOS | checksum |
| diffutils-x86_64-apple-darwin.tar.xz | Intel macOS | checksum |
| diffutils-x86_64-pc-windows-msvc.zip | x64 Windows | checksum |
| diffutils-x86_64-unknown-linux-gnu.tar.xz | x64 Linux | checksum |
-t/--expand-tabs option (fixes #26) and --tabsize=NUM option (fixes #27) by @oSoMoN in #28ed by @cakebaker in #50Full Changelog: v0.3.0...v0.4.0