microsoft/openvmm
Publicmirrored fromhttps://github.com/microsoft/openvmmAvailable
guest_test_uefi/src/main.rs
18lines · modecode
| 1 | // Copyright (c) Microsoft Corporation. |
| 2 | // Licensed under the MIT License. |
| 3 | |
| 4 | #![doc = include_str!("../README.md")] |
| 5 | // HACK: workaround for building guest_test_uefi as part of the workspace in CI. |
| 6 | #![cfg_attr(all(not(test), target_os = "uefi"), no_main)] |
| 7 | #![cfg_attr(all(not(test), target_os = "uefi"), no_std)] |
| 8 | |
| 9 | // HACK: workaround for building guest_test_uefi as part of the workspace in CI |
| 10 | // |
| 11 | // Actual entrypoint is `uefi::uefi_main`, via the `#[entry]` macro |
| 12 | #[cfg(any(test, not(target_os = "uefi")))] |
| 13 | fn main() {} |
| 14 | |
| 15 | #[macro_use] |
| 16 | extern crate alloc; |
| 17 | |
| 18 | mod uefi; |
| 19 | |