Skip to content

Commit 4cd0b08

Browse files
Update criterion requirement from 0.4 to 0.6 (#226)
Updates the requirements on [criterion](https://github.com/bheisler/criterion.rs) to permit the latest version. - [Changelog](https://github.com/bheisler/criterion.rs/blob/master/CHANGELOG.md) - [Commits](bheisler/criterion.rs@0.4.0...0.6.0) --- updated-dependencies: - dependency-name: criterion dependency-version: 0.6.0 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Taiki Endo <[email protected]>
1 parent 89943a2 commit 4cd0b08

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ windows-sys = { version = "0.60.0", features = ["Win32_Foundation"] }
4444
async-channel = "2.0.0"
4545
async-net = "2.0.0"
4646
blocking = "1"
47-
criterion = { version = "0.4", default-features = false, features = ["cargo_bench_support"] }
47+
criterion = { version = "0.6", default-features = false, features = ["cargo_bench_support"] }
4848
getrandom = "0.3"
4949
signal-hook = "0.3"
5050
tempfile = "3"

benches/io.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
//! Benchmarks for a variety of I/O operations.
22
3+
#![allow(clippy::incompatible_msrv)] // false positive: https://github.com/rust-lang/rust-clippy/issues/12257#issuecomment-2093667187
4+
35
use async_io::Async;
4-
use criterion::{black_box, criterion_group, criterion_main, Criterion};
6+
use criterion::{criterion_group, criterion_main, Criterion};
57
use futures_lite::{future, prelude::*};
8+
use std::hint::black_box;
69
use std::net::{Ipv4Addr, SocketAddr, TcpListener, TcpStream, UdpSocket};
710

811
/// Block on a future, either using the I/O driver or simple parking.

benches/timer.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
//! Benchmarks for registering timers.
22
3+
#![allow(clippy::incompatible_msrv)] // false positive: https://github.com/rust-lang/rust-clippy/issues/12257#issuecomment-2093667187
4+
35
use async_io::Timer;
4-
use criterion::{black_box, criterion_group, criterion_main, Criterion};
6+
use criterion::{criterion_group, criterion_main, Criterion};
57
use futures_lite::future;
8+
use std::hint::black_box;
69
use std::time::Duration;
710

811
/// Create a new `Timer` and poll it once to register it into the timer wheel.

0 commit comments

Comments
 (0)