@@ -2,9 +2,9 @@ use std::{io, marker::PhantomData};
2
2
3
3
#[ cfg( all( target_os = "linux" , feature = "iouring" ) ) ]
4
4
use crate :: driver:: IoUringDriver ;
5
- #[ cfg( all ( unix , feature = "legacy" ) ) ]
5
+ #[ cfg( feature = "legacy" ) ]
6
6
use crate :: driver:: LegacyDriver ;
7
- #[ cfg( all ( unix , any( feature = "legacy" , feature = "iouring" ) ) ) ]
7
+ #[ cfg( any( feature = "legacy" , feature = "iouring" ) ) ]
8
8
use crate :: utils:: thread_id:: gen_id;
9
9
use crate :: {
10
10
driver:: Driver ,
@@ -80,14 +80,14 @@ macro_rules! direct_build {
80
80
direct_build ! ( IoUringDriver ) ;
81
81
#[ cfg( all( target_os = "linux" , feature = "iouring" ) ) ]
82
82
direct_build ! ( TimeDriver <IoUringDriver >) ;
83
- #[ cfg( all ( unix , feature = "legacy" ) ) ]
83
+ #[ cfg( feature = "legacy" ) ]
84
84
direct_build ! ( LegacyDriver ) ;
85
- #[ cfg( all ( unix , feature = "legacy" ) ) ]
85
+ #[ cfg( feature = "legacy" ) ]
86
86
direct_build ! ( TimeDriver <LegacyDriver >) ;
87
87
88
88
// ===== builder impl =====
89
89
90
- #[ cfg( all ( unix , feature = "legacy" ) ) ]
90
+ #[ cfg( feature = "legacy" ) ]
91
91
impl Buildable for LegacyDriver {
92
92
fn build ( this : RuntimeBuilder < Self > ) -> io:: Result < Runtime < LegacyDriver > > {
93
93
let thread_id = gen_id ( ) ;
@@ -192,7 +192,7 @@ impl RuntimeBuilder<FusionDriver> {
192
192
}
193
193
194
194
/// Build the runtime.
195
- #[ cfg( all ( unix , not( all( target_os = "linux" , feature = "iouring" ) ) ) ) ]
195
+ #[ cfg( not( all( target_os = "linux" , feature = "iouring" ) ) ) ]
196
196
pub fn build ( self ) -> io:: Result < crate :: FusionRuntime < LegacyDriver > > {
197
197
let builder = RuntimeBuilder :: < LegacyDriver > {
198
198
entries : self . entries ,
@@ -248,7 +248,7 @@ impl RuntimeBuilder<TimeDriver<FusionDriver>> {
248
248
}
249
249
250
250
/// Build the runtime.
251
- #[ cfg( all ( unix , not( all( target_os = "linux" , feature = "iouring" ) ) ) ) ]
251
+ #[ cfg( not( all( target_os = "linux" , feature = "iouring" ) ) ) ]
252
252
pub fn build ( self ) -> io:: Result < crate :: FusionRuntime < TimeDriver < LegacyDriver > > > {
253
253
let builder = RuntimeBuilder :: < TimeDriver < LegacyDriver > > {
254
254
entries : self . entries ,
@@ -280,7 +280,7 @@ mod time_wrap {
280
280
281
281
#[ cfg( all( target_os = "linux" , feature = "iouring" ) ) ]
282
282
impl time_wrap:: TimeWrapable for IoUringDriver { }
283
- #[ cfg( all ( unix , feature = "legacy" ) ) ]
283
+ #[ cfg( feature = "legacy" ) ]
284
284
impl time_wrap:: TimeWrapable for LegacyDriver { }
285
285
#[ cfg( any( all( target_os = "linux" , feature = "iouring" ) , feature = "legacy" ) ) ]
286
286
impl time_wrap:: TimeWrapable for FusionDriver { }
0 commit comments