Skip to content

Commit a5e05cc

Browse files
committed
zephyr: channels require allocatio
Only provide the channel abstraction when allocation has been enabled. Signed-off-by: David Brown <[email protected]>
1 parent 28f31e0 commit a5e05cc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

zephyr/src/sync.rs

+3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ use core::{
1515
use crate::time::Forever;
1616
use crate::sys::sync as sys;
1717

18+
// Channels are currently only available with allocation. Bounded channels later might be
19+
// available.
20+
#[cfg(CONFIG_RUST_ALLOC)]
1821
pub mod channel;
1922

2023
pub mod atomic {

0 commit comments

Comments
 (0)