Skip to content

Commit 21bdbe4

Browse files
committed
mpmc: feature-gate crossbeam implementation
Adds a feature-gate for the `mpmc::Queue` crossbeam implementation.
1 parent 84f5c41 commit 21bdbe4

File tree

3 files changed

+514
-503
lines changed

3 files changed

+514
-503
lines changed

Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ alloc = []
5858

5959
nightly = []
6060

61+
# Implement MPMC using `crossbeam::ArrayQueue`
62+
mpmc_crossbeam = ["dep:crossbeam-utils"]
63+
6164
[dependencies]
6265
bytes = { version = "1", default-features = false, optional = true }
6366
portable-atomic = { version = "1.0", optional = true }
@@ -67,7 +70,7 @@ ufmt = { version = "0.2", optional = true }
6770
ufmt-write = { version = "0.1", optional = true }
6871
defmt = { version = "1.0.1", optional = true }
6972
zeroize = { version = "1.8", optional = true, default-features = false, features = ["derive"] }
70-
crossbeam-utils = "0.8"
73+
crossbeam-utils = { version = "0.8", optional = true }
7174

7275
# for the pool module
7376
[target.'cfg(any(target_arch = "arm", target_pointer_width = "32", target_pointer_width = "64"))'.dependencies]

0 commit comments

Comments
 (0)