Cargo Features

UEFI has no features set by default.

[dependencies]
uefi = { version = "0.36.1", features = ["alloc", "unstable", "logger", "global_allocator", "panic_handler", "qemu", "log-debugcon"] }

Feature documentation in uefi/lib.rs.

default

KEEP this feature list in sync with doc in uefi/lib.rs!

alloc

Affects boot::find_handles, uefi::fs, polyfill::vec_into_raw_parts, hii::config_routing, hii::config_str, hii::database, file::File.get_boxed_info, proto::ata, proto::nvme, proto::scsi, runtime::get_variable_boxed, runtime::variable_keys, runtime::VariableKeys, runtime::VariableKey

unstable

Generic gate to code that uses unstable features of Rust, needing a nightly toolchain.

logger

Helper features:

global_allocator
panic_handler qemu?
qemu = log-debugcon, panic_handler

Some convenience when running inside QEMU.
- dependency log-debugcon: logical, not technical
- dependency panic_handler: logical, not technical

Enables qemu-exit

log-debugcon qemu?