File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 7
7
//! important UEFI concepts. For more details of UEFI, see the latest [UEFI
8
8
//! Specification][spec].
9
9
//!
10
+ //! # Minimal Example
11
+ //!
12
+ //! Minimal example for an UEFI application using functionality of the
13
+ //! `uefi` crate:
14
+ //!
15
+ //! ```ignore
16
+ //! #![no_main]
17
+ //! #![no_std]
18
+ //! use uefi::prelude::*;
19
+ //!
20
+ //! #[entry]
21
+ //! fn main(_image_handle: Handle, _system_table: SystemTable<Boot>) -> Status {
22
+ //! uefi::helpers::init().unwrap();
23
+ //! println!("Hello world!");
24
+ //! Status::SUCCESS
25
+ //! }
26
+ //! ```
27
+ //!
28
+ //! Please find more info in our [Rust UEFI Book].
29
+ //!
10
30
//! # Value-add and Use Cases
11
31
//!
12
32
//! `uefi` supports writing code for both pre- and post-exit boot services
You can’t perform that action at this time.
0 commit comments