From 737533e35f81b97da78c38e644becc851b1babff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20L=C3=B3pez?= Date: Tue, 7 Jan 2025 14:39:04 +0100 Subject: [PATCH] Prepare Cargo.toml for upcoming rewrite from macos->unix and linux->io_uring. Make io_uring an optional dependency that is only enabled with a new default feature io-uring. --- core/Cargo.toml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/Cargo.toml b/core/Cargo.toml index 0aab086b4..c0c579152 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -14,7 +14,7 @@ name = "limbo_core" path = "lib.rs" [features] -default = ["fs", "json", "uuid"] +default = ["fs", "json", "uuid", "io_uring"] fs = [] json = [ "dep:jsonb", @@ -22,11 +22,12 @@ json = [ "dep:pest_derive", ] uuid = ["dep:uuid"] +io_uring = ["dep:io-uring"] [target.'cfg(target_os = "linux")'.dependencies] -io-uring = "0.6.1" +io-uring = { version = "0.6.1", optional = true } -[target.'cfg(target_os = "macos")'.dependencies] +[target.'cfg(target_family = "unix")'.dependencies] polling = "3.7.2" rustix = "0.38.34"