From a7332fba1f72e05d9f730ef6093f3555b7ad28e7 Mon Sep 17 00:00:00 2001 From: Nicholas Bishop Date: Tue, 20 Aug 2024 14:35:18 -0400 Subject: [PATCH] uefi: Inline the template example into lib.rs doc This include is blocking the release job: https://github.com/rust-osdev/uefi-rs/pull/1330#issuecomment-2299476889 For now, just inline the example so that we can release. Filed https://github.com/rust-osdev/uefi-rs/issues/1337 to track a better fix. --- uefi/src/lib.rs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/uefi/src/lib.rs b/uefi/src/lib.rs index d5e1423e9..851dd74a7 100644 --- a/uefi/src/lib.rs +++ b/uefi/src/lib.rs @@ -13,7 +13,17 @@ //! `uefi` crate: //! //! ```ignore -#![doc = include_str!("../../template/src/main.rs")] +//! #![no_main] +//! #![no_std] +//! +//! use uefi::prelude::*; +//! +//! #[entry] +//! fn main(_handle: Handle, system_table: SystemTable) -> Status { +//! uefi::helpers::init().unwrap(); +//! +//! Status::SUCCESS +//! } //! ``` //! //! Please find more info in our [Rust UEFI Book].