Skip to main content

max / makenotwork

Bump criterion to 0.8 in tagtree Dev-dependency only, so the zero-runtime-deps guarantee is untouched. criterion::black_box is deprecated in favour of std::hint::black_box; switching the import covers all 64 call sites. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Author: Max Johnson <me@maxj.phd> · 2026-07-20 19:58 UTC
Commit: 773ca0d96d93025ac0d70e41f61bec3da74cf062
Parent: 258afac
3 files changed, +74 insertions, -28 deletions
@@ -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"
@@ -63,6 +72,16 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
63 72 checksum = "37b2a672a2cb129a2e41c10b1224bb368f9f37a2b16b612598138befd7b37eb5"
64 73
65 74 [[package]]
75 + name = "cc"
76 + version = "1.3.0"
77 + source = "registry+https://github.com/rust-lang/crates.io-index"
78 + checksum = "c89588d05638b5b4594a3348a2d6c20277e43a7f5c5202b05cc56888475a47b8"
79 + dependencies = [
80 + "find-msvc-tools",
81 + "shlex",
82 + ]
83 +
84 + [[package]]
66 85 name = "cfg-if"
67 86 version = "1.0.4"
68 87 source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -122,25 +141,24 @@ checksum = "c8d4a3bb8b1e0c1050499d1815f5ab16d04f0959b233085fb31653fbfc9d98f9"
122 141
123 142 [[package]]
124 143 name = "criterion"
125 - version = "0.5.1"
144 + version = "0.8.2"
126 145 source = "registry+https://github.com/rust-lang/crates.io-index"
127 - checksum = "f2b12d017a929603d80db1831cd3a24082f8137ce19c69e6447f54f5fc8d692f"
146 + checksum = "950046b2aa2492f9a536f5f4f9a3de7b9e2476e575e05bd6c333371add4d98f3"
128 147 dependencies = [
148 + "alloca",
129 149 "anes",
130 150 "cast",
131 151 "ciborium",
132 152 "clap",
133 153 "criterion-plot",
134 - "is-terminal",
135 154 "itertools",
136 155 "num-traits",
137 - "once_cell",
138 156 "oorandom",
157 + "page_size",
139 158 "plotters",
140 159 "rayon",
141 160 "regex",
142 161 "serde",
143 - "serde_derive",
144 162 "serde_json",
145 163 "tinytemplate",
146 164 "walkdir",
@@ -148,9 +166,9 @@ dependencies = [
148 166
149 167 [[package]]
150 168 name = "criterion-plot"
151 - version = "0.5.0"
169 + version = "0.8.2"
152 170 source = "registry+https://github.com/rust-lang/crates.io-index"
153 - checksum = "6b50826342786a51a89e2da3a28f1c32b06e387201bc2d19791f622c673706b1"
171 + checksum = "d8d80a2f4f5b554395e47b5d8305bc3d27813bacb73493eb1001e8f76dae29ea"
154 172 dependencies = [
155 173 "cast",
156 174 "itertools",
@@ -210,6 +228,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
210 228 checksum = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223"
211 229
212 230 [[package]]
231 + name = "find-msvc-tools"
232 + version = "0.1.9"
233 + source = "registry+https://github.com/rust-lang/crates.io-index"
234 + checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582"
235 +
236 + [[package]]
213 237 name = "fnv"
214 238 version = "1.0.7"
215 239 source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -250,27 +274,10 @@ dependencies = [
250 274 ]
251 275
252 276 [[package]]
253 - name = "hermit-abi"
254 - version = "0.5.2"
255 - source = "registry+https://github.com/rust-lang/crates.io-index"
256 - checksum = "fc0fef456e4baa96da950455cd02c081ca953b141298e41db3fc7e36b1da849c"
257 -
258 - [[package]]
259 - name = "is-terminal"
260 - version = "0.4.17"
261 - source = "registry+https://github.com/rust-lang/crates.io-index"
262 - checksum = "3640c1c38b8e4e43584d8df18be5fc6b0aa314ce6ebf51b53313d4306cca8e46"
263 - dependencies = [
264 - "hermit-abi",
265 - "libc",
266 - "windows-sys",
267 - ]
268 -
269 - [[package]]
270 277 name = "itertools"
271 - version = "0.10.5"
278 + version = "0.13.0"
272 279 source = "registry+https://github.com/rust-lang/crates.io-index"
273 - checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473"
280 + checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186"
274 281 dependencies = [
275 282 "either",
276 283 ]
@@ -331,6 +338,16 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
331 338 checksum = "d6790f58c7ff633d8771f42965289203411a5e5c68388703c06e14f24770b41e"
332 339
333 340 [[package]]
341 + name = "page_size"
342 + version = "0.6.0"
343 + source = "registry+https://github.com/rust-lang/crates.io-index"
344 + checksum = "30d5b2194ed13191c1999ae0704b7839fb18384fa22e49b57eeaa97d79ce40da"
345 + dependencies = [
346 + "libc",
347 + "winapi",
348 + ]
349 +
350 + [[package]]
334 351 name = "plotters"
335 352 version = "0.3.7"
336 353 source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -593,6 +610,12 @@ dependencies = [
593 610 ]
594 611
595 612 [[package]]
613 + name = "shlex"
614 + version = "2.0.1"
615 + source = "registry+https://github.com/rust-lang/crates.io-index"
616 + checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba"
617 +
618 + [[package]]
596 619 name = "syn"
597 620 version = "2.0.117"
598 621 source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -730,6 +753,22 @@ dependencies = [
730 753 ]
731 754
732 755 [[package]]
756 + name = "winapi"
757 + version = "0.3.9"
758 + source = "registry+https://github.com/rust-lang/crates.io-index"
759 + checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
760 + dependencies = [
761 + "winapi-i686-pc-windows-gnu",
762 + "winapi-x86_64-pc-windows-gnu",
763 + ]
764 +
765 + [[package]]
766 + name = "winapi-i686-pc-windows-gnu"
767 + version = "0.4.0"
768 + source = "registry+https://github.com/rust-lang/crates.io-index"
769 + checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
770 +
771 + [[package]]
733 772 name = "winapi-util"
734 773 version = "0.1.11"
735 774 source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -739,6 +778,12 @@ dependencies = [
739 778 ]
740 779
741 780 [[package]]
781 + name = "winapi-x86_64-pc-windows-gnu"
782 + version = "0.4.0"
783 + source = "registry+https://github.com/rust-lang/crates.io-index"
784 + checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
785 +
786 + [[package]]
742 787 name = "windows-link"
743 788 version = "0.2.1"
744 789 source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -10,7 +10,7 @@ keywords = ["tags", "hierarchy", "taxonomy", "tree", "autocomplete"]
10 10 categories = ["data-structures", "text-processing"]
11 11
12 12 [dev-dependencies]
13 - criterion = { version = "0.5", features = ["html_reports"] }
13 + criterion = { version = "0.8", features = ["html_reports"] }
14 14 proptest = "1"
15 15
16 16 [[bench]]
@@ -1,4 +1,5 @@
1 - use criterion::{black_box, criterion_group, criterion_main, Criterion};
1 + use criterion::{criterion_group, criterion_main, Criterion};
2 + use std::hint::black_box;
2 3 use tagtree::{batch_rename, merge_tags, remove_subtree, rename_prefix_bulk, TagConfig, TagIndex};
3 4
4 5 const AF_CONFIG: TagConfig = TagConfig {