diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/Cargo.toml | 31 | ||||
-rw-r--r-- | core/src/async_util/condvar.rs | 5 | ||||
-rw-r--r-- | core/src/async_util/task_group.rs | 2 | ||||
-rw-r--r-- | core/src/lib.rs | 1 |
4 files changed, 17 insertions, 22 deletions
diff --git a/core/Cargo.toml b/core/Cargo.toml index 895ddf6..a43537b 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -15,26 +15,23 @@ tokio = ["dep:tokio"] smol = ["dep:smol", "async-process"] [dependencies] -log = "0.4.21" -thiserror = "1.0.61" -chrono = "0.4.38" -rand = "0.8.5" +log = { workspace = true } +thiserror = { workspace = true } +chrono = { workspace = true } +rand = { workspace = true } +parking_lot = { workspace = true } dirs = "5.0.1" -parking_lot = "0.12.3" -once_cell = "1.19.0" +once_cell = { workspace = true } -# async -async-channel = "2.3.1" -pin-project-lite = "0.2.14" -async-process = { version = "2.2.3", optional = true } -smol = { version = "2.0.0", optional = true } -tokio = { version = "1.38.0", features = ["full"], optional = true } -futures-util = { version = "0.3.5", features = [ - "alloc", +async-channel = { workspace = true } +pin-project-lite = { workspace = true } +async-process = { workspace = true, optional = true } +smol = { workspace = true, optional = true } +tokio = { workspace = true, features = ["full"], optional = true } +futures-util = { workspace = true, features = [ + "alloc", ], default-features = false } -# encode -bincode = "2.0.0-rc.3" +bincode = { workspace = true } -# crypto ed25519-dalek = { version = "2.1.1", features = ["rand_core"], optional = true } diff --git a/core/src/async_util/condvar.rs b/core/src/async_util/condvar.rs index e425eda..44705c6 100644 --- a/core/src/async_util/condvar.rs +++ b/core/src/async_util/condvar.rs @@ -58,7 +58,6 @@ use crate::{async_runtime::lock::MutexGuard, util::random_16}; /// }; /// /// ``` - pub struct CondVar { inner: Mutex<Wakers>, } @@ -116,7 +115,7 @@ impl<'a, T> CondVarAwait<'a, T> { } } -impl<'a, T> Future for CondVarAwait<'a, T> { +impl<T> Future for CondVarAwait<'_, T> { type Output = (); fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> { @@ -155,7 +154,7 @@ impl<'a, T> Future for CondVarAwait<'a, T> { } } -impl<'a, T> Drop for CondVarAwait<'a, T> { +impl<T> Drop for CondVarAwait<'_, T> { fn drop(&mut self) { if let Some(id) = self.id { let mut inner = self.condvar.inner.lock(); diff --git a/core/src/async_util/task_group.rs b/core/src/async_util/task_group.rs index c55b9a1..39bbf5c 100644 --- a/core/src/async_util/task_group.rs +++ b/core/src/async_util/task_group.rs @@ -126,7 +126,7 @@ pub struct TaskHandler { cancel_flag: Arc<CondWait>, } -impl<'a> TaskHandler { +impl TaskHandler { /// Creates a new task handler fn new<T, Fut, CallbackF, CallbackFut>( ex: Executor, diff --git a/core/src/lib.rs b/core/src/lib.rs index a7192d9..fedb226 100644 --- a/core/src/lib.rs +++ b/core/src/lib.rs @@ -23,7 +23,6 @@ pub mod pubsub; pub mod async_runtime; #[cfg(feature = "crypto")] - /// Collects common cryptographic tools pub mod crypto; |