From fc9ad5e2c4e3fb674d62040d8325fa60f37c37de Mon Sep 17 00:00:00 2001 From: Easyoakland <97992568+Easyoakland@users.noreply.github.com> Date: Fri, 18 Oct 2024 01:00:22 -0600 Subject: [PATCH 1/2] fix no_std (after futures-buffered accepts https://github.com/conradludgate/futures-buffered/pull/9) --- Cargo.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 76f6dfc..f618775 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,13 +28,13 @@ harness = false [features] default = ["std"] -std = ["alloc"] -alloc = ["dep:fixedbitset", "dep:slab", "dep:smallvec"] +std = ["alloc", "futures-lite/std"] +alloc = ["dep:fixedbitset", "dep:slab", "dep:smallvec", "futures-lite/alloc"] [dependencies] fixedbitset = { version = "0.5.7", default-features = false, optional = true } futures-core = { version = "0.3", default-features = false } -futures-lite = "1.12.0" +futures-lite = { version = "1.12.0", default-features = false } pin-project = "1.0.8" slab = { version = "0.4.8", optional = true } smallvec = { version = "1.11.0", optional = true } From 06dd95478c04c654e6171a88c74db4797ddd1248 Mon Sep 17 00:00:00 2001 From: Easyoakland <97992568+Easyoakland@users.noreply.github.com> Date: Tue, 22 Oct 2024 18:20:42 +0000 Subject: [PATCH 2/2] Update `futures-buffered` to fix no-std --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index f618775..643ad58 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -38,7 +38,7 @@ futures-lite = { version = "1.12.0", default-features = false } pin-project = "1.0.8" slab = { version = "0.4.8", optional = true } smallvec = { version = "1.11.0", optional = true } -futures-buffered = "0.2.6" +futures-buffered = "0.2.9" [dev-dependencies] async-io = "2.3.2"