Skip to content

Commit b183c74

Browse files
fix(driver): use flume instead of crossbeam (#479)
Co-authored-by: Pop <[email protected]>
1 parent 11ed0d4 commit b183c74

File tree

5 files changed

+5
-7
lines changed

5 files changed

+5
-7
lines changed

Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,11 @@ compio-process = { path = "./compio-process", version = "0.6.0" }
4040
compio-quic = { path = "./compio-quic", version = "0.5.0", default-features = false }
4141

4242
bytes = "1.7.1"
43-
flume = "0.11.0"
4443
cfg_aliases = "0.2.1"
4544
cfg-if = "1.0.0"
4645
criterion = "0.7.0"
47-
crossbeam-channel = "0.5.8"
4846
crossbeam-queue = "0.3.8"
47+
flume = { version = "0.11.0", default-features = false }
4948
futures-channel = "0.3.29"
5049
futures-util = "0.3.29"
5150
libc = "0.2.164"

compio-dispatcher/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ rustdoc-args = ["--cfg", "docsrs"]
1919
compio-driver = { workspace = true }
2020
compio-runtime = { workspace = true }
2121

22-
flume = { workspace = true }
22+
flume = { workspace = true, default-features = false, features = ["async"] }
2323
futures-channel = { workspace = true }
2424

2525
[dev-dependencies]

compio-driver/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ compio-log = { workspace = true }
3434

3535
# Utils
3636
cfg-if = { workspace = true }
37-
crossbeam-channel = { workspace = true }
37+
flume = { workspace = true, default-features = false }
3838
futures-util = { workspace = true }
3939
socket2 = { workspace = true, features = ["all"] }
4040

@@ -67,7 +67,6 @@ slab = { workspace = true, optional = true }
6767
polling = "3.3.0"
6868

6969
[target.'cfg(unix)'.dependencies]
70-
crossbeam-channel = { workspace = true }
7170
crossbeam-queue = { workspace = true }
7271
libc = { workspace = true }
7372

compio-driver/src/asyncify.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::{
77
time::Duration,
88
};
99

10-
use crossbeam_channel::{Receiver, Sender, TrySendError, bounded};
10+
use flume::{Receiver, Sender, TrySendError, bounded};
1111

1212
/// An error that may be emitted when all worker threads are busy. It simply
1313
/// returns the dispatchable value with a convenient [`fmt::Debug`] and

compio-quic/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ h3 = { version = "0.0.8", optional = true }
3131
h3-datagram = { version = "0.0.2", optional = true }
3232

3333
# Utils
34-
flume = { workspace = true }
34+
flume = { workspace = true, default-features = false, features = ["async"] }
3535
futures-util = { workspace = true }
3636
thiserror = { workspace = true }
3737
rustc-hash = "2.0.0"

0 commit comments

Comments
 (0)