File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ description = "A CLI app for generating diff files"
66license = " MIT OR Apache-2.0"
77repository = " https://github.com/notriddle/diffutils"
88
9+ [lib ]
10+ name = " diffutils"
11+ path = " src/lib.rs"
12+
913[[bin ]]
1014name = " diffutils"
1115path = " src/main.rs"
File renamed without changes.
Original file line number Diff line number Diff line change @@ -10,9 +10,7 @@ cargo-fuzz = true
1010
1111[dependencies ]
1212libfuzzer-sys = " 0.3"
13-
14- [dependencies .unified-diff ]
15- path = " .."
13+ diffutils = { path = " ../" }
1614
1715# Prevent this from interfering with workspaces
1816[workspace ]
@@ -24,3 +22,17 @@ path = "fuzz_targets/fuzz_patch.rs"
2422test = false
2523doc = false
2624
25+ [[bin ]]
26+ name = " fuzz_normal"
27+ path = " fuzz_targets/fuzz_normal.rs"
28+ test = false
29+ doc = false
30+
31+
32+ [[bin ]]
33+ name = " fuzz_ed"
34+ path = " fuzz_targets/fuzz_ed.rs"
35+ test = false
36+ doc = false
37+
38+
Original file line number Diff line number Diff line change 11#![ no_main]
22#[ macro_use]
33extern crate libfuzzer_sys;
4- extern crate ed_diff;
5-
4+ use diffutils:: { unified_diff, ed_diff, normal_diff} ;
65use std:: fs:: { self , File } ;
76use std:: io:: Write ;
87use std:: process:: Command ;
Original file line number Diff line number Diff line change 11#![ no_main]
22#[ macro_use]
33extern crate libfuzzer_sys;
4- extern crate normal_diff;
4+ use diffutils :: { unified_diff , normal_diff} ;
55
66use std:: fs:: { self , File } ;
77use std:: io:: Write ;
Original file line number Diff line number Diff line change 11#![ no_main]
22#[ macro_use]
33extern crate libfuzzer_sys;
4- extern crate unified_diff;
5-
4+ use diffutils:: { unified_diff, normal_diff} ;
65use std:: fs:: { self , File } ;
76use std:: io:: Write ;
87use std:: process:: Command ;
Original file line number Diff line number Diff line change 33name = " normal-diff-fuzz"
44version = " 0.0.0"
55publish = false
6- edition = " 2018 "
6+ edition = " 2021 "
77
88[package .metadata ]
99cargo-fuzz = true
1010
1111[dependencies ]
1212libfuzzer-sys = " 0.3"
1313
14- [dependencies .normal-diff ]
15- path = " .."
16-
1714# Prevent this from interfering with workspaces
1815[workspace ]
1916members = [" ." ]
20-
21- [[bin ]]
22- name = " fuzz_patch"
23- path = " fuzz_targets/fuzz_patch.rs"
24- test = false
25- doc = false
26-
Original file line number Diff line number Diff line change 1+
2+ pub mod unified_diff;
3+ pub mod normal_diff;
4+ pub mod ed_diff;
5+ pub mod context_diff;
6+
7+ // Re-export the public functions/types you need
8+ pub use unified_diff:: diff as unified_diff;
9+ pub use normal_diff:: diff as normal_diff;
10+ pub use ed_diff:: diff as ed_diff;
11+ pub use context_diff:: diff as context_diff;
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ use std::env;
99use std:: fs;
1010use std:: io:: { self , Write } ;
1111
12+
1213mod params;
1314mod normal_diff;
1415mod unified_diff;
You can’t perform that action at this time.
0 commit comments