Skip to content

Commit b92eb63

Browse files
uefi: Add "unstable" feature
The unstable feature will be used to gate the use of new unstable features. We hope to make the uefi crate work on the stable channel once the `abi_efiapi` and `default_alloc_error_handler` features are stabilized, so we don't want to start relying unconditionally on new unstable features. For now the new feature doesn't do anything, but we have a couple changes landing soon that will be gated by this feature.
1 parent ffa9b1a commit b92eb63

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

uefi/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ logger = []
1919
# were observed on the VirtualBox UEFI implementation (see uefi-rs#121).
2020
# In those cases, this feature can be excluded by removing the default features.
2121
panic-on-logger-errors = []
22+
unstable = []
2223

2324
[dependencies]
2425
bitflags = "1.3.1"

uefi/src/lib.rs

+7
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@
3232
//! is not a high-performance logger.
3333
//! - `panic-on-logger-errors` (enabled by default): Panic if a text
3434
//! output error occurs in the logger.
35+
//! - `unstable`: Enable functionality that depends on [unstable
36+
//! features] in the nightly compiler. Note that currently the `uefi`
37+
//! crate _always_ requires unstable features even if the `unstable`
38+
//! feature is not enabled, but once a couple more required features
39+
//! are stabilized we intend to make the `uefi` crate work on the
40+
//! stable channel by default.
3541
//!
3642
//! The `global_allocator` and `logger` features require special
3743
//! handling to perform initialization and tear-down. The
@@ -48,6 +54,7 @@
4854
//!
4955
//! [`GlobalAlloc`]: alloc::alloc::GlobalAlloc
5056
//! [`uefi-services`]: https://crates.io/crates/uefi-services
57+
//! [unstable features]: https://doc.rust-lang.org/unstable-book/
5158
5259
#![feature(abi_efiapi)]
5360
#![feature(maybe_uninit_slice)]

0 commit comments

Comments
 (0)