Skip to content

Commit dc92697

Browse files
Merge pull request #1367 from nicholasbishop/bishop-deprecate-bs
uefi: Deprecate BootServices
2 parents 244667a + 5828189 commit dc92697

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

uefi/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# uefi - [Unreleased]
22

3+
See [Deprecating SystemTable/BootServices/RuntimeServices][funcmigrate] for
4+
details of the deprecation in this release.
5+
36
We added documentation to `lib.rs` and the [uefi-rs book] about how
47
`uefi` compares to "standard Rust binaries" for UEFI (those using `std`), and
58
how to integrate the `uefi` crate into them.
@@ -8,6 +11,8 @@ how to integrate the `uefi` crate into them.
811
- Added `Handle::new`
912

1013
## Changed
14+
- The `BootServices` and `RuntimeServices` structs have been deprecated. Use
15+
the `uefi::runtime` and `uefi::boot` modules instead.
1116
- **Breaking:** The conversion functions between device paths and text no longer
1217
take a `BootServices` argument. The global system table is used instead.
1318
- **Breaking:** `GraphicsOutput::modes` no longer takes a `BootServices`

uefi/src/prelude.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
pub use crate::{cstr16, cstr8, entry, Handle, ResultExt, Status, StatusExt};
66

77
// Import the basic table types.
8+
#[allow(deprecated)]
89
pub use crate::table::boot::BootServices;
910
#[allow(deprecated)]
1011
pub use crate::table::runtime::RuntimeServices;

uefi/src/table/boot.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
//! UEFI services available during boot.
22
3+
#![allow(deprecated)]
4+
35
pub use crate::boot::{
46
AllocateType, EventNotifyFn, LoadImageSource, OpenProtocolAttributes, OpenProtocolParams,
57
ProtocolSearchKey, SearchType, TimerTrigger,
@@ -79,6 +81,7 @@ pub const PAGE_SIZE: usize = 4096;
7981
///
8082
/// [`Output`]: crate::proto::console::text::Output
8183
/// [`open_protocol`]: BootServices::open_protocol
84+
#[deprecated = "Use the uefi::boot module instead. See https://github.com/rust-osdev/uefi-rs/blob/HEAD/docs/funcs_migration.md"]
8285
#[derive(Debug)]
8386
#[repr(transparent)]
8487
pub struct BootServices(uefi_raw::table::boot::BootServices);

0 commit comments

Comments
 (0)