Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions helper/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand All @@ -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)
Expand All @@ -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
1 change: 1 addition & 0 deletions helper/src/asynch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading