xref: /linux/rust/kernel/prelude.rs (revision 2da68a77)
1 // SPDX-License-Identifier: GPL-2.0
2 
3 //! The `kernel` prelude.
4 //!
5 //! These are the most common items used by Rust code in the kernel,
6 //! intended to be imported by all Rust code, for convenience.
7 //!
8 //! # Examples
9 //!
10 //! ```
11 //! use kernel::prelude::*;
12 //! ```
13 
14 pub use super::{
15     error::{Error, Result},
16     pr_emerg, pr_info, ThisModule,
17 };
18 pub use alloc::{boxed::Box, vec::Vec};
19 pub use core::pin::Pin;
20 pub use macros::module;
21