Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ path = "src/main.rs"

[dependencies]
chrono = "0.4.38"
const_format = "0.2.35"
diff = "0.1.13"
itoa = "1.0.11"
regex = "1.10.4"
Expand All @@ -26,7 +27,7 @@ unicode-width = "0.2.0"
pretty_assertions = "1.4.0"
assert_cmd = "2.0.14"
predicates = "3.1.0"
tempfile = "3.10.1"
tempfile = "3.26.0"

[profile.release]
lto = "thin"
Expand All @@ -40,3 +41,10 @@ panic = "abort"
[profile.dist]
inherits = "release"
lto = "thin"

[features]
# default = ["cmp_bytes_limit_128_bit"]
# allows to set the --bytes limit from u64 to u128, if limits larger than Exabyte are required.
cmp_bytes_limit_128_bit = []
# instead of limiting to KiB, MiB, etc, one can write kib, mib, Mb or whatever case.
allow_case_insensitive_byte_units = []
5 changes: 2 additions & 3 deletions fuzz/fuzz_targets/fuzz_side.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
#[macro_use]
extern crate libfuzzer_sys;

use diffutilslib::side_diff;
use diffutilslib::side_diff::{self, Params};

use std::fs::File;
use std::io::Write;
use diffutilslib::params::Params;

fuzz_target!(|x: (Vec<u8>, Vec<u8>, /* usize, usize */ bool)| {
let (original, new, /* width, tabsize, */ expand) = x;
Expand Down Expand Up @@ -39,4 +38,4 @@ fuzz_target!(|x: (Vec<u8>, Vec<u8>, /* usize, usize */ bool)| {
.unwrap()
.write_all(&output_buf)
.unwrap();
});
});
Loading
Loading