-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathlib.rs
More file actions
66 lines (52 loc) · 1.19 KB
/
lib.rs
File metadata and controls
66 lines (52 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#![cfg_attr(not(feature = "std"), no_std)]
#![cfg_attr(feature = "std", feature(thread_local))]
#![feature(allocator_api)]
#![cfg_attr(feature = "std", feature(io_error_inprogress))]
use core::{cell::Cell, marker::PhantomData};
use alloc::rc::Rc;
pub mod addr;
pub mod allocator;
pub mod arch;
pub mod config;
pub mod console;
pub mod cpu;
pub mod delay;
pub mod device_tree;
pub mod dvfs;
pub mod file;
pub mod graphics;
pub mod interrupt;
pub mod local_heap;
pub mod logger;
pub mod mmio;
pub mod net;
pub mod priority_queue;
pub mod sanity;
pub mod sync;
pub mod time;
pub mod timer;
pub mod unwind;
#[cfg(feature = "std")]
pub mod file_control;
#[cfg(feature = "std")]
pub mod select;
#[cfg(not(feature = "std"))]
pub mod heap;
#[cfg(not(feature = "std"))]
pub mod dma_pool;
#[cfg(not(feature = "std"))]
pub mod context;
pub mod paging;
extern crate alloc;
pub type PhantomUnsync = PhantomData<Cell<()>>;
pub type PhantomUnsend = PhantomData<Rc<()>>;
#[cfg(feature = "std")]
pub const IS_STD: bool = true;
#[cfg(not(feature = "std"))]
pub const IS_STD: bool = false;
#[macro_export]
macro_rules! err_msg {
($m:expr) => {
concat!(file!(), ":", line!(), ":", column!(), ": ", $m)
};
}