Skip to main content

max / pter

Bump criterion to 0.8 Dev-dependency only. criterion::black_box is deprecated in favour of std::hint::black_box; switching the import covers the call sites. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Author: Max Johnson <me@maxj.phd> · 2026-07-20 19:59 UTC
Commit: c5fd9e111004fbadeecad26815ff755a8c410c03
Parent: 44ac54c
3 files changed, +74 insertions, -28 deletions
M Cargo.lock +71 -26
@@ -12,6 +12,15 @@ dependencies = [
12 12 ]
13 13
14 14 [[package]]
15 + name = "alloca"
16 + version = "0.4.0"
17 + source = "registry+https://github.com/rust-lang/crates.io-index"
18 + checksum = "e5a7d05ea6aea7e9e64d25b9156ba2fee3fdd659e34e41063cd2fc7cd020d7f4"
19 + dependencies = [
20 + "cc",
21 + ]
22 +
23 + [[package]]
15 24 name = "anes"
16 25 version = "0.1.6"
17 26 source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -69,6 +78,16 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
69 78 checksum = "37b2a672a2cb129a2e41c10b1224bb368f9f37a2b16b612598138befd7b37eb5"
70 79
71 80 [[package]]
81 + name = "cc"
82 + version = "1.3.0"
83 + source = "registry+https://github.com/rust-lang/crates.io-index"
84 + checksum = "c89588d05638b5b4594a3348a2d6c20277e43a7f5c5202b05cc56888475a47b8"
85 + dependencies = [
86 + "find-msvc-tools",
87 + "shlex",
88 + ]
89 +
90 + [[package]]
72 91 name = "cfg-if"
73 92 version = "1.0.4"
74 93 source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -128,25 +147,24 @@ checksum = "c8d4a3bb8b1e0c1050499d1815f5ab16d04f0959b233085fb31653fbfc9d98f9"
128 147
129 148 [[package]]
130 149 name = "criterion"
131 - version = "0.5.1"
150 + version = "0.8.2"
132 151 source = "registry+https://github.com/rust-lang/crates.io-index"
133 - checksum = "f2b12d017a929603d80db1831cd3a24082f8137ce19c69e6447f54f5fc8d692f"
152 + checksum = "950046b2aa2492f9a536f5f4f9a3de7b9e2476e575e05bd6c333371add4d98f3"
134 153 dependencies = [
154 + "alloca",
135 155 "anes",
136 156 "cast",
137 157 "ciborium",
138 158 "clap",
139 159 "criterion-plot",
140 - "is-terminal",
141 160 "itertools",
142 161 "num-traits",
143 - "once_cell",
144 162 "oorandom",
163 + "page_size",
145 164 "plotters",
146 165 "rayon",
147 166 "regex",
148 167 "serde",
149 - "serde_derive",
150 168 "serde_json",
151 169 "tinytemplate",
152 170 "walkdir",
@@ -154,9 +172,9 @@ dependencies = [
154 172
155 173 [[package]]
156 174 name = "criterion-plot"
157 - version = "0.5.0"
175 + version = "0.8.2"
158 176 source = "registry+https://github.com/rust-lang/crates.io-index"
159 - checksum = "6b50826342786a51a89e2da3a28f1c32b06e387201bc2d19791f622c673706b1"
177 + checksum = "d8d80a2f4f5b554395e47b5d8305bc3d27813bacb73493eb1001e8f76dae29ea"
160 178 dependencies = [
161 179 "cast",
162 180 "itertools",
@@ -287,6 +305,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
287 305 checksum = "9f1f227452a390804cdb637b74a86990f2a7d7ba4b7d5693aac9b4dd6defd8d6"
288 306
289 307 [[package]]
308 + name = "find-msvc-tools"
309 + version = "0.1.9"
310 + source = "registry+https://github.com/rust-lang/crates.io-index"
311 + checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582"
312 +
313 + [[package]]
290 314 name = "fnv"
291 315 version = "1.0.7"
292 316 source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -389,12 +413,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
389 413 checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
390 414
391 415 [[package]]
392 - name = "hermit-abi"
393 - version = "0.5.2"
394 - source = "registry+https://github.com/rust-lang/crates.io-index"
395 - checksum = "fc0fef456e4baa96da950455cd02c081ca953b141298e41db3fc7e36b1da849c"
396 -
397 - [[package]]
398 416 name = "html5ever"
399 417 version = "0.39.0"
400 418 source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -423,21 +441,10 @@ dependencies = [
423 441 ]
424 442
425 443 [[package]]
426 - name = "is-terminal"
427 - version = "0.4.17"
428 - source = "registry+https://github.com/rust-lang/crates.io-index"
429 - checksum = "3640c1c38b8e4e43584d8df18be5fc6b0aa314ce6ebf51b53313d4306cca8e46"
430 - dependencies = [
431 - "hermit-abi",
432 - "libc",
433 - "windows-sys",
434 - ]
435 -
436 - [[package]]
437 444 name = "itertools"
438 - version = "0.10.5"
445 + version = "0.13.0"
439 446 source = "registry+https://github.com/rust-lang/crates.io-index"
440 - checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473"
447 + checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186"
441 448 dependencies = [
442 449 "either",
443 450 ]
@@ -538,6 +545,16 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
538 545 checksum = "d6790f58c7ff633d8771f42965289203411a5e5c68388703c06e14f24770b41e"
539 546
540 547 [[package]]
548 + name = "page_size"
549 + version = "0.6.0"
550 + source = "registry+https://github.com/rust-lang/crates.io-index"
551 + checksum = "30d5b2194ed13191c1999ae0704b7839fb18384fa22e49b57eeaa97d79ce40da"
552 + dependencies = [
553 + "libc",
554 + "winapi",
555 + ]
556 +
557 + [[package]]
541 558 name = "parking_lot"
542 559 version = "0.12.5"
543 560 source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -986,6 +1003,12 @@ dependencies = [
986 1003 ]
987 1004
988 1005 [[package]]
1006 + name = "shlex"
1007 + version = "2.0.1"
1008 + source = "registry+https://github.com/rust-lang/crates.io-index"
1009 + checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba"
1010 +
1011 + [[package]]
989 1012 name = "siphasher"
990 1013 version = "1.0.2"
991 1014 source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -1246,6 +1269,22 @@ dependencies = [
1246 1269 ]
1247 1270
1248 1271 [[package]]
1272 + name = "winapi"
1273 + version = "0.3.9"
1274 + source = "registry+https://github.com/rust-lang/crates.io-index"
1275 + checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
1276 + dependencies = [
1277 + "winapi-i686-pc-windows-gnu",
1278 + "winapi-x86_64-pc-windows-gnu",
1279 + ]
1280 +
1281 + [[package]]
1282 + name = "winapi-i686-pc-windows-gnu"
1283 + version = "0.4.0"
1284 + source = "registry+https://github.com/rust-lang/crates.io-index"
1285 + checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
1286 +
1287 + [[package]]
1249 1288 name = "winapi-util"
1250 1289 version = "0.1.11"
1251 1290 source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -1255,6 +1294,12 @@ dependencies = [
1255 1294 ]
1256 1295
1257 1296 [[package]]
1297 + name = "winapi-x86_64-pc-windows-gnu"
1298 + version = "0.4.0"
1299 + source = "registry+https://github.com/rust-lang/crates.io-index"
1300 + checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
1301 +
1302 + [[package]]
1258 1303 name = "windows-link"
1259 1304 version = "0.2.1"
1260 1305 source = "registry+https://github.com/rust-lang/crates.io-index"
M Cargo.toml +1 -1
@@ -13,7 +13,7 @@ scraper = "0.26"
13 13
14 14 [dev-dependencies]
15 15 proptest = "1"
16 - criterion = { version = "0.5", features = ["html_reports"] }
16 + criterion = { version = "0.8", features = ["html_reports"] }
17 17
18 18 [[bench]]
19 19 name = "convert_bench"
@@ -1,4 +1,5 @@
1 - use criterion::{Criterion, black_box, criterion_group, criterion_main};
1 + use criterion::{Criterion, criterion_group, criterion_main};
2 + use std::hint::black_box;
2 3
3 4 fn simple_email() -> &'static str {
4 5 r#"<html><body>