Skip to main content

scope_local/
lib.rs

1#![doc = include_str!("../README.md")]
2#![no_std]
3#![warn(missing_docs)]
4#![cfg_attr(docsrs, feature(doc_cfg))]
5
6extern crate alloc;
7
8#[cfg(all(axtest, feature = "axtest"))]
9/// Coverage tests for scoped local storage.
10pub mod axtest;
11
12mod boxed;
13mod item;
14mod scope;
15
16pub use item::{Item, LocalItem, ScopeItem, ScopeItemMut};
17pub use scope::{ActiveScope, Scope};
18
19#[cfg(test)]
20mod tests {
21    struct KernelGuardIfImpl;
22
23    #[ax_crate_interface::impl_interface]
24    impl ax_kernel_guard::KernelGuardIf for KernelGuardIfImpl {
25        fn enable_preempt() {}
26
27        fn disable_preempt() {}
28    }
29}