Skip to content

Commit 8afd864

Browse files
committed
wip
Signed-off-by: Onur Satici <[email protected]>
1 parent 29c8f3c commit 8afd864

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

vortex-io/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ tracing-subscriber = { workspace = true }
5959
[features]
6060
object_store = ["dep:object_store", "vortex-error/object_store"]
6161
tokio = ["tokio/fs", "tokio/rt-multi-thread"]
62+
uring = []
6263

6364
[lints]
6465
workspace = true

vortex-io/src/runtime/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ pub mod single;
3838
mod smol;
3939
#[cfg(feature = "tokio")]
4040
pub mod tokio;
41-
#[cfg(not(target_arch = "wasm32"))]
41+
#[cfg(all(not(target_arch = "wasm32"), feature = "uring", target_os = "linux"))]
4242
pub mod uring;
4343
#[cfg(target_arch = "wasm32")]
4444
pub mod wasm;

vortex-io/src/session.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ pub trait RuntimeSessionExt: SessionExt {
5555

5656
/// Configure the runtime session to use a dispatching handle that round-robins across the
5757
/// provided handles. Useful for thread-per-core runtimes.
58+
#[cfg(all(not(target_arch = "wasm32"), feature = "uring", target_os = "linux"))]
5859
fn with_dispatching_handles(self, handles: Vec<Handle>) -> Self {
5960
self.get_mut::<RuntimeSession>().handle =
6061
Some(crate::runtime::uring::dispatching_handle(&handles));

0 commit comments

Comments
 (0)