From 07fe7a20123b0729411a4f3036c283b0c5854647 Mon Sep 17 00:00:00 2001 From: Yiannis Marangos Date: Mon, 7 Aug 2023 14:52:59 +0300 Subject: [PATCH] chore(timers): Replace `futures` with `futures-util` --- Cargo.toml | 1 + src/ic-cdk-timers/Cargo.toml | 2 +- src/ic-cdk-timers/src/lib.rs | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 3739a4709..ced71719e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -36,6 +36,7 @@ ic-cdk-timers = { path = "src/ic-cdk-timers", version = "0.4.0" } candid = "0.9" futures = "0.3" +futures-util = "0.3" hex = "0.4" quote = "1" serde = "1" diff --git a/src/ic-cdk-timers/Cargo.toml b/src/ic-cdk-timers/Cargo.toml index c4934f458..624bd50b6 100644 --- a/src/ic-cdk-timers/Cargo.toml +++ b/src/ic-cdk-timers/Cargo.toml @@ -25,7 +25,7 @@ ic-cdk.workspace = true serde.workspace = true serde_bytes.workspace = true slotmap.workspace = true -futures.workspace = true +futures-util.workspace = true [package.metadata.docs.rs] default-target = "wasm32-unknown-unknown" diff --git a/src/ic-cdk-timers/src/lib.rs b/src/ic-cdk-timers/src/lib.rs index a25ec0336..79a5eac71 100644 --- a/src/ic-cdk-timers/src/lib.rs +++ b/src/ic-cdk-timers/src/lib.rs @@ -26,7 +26,7 @@ use std::{ time::Duration, }; -use futures::{stream::FuturesUnordered, StreamExt}; +use futures_util::{stream::FuturesUnordered, StreamExt}; use slotmap::{new_key_type, KeyData, SlotMap}; use ic_cdk::api::call::RejectionCode;