Skip to content

Commit 1cb0e6e

Browse files
authored
Merge pull request #1338 from nicholasbishop/bishop-copy-template
uefi: Inline the template example into lib.rs doc
2 parents fad2ede + a7332fb commit 1cb0e6e

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

uefi/src/lib.rs

+11-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,17 @@
1313
//! `uefi` crate:
1414
//!
1515
//! ```ignore
16-
#![doc = include_str!("../../template/src/main.rs")]
16+
//! #![no_main]
17+
//! #![no_std]
18+
//!
19+
//! use uefi::prelude::*;
20+
//!
21+
//! #[entry]
22+
//! fn main(_handle: Handle, system_table: SystemTable<Boot>) -> Status {
23+
//! uefi::helpers::init().unwrap();
24+
//!
25+
//! Status::SUCCESS
26+
//! }
1727
//! ```
1828
//!
1929
//! Please find more info in our [Rust UEFI Book].

0 commit comments

Comments
 (0)