benches: properly gate unix benches (#7392)

This commit is contained in:
Tim Vilgot Mikael Fredenberg 2025-06-11 10:07:34 +02:00 committed by GitHub
parent 9f848c9f54
commit 933fa498d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 2 additions and 5 deletions

View File

@ -71,12 +71,12 @@ name = "sync_semaphore"
path = "sync_semaphore.rs"
harness = false
[[bench]]
[[target.'cfg(unix)'.bench]]
name = "signal"
path = "signal.rs"
harness = false
[[bench]]
[[target.'cfg(unix)'.bench]]
name = "fs"
path = "fs.rs"
harness = false

View File

@ -1,5 +1,3 @@
#![cfg(unix)]
use tokio_stream::StreamExt;
use tokio::fs::File;

View File

@ -1,5 +1,4 @@
//! Benchmark the delay in propagating OS signals to any listeners.
#![cfg(unix)]
use criterion::{criterion_group, criterion_main, Criterion};
use std::future::Future;