From c1547281b11229a9f4433c8957630fa219ead5ac Mon Sep 17 00:00:00 2001 From: wackazong Date: Fri, 29 Nov 2024 16:38:16 +0100 Subject: [PATCH 1/2] Removing unnecessary optional feature selectors Sorry for nitpicking, I was wondering what the question marks mean in the feature deps and after learning about their meaning it occured to me that they are actually not necessary here, since the tokio respectively gloo-timers crate is added as a dependency in the same feature. Hope I understood it correctly, happy to learn more about this syntax. --- backon/Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backon/Cargo.toml b/backon/Cargo.toml index 07d7468..fa3889d 100644 --- a/backon/Cargo.toml +++ b/backon/Cargo.toml @@ -22,8 +22,8 @@ targets = [ [features] default = ["std-blocking-sleep", "tokio-sleep", "gloo-timers-sleep"] std-blocking-sleep = [] -gloo-timers-sleep = ["dep:gloo-timers", "gloo-timers?/futures"] -tokio-sleep = ["dep:tokio", "tokio?/time"] +gloo-timers-sleep = ["dep:gloo-timers", "gloo-timers/futures"] +tokio-sleep = ["dep:tokio", "tokio/time"] [dependencies] fastrand = "2" From 62f3c538cfe08f1b85298261da39d4bc5c7d06dc Mon Sep 17 00:00:00 2001 From: wackazong Date: Fri, 29 Nov 2024 17:00:48 +0100 Subject: [PATCH 2/2] Update Cargo.toml --- backon/Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backon/Cargo.toml b/backon/Cargo.toml index fa3889d..de9d2c1 100644 --- a/backon/Cargo.toml +++ b/backon/Cargo.toml @@ -22,8 +22,8 @@ targets = [ [features] default = ["std-blocking-sleep", "tokio-sleep", "gloo-timers-sleep"] std-blocking-sleep = [] -gloo-timers-sleep = ["dep:gloo-timers", "gloo-timers/futures"] -tokio-sleep = ["dep:tokio", "tokio/time"] +gloo-timers-sleep = ["gloo-timers/futures"] +tokio-sleep = ["tokio/time"] [dependencies] fastrand = "2"