mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-15 16:26:48 +00:00
20 lines
441 B
Rust
20 lines
441 B
Rust
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
//! The prelude.
|
|
|
|
/// A specialized [`Result`] type for this crate.
|
|
///
|
|
/// [`Result`]: core::result::Result
|
|
pub type Result<T> = core::result::Result<T, crate::error::Error>;
|
|
|
|
pub(crate) use alloc::{boxed::Box, sync::Arc, vec::Vec};
|
|
|
|
#[cfg(ktest)]
|
|
pub use ostd_macros::ktest;
|
|
|
|
pub use crate::{
|
|
early_print as print, early_println as println,
|
|
mm::{Paddr, UntypedMem, Vaddr},
|
|
panic::abort,
|
|
};
|