From 08a3a79caf2b8fae37faf52b211bd471296f8b1a Mon Sep 17 00:00:00 2001 From: Pavel Ivanov Date: Sun, 17 Dec 2023 00:04:27 +0100 Subject: [PATCH] fix: benchmarks build fixed --- Cargo.lock | 17 ++++------------- Cargo.toml | 2 +- benches/parse-and-format.rs | 7 ++++--- 3 files changed, 9 insertions(+), 17 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 3ca6b4bb..c321578b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -424,7 +424,7 @@ dependencies = [ "clap", "criterion-plot", "is-terminal", - "itertools 0.10.5", + "itertools", "num-traits", "once_cell", "oorandom", @@ -445,7 +445,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6b50826342786a51a89e2da3a28f1c32b06e387201bc2d19791f622c673706b1" dependencies = [ "cast", - "itertools 0.10.5", + "itertools", ] [[package]] @@ -718,7 +718,7 @@ checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" [[package]] name = "hl" -version = "0.23.1" +version = "0.23.2" dependencies = [ "atoi", "bincode", @@ -745,7 +745,7 @@ dependencies = [ "hex", "htp", "humantime", - "itertools 0.12.0", + "itertools", "itoa", "kqueue", "notify", @@ -858,15 +858,6 @@ dependencies = [ "either", ] -[[package]] -name = "itertools" -version = "0.12.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25db6b064527c5d482d0423354fcd07a89a2dfe07b67892e62411946db7f07b0" -dependencies = [ - "either", -] - [[package]] name = "itoa" version = "1.0.10" diff --git a/Cargo.toml b/Cargo.toml index 5fcdaaf0..fca87dec 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ categories = ["command-line-utilities"] description = "Utility for viewing json-formatted log files." keywords = ["cli", "human", "log"] name = "hl" -version = "0.23.1" +version = "0.23.2" edition = "2021" build = "build.rs" diff --git a/benches/parse-and-format.rs b/benches/parse-and-format.rs index 6e7209dd..990b900e 100644 --- a/benches/parse-and-format.rs +++ b/benches/parse-and-format.rs @@ -8,8 +8,9 @@ use criterion::{criterion_group, criterion_main, Criterion}; // local imports use hl::{ - app::RecordIgnorer, settings, timezone::Tz, DateTimeFormatter, Filter, IncludeExcludeKeyFilter, LinuxDateFormat, - Parser, ParserSettings, RecordFormatter, SegmentProcessor, Settings, Theme, + app::RecordIgnorer, app::SegmentProcess, settings, timezone::Tz, DateTimeFormatter, Filter, + IncludeExcludeKeyFilter, LinuxDateFormat, Parser, ParserSettings, RecordFormatter, SegmentProcessor, Settings, + Theme, }; // --- @@ -32,7 +33,7 @@ fn benchmark(c: &mut Criterion) { settings::Formatting::default(), ); let filter = Filter::default(); - let mut processor = SegmentProcessor::new(&parser, &formatter, &filter); + let mut processor = SegmentProcessor::new(&parser, &formatter, &filter, false); let mut buf = Vec::new(); b.iter(|| { processor.run(record, &mut buf, "", &mut RecordIgnorer {});