Skip to content

Commit 9d8e709

Browse files
committed
zephyr: Make timer only available with alloc
Supporting timers requires the callback to be pinned, which requires alloc. It might be possible to conditionalize the code such that the plain timer code can be used. Signed-off-by: David Brown <[email protected]>
1 parent 66c62fc commit 9d8e709

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

zephyr/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ pub mod object;
1717
pub mod sync;
1818
pub mod sys;
1919
pub mod time;
20+
#[cfg(CONFIG_RUST_ALLOC)]
2021
pub mod timer;
2122

2223
pub use error::{Error, Result};

0 commit comments

Comments
 (0)