Update Rust crate criterion to v4.7.0 (#19732)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [criterion](https://codspeed.io)
([source](https://redirect.github.com/CodSpeedHQ/codspeed-rust)) |
dev-dependencies | minor | `4.6.0` → `4.7.0` |

---

### Release Notes

<details>
<summary>CodSpeedHQ/codspeed-rust (criterion)</summary>

###
[`v4.7.0`](https://redirect.github.com/CodSpeedHQ/codspeed-rust/releases/tag/v4.7.0)

[Compare
Source](https://redirect.github.com/CodSpeedHQ/codspeed-rust/compare/v4.6.0...v4.7.0)

#### What's Changed

##### Manual sampling for criterion

> **Note:** ignored under CodSpeed simulation mode (single measured
iteration). Only takes effect in walltime mode.

We introduced a new finer control way of defining a criterion benchmark
to have full control over how many times your code is ran.\
This bypasses criterion's original sampler, which we still recommend
using if you do not have specific control needs.

```rust
use codspeed_criterion_compat::{criterion_group, criterion_main, Criterion, IterManualOptions};

fn bench_my_function(c: &mut Criterion) {
    c.bench_function("my_function", |b| {
        b.iter_manual_unstable(
            IterManualOptions::new()
                .rounds(5)   // 5 measurement samples, can be lower than criterion's imposed 10
                .iters(1000)  // 1000 calls per sample
                .warmup(5),   // 5 unmeasured warmup iterations
            || my_function(),
        );
    });
}

criterion_group!(benches, bench_my_function);
criterion_main!(benches);
```

Please note that this API is still under development and may change with
future releases.

- fix(cargo-codspeed): forward args after `--` to bench binaries by
[@&#8203;not-matthias](https://redirect.github.com/not-matthias) in
[#&#8203;179](https://redirect.github.com/CodSpeedHQ/codspeed-rust/pull/179)
- chore: bump instrument-hooks by
[@&#8203;not-matthias](https://redirect.github.com/not-matthias) in
[#&#8203;178](https://redirect.github.com/CodSpeedHQ/codspeed-rust/pull/178)
- feat(criterion-compat): add `iter_manual` to have finer control over
the iteration loop by
[@&#8203;GuillaumeLagrange](https://redirect.github.com/GuillaumeLagrange)
in
[#&#8203;180](https://redirect.github.com/CodSpeedHQ/codspeed-rust/pull/180)

**Full Changelog**:
<https://github.com/CodSpeedHQ/codspeed-rust/compare/v4.6.0...v4.7.0>

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - Between 12:00 AM and 03:59 AM, only on Monday (`* 0-3 * * 1`)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/astral-sh/uv).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yMDkuNCIsInVwZGF0ZWRJblZlciI6IjQzLjIwOS40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJidWlsZDpza2lwLWRvY2tlciIsImJ1aWxkOnNraXAtcmVsZWFzZSIsImludGVybmFsIl19-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
renovate[bot]
2026-06-15 16:47:04 +01:00
committed by GitHub
parent 9945c92171
commit 49e4be037c
Generated
+12 -12
View File
@@ -862,9 +862,9 @@ dependencies = [
[[package]]
name = "codspeed"
version = "4.6.0"
version = "4.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d7ce4a32373a5c84f4fa785099b300b9b1796311abc122b9eb62c65fa615145d"
checksum = "57af92d1db7f6871b7e82c79cd87f2501db66f36b0eab924be6ea83dd6b2f3f3"
dependencies = [
"anyhow",
"cc",
@@ -880,9 +880,9 @@ dependencies = [
[[package]]
name = "codspeed-criterion-compat"
version = "4.6.0"
version = "4.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f5557c4e023f427ba208b849193c51c2ebd40534828490cd3f5f7f7fc0284ce5"
checksum = "1d31ae2e9ab23c29fa13bdfa06d012524176f5c0f4e25ec262cd829d947ebc5e"
dependencies = [
"clap",
"codspeed",
@@ -895,9 +895,9 @@ dependencies = [
[[package]]
name = "codspeed-criterion-compat-walltime"
version = "4.6.0"
version = "4.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "43ac19f0a5c3542301e9d011d658f93c3f550698ec8ba7d7c072692e7924c401"
checksum = "cc8605e40bab5114dcb0f76268e18880082b5798dec10757b5b58d2c3bbc7a1c"
dependencies = [
"anes",
"cast",
@@ -1478,7 +1478,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
dependencies = [
"libc",
"windows-sys 0.52.0",
"windows-sys 0.61.2",
]
[[package]]
@@ -2347,7 +2347,7 @@ checksum = "3640c1c38b8e4e43584d8df18be5fc6b0aa314ce6ebf51b53313d4306cca8e46"
dependencies = [
"hermit-abi",
"libc",
"windows-sys 0.52.0",
"windows-sys 0.61.2",
]
[[package]]
@@ -4141,7 +4141,7 @@ dependencies = [
"errno",
"libc",
"linux-raw-sys",
"windows-sys 0.52.0",
"windows-sys 0.61.2",
]
[[package]]
@@ -4198,7 +4198,7 @@ dependencies = [
"security-framework",
"security-framework-sys",
"webpki-root-certs",
"windows-sys 0.52.0",
"windows-sys 0.61.2",
]
[[package]]
@@ -4903,7 +4903,7 @@ dependencies = [
"getrandom 0.4.1",
"once_cell",
"rustix",
"windows-sys 0.52.0",
"windows-sys 0.61.2",
]
[[package]]
@@ -7728,7 +7728,7 @@ version = "0.1.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
dependencies = [
"windows-sys 0.52.0",
"windows-sys 0.61.2",
]
[[package]]