From 5729f337adb6bfd72b58bb99b8a7d5dfe8e2461a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Frosteg=C3=A5rd?= Date: Sat, 23 Oct 2021 20:25:42 +0200 Subject: [PATCH] aquatic_udp: rename glommio feature to "io_uring", remove from default --- TODO.md | 1 - aquatic_udp/Cargo.toml | 3 +-- aquatic_udp/src/lib/lib.rs | 4 ++-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/TODO.md b/TODO.md index 0a050ee..72cec4d 100644 --- a/TODO.md +++ b/TODO.md @@ -1,7 +1,6 @@ # TODO * aquatic_udp glommio - * disable by default! * consider adding ConnectedScrapeRequest::Scrape(PendingScrapeRequest) containing TransactionId and BTreeMap, and same for response diff --git a/aquatic_udp/Cargo.toml b/aquatic_udp/Cargo.toml index 3388c1b..b283860 100644 --- a/aquatic_udp/Cargo.toml +++ b/aquatic_udp/Cargo.toml @@ -15,8 +15,7 @@ path = "src/lib/lib.rs" name = "aquatic_udp" [features] -default = ["with-glommio"] -with-glommio = ["glommio", "futures-lite"] +io_uring = ["glommio", "futures-lite"] [dependencies] anyhow = "1" diff --git a/aquatic_udp/src/lib/lib.rs b/aquatic_udp/src/lib/lib.rs index 8e8cc4d..a4a3a55 100644 --- a/aquatic_udp/src/lib/lib.rs +++ b/aquatic_udp/src/lib/lib.rs @@ -10,7 +10,7 @@ use cfg_if::cfg_if; pub mod common; pub mod config; -#[cfg(all(feature = "with-glommio", target_os = "linux"))] +#[cfg(all(feature = "io_uring", target_os = "linux"))] pub mod glommio; pub mod mio; @@ -21,7 +21,7 @@ pub const APP_NAME: &str = "aquatic_udp: UDP BitTorrent tracker"; pub fn run(config: Config) -> ::anyhow::Result<()> { cfg_if! { - if #[cfg(all(feature = "with-glommio", target_os = "linux"))] { + if #[cfg(all(feature = "io_uring", target_os = "linux"))] { glommio::run(config) } else { mio::run(config)