From 13336c31845edf303b0bda3d67eafb12c1809486 Mon Sep 17 00:00:00 2001 From: An-anonymous-coder <130810665+An-anonymous-coder@users.noreply.github.com> Date: Thu, 7 May 2026 16:46:48 -0400 Subject: [PATCH 1/2] Update Cargo.toml --- helper/Cargo.toml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/helper/Cargo.toml b/helper/Cargo.toml index 5fd346048..930d2d9fe 100644 --- a/helper/Cargo.toml +++ b/helper/Cargo.toml @@ -13,7 +13,7 @@ repository = "https://github.com/Cuprate/cuprate/tree/main/consensus" default = [] std = [] atomic = ["dep:crossbeam"] -asynch = ["dep:futures", "dep:rayon"] +asynch = ["dep:futures", "dep:rayon", "dep:tokio"] cast = [] constants = [] crypto = ["dep:curve25519-dalek", "dep:monero-oxide", "std"] @@ -38,6 +38,7 @@ monero-oxide = { workspace = true, optional = true } rayon = { workspace = true, optional = true } serde = { workspace = true, optional = true, features = ["derive"] } +tokio = { workspace = true, optional = true, features = ["full"] } # This is kinda a stupid work around. # [thread] needs to activate one of these libs (windows|libc) @@ -47,9 +48,5 @@ target_os_lib = { package = "windows", version = ">=0.51", features = ["Win32_Sy [target.'cfg(unix)'.dependencies] target_os_lib = { package = "libc", version = "0.2", optional = true } -[dev-dependencies] -tokio = { workspace = true, features = ["full"] } -curve25519-dalek = { workspace = true } - [lints] workspace = true From 4b4f89068d2912f2e9982803c7ed491626d05d1b Mon Sep 17 00:00:00 2001 From: An-anonymous-coder <130810665+An-anonymous-coder@users.noreply.github.com> Date: Thu, 7 May 2026 16:47:46 -0400 Subject: [PATCH 2/2] Update asynch.rs --- helper/src/asynch.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/helper/src/asynch.rs b/helper/src/asynch.rs index 9868191b0..4a78ffedb 100644 --- a/helper/src/asynch.rs +++ b/helper/src/asynch.rs @@ -10,6 +10,7 @@ use core::{ }; use futures::{channel::oneshot, FutureExt}; +use tokio as _; //---------------------------------------------------------------------------------------------------- InfallibleOneshotReceiver /// A oneshot receiver channel that doesn't return an Error.