Skip to content

Commit 4962cc1

Browse files
phip1611nicholasbishop
authored andcommitted
cargo: additive panic-handler feature
This commit is a breaking change
1 parent 14058e5 commit 4962cc1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

uefi-services/Cargo.toml

Lines changed: 2 additions & 1 deletion
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 = ["panic_handler"]
2425
# Enable QEMU-specific functionality
2526
qemu = ["qemu-exit"]
26-
no_panic_handler = []
27+
panic_handler = []

uefi-services/src/lib.rs

Lines changed: 1 addition & 1 deletion
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)