Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4e71cef

Browse files
committedJul 1, 2022
cargo: additive panic-handler feature
This commit is a breaking change
1 parent 14058e5 commit 4e71cef

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
 

‎uefi-services/Cargo.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ cfg-if = "1.0.0"
2121
qemu-exit = { version = "3.0.1", optional = true }
2222

2323
[features]
24+
default-features = ["panic_handler"]
2425
# Enable QEMU-specific functionality
2526
qemu = ["qemu-exit"]
26-
no_panic_handler = []
27+
panic_handler = []

‎uefi-services/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ unsafe extern "efiapi" fn exit_boot_services(_e: Event, _ctx: Option<NonNull<c_v
130130
uefi::alloc::exit_boot_services();
131131
}
132132

133-
#[cfg(not(feature = "no_panic_handler"))]
133+
#[cfg(feature = "panic_handler")]
134134
#[panic_handler]
135135
fn panic_handler(info: &core::panic::PanicInfo) -> ! {
136136
error!("{}", info);

0 commit comments

Comments
 (0)
Please sign in to comment.