5 个版本

0.2.1 2021 年 2 月 25 日
0.2.0 2021 年 2 月 25 日
0.1.2 2021 年 2 月 25 日
0.1.1 2021 年 2 月 24 日
0.1.0 2021 年 2 月 24 日

#1009 in 开发工具

Download history 6936/week @ 2024-03-14 7222/week @ 2024-03-21 5888/week @ 2024-03-28 6274/week @ 2024-04-04 6824/week @ 2024-04-11 6696/week @ 2024-04-18 5745/week @ 2024-04-25 5825/week @ 2024-05-02 5362/week @ 2024-05-09 6012/week @ 2024-05-16 6556/week @ 2024-05-23 5834/week @ 2024-05-30 6341/week @ 2024-06-06 6374/week @ 2024-06-13 6181/week @ 2024-06-20 4878/week @ 2024-06-27

24,919 每月下载量
用于 3 crates

MIT/Apache 许可协议

40KB
704

GNU 统一 diff 生成器。通过 Oracle 与 GNU patch 2.7.6 进行测试

基于 https://github.com/rust-lang/rust/blob/master/src/tools/compiletest/src/runtest.rs 中的不完整的 diff 生成器,但实现了不同的格式。

~/unified-diff$ cargo run Cargo.lock Cargo.toml 
    Finished dev [unoptimized + debuginfo] target(s) in 0.00s
     Running `target/debug/unified-diff Cargo.lock Cargo.toml`
--- Cargo.lock	
+++ Cargo.toml	
@@ -1,14 +1,14 @@
-# This file is automatically @generated by Cargo.
-# It is not intended for manual editing.
-[[package]]
-name = "diff"
-version = "0.1.12"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0e25ea47919b1560c4e3b7fe0aaab9becf5b84a10325ddf7db0f0ba5e1026499"
-
-[[package]]
+[package]
 name = "unified-diff"
 version = "0.1.0"
-dependencies = [
- "diff",
+authors = [
+    "Michael Howell <[email protected]>",
+    "The Rust Project Developers"
 ]
+edition = "2018"
+
+[[bin]]
+name = "unified-diff"
+
+[dependencies]
+diff = "0.1.10"
~/unified-diff$ rustup override set nightly
~/unified-diff$ cargo fuzz run fuzz_patch

依赖项

~45KB