From 8754478274c4b614865aadf80630fa94325fa16c Mon Sep 17 00:00:00 2001 From: Josh Stoik Date: Mon, 25 Apr 2022 13:33:23 -0700 Subject: [PATCH 1/6] misc: deny unsafe globally, explicitly override where required --- src/lib.rs | 45 ++++++++++++++++++++++++++------------------- 1 file changed, 26 insertions(+), 19 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index c72b85f..30c6726 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -59,25 +59,29 @@ There are currently three styles of callback: */ -#![warn(clippy::filetype_is_file)] -#![warn(clippy::integer_division)] -#![warn(clippy::needless_borrow)] -#![warn(clippy::nursery)] -#![warn(clippy::pedantic)] -#![warn(clippy::perf)] -#![warn(clippy::suboptimal_flops)] -#![warn(clippy::unneeded_field_pattern)] -#![warn(macro_use_extern_crate)] -#![warn(missing_copy_implementations)] -#![warn(missing_debug_implementations)] -#![warn(missing_docs)] -#![warn(non_ascii_idents)] -#![warn(trivial_casts)] -#![warn(trivial_numeric_casts)] -#![warn(unreachable_pub)] -#![warn(unused_crate_dependencies)] -#![warn(unused_extern_crates)] -#![warn(unused_import_braces)] +#![deny(unsafe_code)] + +#![warn( + clippy::filetype_is_file, + clippy::integer_division, + clippy::needless_borrow, + clippy::nursery, + clippy::pedantic, + clippy::perf, + clippy::suboptimal_flops, + clippy::unneeded_field_pattern, + macro_use_extern_crate, + missing_copy_implementations, + missing_debug_implementations, + missing_docs, + non_ascii_idents, + trivial_casts, + trivial_numeric_casts, + unreachable_pub, + unused_crate_dependencies, + unused_extern_crates, + unused_import_braces, +)] #![allow(clippy::module_name_repetitions)] @@ -129,6 +133,9 @@ pub fn analyze(benches: &mut [Bench]) { println!(); } + + +#[allow(unsafe_code)] #[doc(hidden)] /// # Black Box. /// From aba520c08314ef234c8c7a5b4a1a8312fa01d55c Mon Sep 17 00:00:00 2001 From: Josh Stoik Date: Thu, 19 May 2022 10:33:12 -0700 Subject: [PATCH 2/6] lint --- src/bench/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bench/mod.rs b/src/bench/mod.rs index ebaeaab..20dc079 100644 --- a/src/bench/mod.rs +++ b/src/bench/mod.rs @@ -135,14 +135,14 @@ impl Bench { while bench_start.elapsed() < self.limit && data.len() < 4_294_967_295 { // Prepare the batch arguments in advance. let iters = iter_count(&data); - let mut xs = std::iter::repeat(env.clone()) + let xs = std::iter::repeat(env.clone()) .take(iters) .collect::>(); let start = Instant::now(); // There appears to be less overhead from draining a collected Vec // than simply ForEaching the Take directly. - xs.drain(..).for_each(|x| { black_box(cb(x)); }); + for x in xs { black_box(cb(x)); }; data.push((iters, start.elapsed())); } From a55eb9ca1b6777ea2d932e7edbd66b4141ca328a Mon Sep 17 00:00:00 2001 From: Josh Stoik Date: Thu, 26 May 2022 19:42:09 -0700 Subject: [PATCH 3/6] cleanup: remove unused exclude --- Cargo.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index fbd90fe..021e274 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,6 @@ exclude = [ ".github", ".gitignore", ".righteous-sandbox.json", - "about.toml", "doc", "justfile", "release", From 65f058c95310c949b1e431f21569f3aad0aab83a Mon Sep 17 00:00:00 2001 From: Josh Stoik Date: Mon, 6 Jun 2022 22:01:08 -0700 Subject: [PATCH 4/6] bump: msrv 1.61 --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 021e274..6b02c2d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ name = "brunch" version = "0.2.5" authors = ["Blobfolio, LLC. "] edition = "2021" -rust-version = "1.56" +rust-version = "1.61" description = "A simple micro-benchmark runner." license = "WTFPL" repository = "https://github.com/Blobfolio/brunch" From c0845431c4c6328e131c99d3ed83ae99967ce14b Mon Sep 17 00:00:00 2001 From: Josh Stoik Date: Sat, 18 Jun 2022 13:49:50 -0700 Subject: [PATCH 5/6] bump: dactyl 0.4 --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 6b02c2d..725c64f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -27,7 +27,7 @@ man-dir = "./" credits-dir = "./" [dependencies] -dactyl = "0.3.*" +dactyl = "0.4.*" serde_json = "1.0.*" [dependencies.num-traits] From 620b2725ba709465d1a15792e9597737815df4a3 Mon Sep 17 00:00:00 2001 From: Josh Stoik Date: Sat, 18 Jun 2022 13:51:38 -0700 Subject: [PATCH 6/6] bump: 0.2.6 --- CHANGELOG.md | 8 ++++++++ CREDITS.md | 24 ++++++++++++------------ Cargo.toml | 2 +- 3 files changed, 21 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 84f7684..0b4bdc9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,14 @@ # Changelog +## [0.2.6](https://github.com/Blobfolio/brunch/releases/tag/v0.2.6) - 2022-04-12 + +### Misc + +* Update dependencies; + + + ## [0.2.5](https://github.com/Blobfolio/brunch/releases/tag/v0.2.5) - 2022-04-12 ### Fixed diff --git a/CREDITS.md b/CREDITS.md index 1818d9f..e6e44a7 100644 --- a/CREDITS.md +++ b/CREDITS.md @@ -1,18 +1,18 @@ # Project Dependencies Package: brunch - Version: 0.2.5 - Generated: 2022-04-14 18:14:24 UTC + Version: 0.2.6 + Generated: 2022-06-18 20:51:48 UTC | Package | Version | Author(s) | License | | ---- | ---- | ---- | ---- | -| [dactyl](https://github.com/Blobfolio/dactyl) | 0.3.3 | [Blobfolio, LLC.](mailto:hello@blobfolio.com) | WTFPL | -| [itoa](https://github.com/dtolnay/itoa) | 1.0.1 | [David Tolnay](mailto:dtolnay@gmail.com) | Apache-2.0 or MIT | -| [num-traits](https://github.com/rust-num/num-traits) | 0.2.14 | The Rust Project Developers | Apache-2.0 or MIT | -| [proc-macro2](https://github.com/dtolnay/proc-macro2) | 1.0.37 | [David Tolnay](mailto:dtolnay@gmail.com) and [Alex Crichton](mailto:alex@alexcrichton.com) | Apache-2.0 or MIT | +| [dactyl](https://github.com/Blobfolio/dactyl) | 0.4.0 | [Blobfolio, LLC.](mailto:hello@blobfolio.com) | WTFPL | +| [itoa](https://github.com/dtolnay/itoa) | 1.0.2 | [David Tolnay](mailto:dtolnay@gmail.com) | Apache-2.0 or MIT | +| [num-traits](https://github.com/rust-num/num-traits) | 0.2.15 | The Rust Project Developers | Apache-2.0 or MIT | +| [proc-macro2](https://github.com/dtolnay/proc-macro2) | 1.0.39 | [David Tolnay](mailto:dtolnay@gmail.com) and [Alex Crichton](mailto:alex@alexcrichton.com) | Apache-2.0 or MIT | | [quote](https://github.com/dtolnay/quote) | 1.0.18 | [David Tolnay](mailto:dtolnay@gmail.com) | Apache-2.0 or MIT | -| [ryu](https://github.com/dtolnay/ryu) | 1.0.9 | [David Tolnay](mailto:dtolnay@gmail.com) | Apache-2.0 or BSL-1.0 | -| [serde](https://github.com/serde-rs/serde) | 1.0.136 | [Erick Tryzelaar](mailto:erick.tryzelaar@gmail.com) and [David Tolnay](mailto:dtolnay@gmail.com) | Apache-2.0 or MIT | -| [serde_derive](https://github.com/serde-rs/serde) | 1.0.136 | [Erick Tryzelaar](mailto:erick.tryzelaar@gmail.com) and [David Tolnay](mailto:dtolnay@gmail.com) | Apache-2.0 or MIT | -| [serde_json](https://github.com/serde-rs/json) | 1.0.79 | [Erick Tryzelaar](mailto:erick.tryzelaar@gmail.com) and [David Tolnay](mailto:dtolnay@gmail.com) | Apache-2.0 or MIT | -| [syn](https://github.com/dtolnay/syn) | 1.0.91 | [David Tolnay](mailto:dtolnay@gmail.com) | Apache-2.0 or MIT | -| [unicode-xid](https://github.com/unicode-rs/unicode-xid) | 0.2.2 | [erick.tryzelaar](mailto:erick.tryzelaar@gmail.com), [kwantam](mailto:kwantam@gmail.com), and [Manish Goregaokar](mailto:manishsmail@gmail.com) | Apache-2.0 or MIT | +| [ryu](https://github.com/dtolnay/ryu) | 1.0.10 | [David Tolnay](mailto:dtolnay@gmail.com) | Apache-2.0 or BSL-1.0 | +| [serde](https://github.com/serde-rs/serde) | 1.0.137 | [Erick Tryzelaar](mailto:erick.tryzelaar@gmail.com) and [David Tolnay](mailto:dtolnay@gmail.com) | Apache-2.0 or MIT | +| [serde_derive](https://github.com/serde-rs/serde) | 1.0.137 | [Erick Tryzelaar](mailto:erick.tryzelaar@gmail.com) and [David Tolnay](mailto:dtolnay@gmail.com) | Apache-2.0 or MIT | +| [serde_json](https://github.com/serde-rs/json) | 1.0.81 | [Erick Tryzelaar](mailto:erick.tryzelaar@gmail.com) and [David Tolnay](mailto:dtolnay@gmail.com) | Apache-2.0 or MIT | +| [syn](https://github.com/dtolnay/syn) | 1.0.97 | [David Tolnay](mailto:dtolnay@gmail.com) | Apache-2.0 or MIT | +| [unicode-ident](https://github.com/dtolnay/unicode-ident) | 1.0.1 | [David Tolnay](mailto:dtolnay@gmail.com) | Apache-2.0 or MIT | diff --git a/Cargo.toml b/Cargo.toml index 725c64f..8e9d2ea 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "brunch" -version = "0.2.5" +version = "0.2.6" authors = ["Blobfolio, LLC. "] edition = "2021" rust-version = "1.61"