@@ -20,7 +20,7 @@ pub use crate::sys::op::{
20
20
CreateDir , CreateSocket , FileStat , HardLink , Interest , OpenFile , PathStat , PollOnce ,
21
21
ReadVectoredAt , Rename , Symlink , Unlink , WriteVectoredAt ,
22
22
} ;
23
- #[ cfg( buf_ring ) ]
23
+ #[ cfg( io_uring ) ]
24
24
pub use crate :: sys:: op:: { ReadManagedAt , RecvManaged } ;
25
25
use crate :: {
26
26
OwnedFd , SharedFd ,
@@ -268,7 +268,7 @@ impl<S> Connect<S> {
268
268
}
269
269
}
270
270
271
- #[ cfg( any( not( buf_ring ) , fusion) ) ]
271
+ #[ cfg( any( not( io_uring ) , fusion) ) ]
272
272
pub ( crate ) mod managed {
273
273
use std:: io;
274
274
@@ -290,7 +290,7 @@ pub(crate) mod managed {
290
290
pool : & BufferPool ,
291
291
len : usize ,
292
292
) -> io:: Result < Self > {
293
- #[ cfg( all ( buf_ring , fusion) ) ]
293
+ #[ cfg( fusion) ]
294
294
let pool = pool. as_poll ( ) ;
295
295
Ok ( Self {
296
296
op : ReadAt :: new ( fd, offset, pool. get_buffer ( len) ?) ,
@@ -309,12 +309,12 @@ pub(crate) mod managed {
309
309
_: u32 ,
310
310
) -> io:: Result < BorrowedBuffer > {
311
311
let result = result?;
312
- #[ cfg( all ( buf_ring , fusion) ) ]
312
+ #[ cfg( fusion) ]
313
313
let buffer_pool = buffer_pool. as_poll ( ) ;
314
314
let slice = self . op . into_inner ( ) ;
315
315
// Safety: result is valid
316
316
let res = unsafe { buffer_pool. create_proxy ( slice, result) } ;
317
- #[ cfg( all ( buf_ring , fusion) ) ]
317
+ #[ cfg( fusion) ]
318
318
let res = BorrowedBuffer :: new_poll ( res) ;
319
319
Ok ( res)
320
320
}
@@ -328,7 +328,7 @@ pub(crate) mod managed {
328
328
impl < S > RecvManaged < S > {
329
329
/// Create [`RecvManaged`].
330
330
pub fn new ( fd : SharedFd < S > , pool : & BufferPool , len : usize ) -> io:: Result < Self > {
331
- #[ cfg( all ( buf_ring , fusion) ) ]
331
+ #[ cfg( fusion) ]
332
332
let pool = pool. as_poll ( ) ;
333
333
Ok ( Self {
334
334
op : Recv :: new ( fd, pool. get_buffer ( len) ?) ,
@@ -347,17 +347,17 @@ pub(crate) mod managed {
347
347
_: u32 ,
348
348
) -> io:: Result < Self :: Buffer < ' _ > > {
349
349
let result = result?;
350
- #[ cfg( all ( buf_ring , fusion) ) ]
350
+ #[ cfg( fusion) ]
351
351
let buffer_pool = buffer_pool. as_poll ( ) ;
352
352
let slice = self . op . into_inner ( ) ;
353
353
// Safety: result is valid
354
354
let res = unsafe { buffer_pool. create_proxy ( slice, result) } ;
355
- #[ cfg( all ( buf_ring , fusion) ) ]
355
+ #[ cfg( fusion) ]
356
356
let res = BorrowedBuffer :: new_poll ( res) ;
357
357
Ok ( res)
358
358
}
359
359
}
360
360
}
361
361
362
- #[ cfg( not( buf_ring ) ) ]
362
+ #[ cfg( not( io_uring ) ) ]
363
363
pub use managed:: * ;
0 commit comments