Skip to content

Commit a7332fb

Browse files
uefi: Inline the template example into lib.rs doc
This include is blocking the release job: #1330 (comment) For now, just inline the example so that we can release. Filed #1337 to track a better fix.
1 parent fad2ede commit a7332fb

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Diff for: 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)