Skip to content

Commit 70122b5

Browse files
authored
Merge pull request #1385 from rust-osdev/bishop-more-deprecate
uefi: Deprecate SystemTableView, Boot, and Runtime
2 parents ae92daf + d478e10 commit 70122b5

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

uefi/CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ how to integrate the `uefi` crate into them.
1212

1313
## Changed
1414
- The `BootServices`, `RuntimeServices`, and `SystemTable` structs have been
15-
deprecated. Use the `uefi::boot` and `uefi::runtime`, and `uefi::system`
16-
modules instead.
15+
deprecated (as well as related types `Boot`, `Runtime`, and
16+
`SystemTableView`). Use the `uefi::boot` and `uefi::runtime`, and
17+
`uefi::system` modules instead.
1718
- In `uefi::table::boot`, `ScopedProtocol`, `TplGuard`, `ProtocolsPerHandle`,
1819
and `HandleBuffer` have been deprecated. Use the structs of the same name in
1920
`uefi::boot` instead.

uefi/src/table/system.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,17 @@ use uefi::mem::memory_map::{
1414
};
1515

1616
/// Marker trait used to provide different views of the UEFI System Table.
17+
#[deprecated = "Use the uefi::system, uefi::boot, and uefi::runtime modules instead. See https://github.com/rust-osdev/uefi-rs/blob/HEAD/docs/funcs_migration.md"]
1718
pub trait SystemTableView {}
1819

1920
/// Marker struct associated with the boot view of the UEFI System Table.
21+
#[deprecated = "Use the uefi::boot module instead. See https://github.com/rust-osdev/uefi-rs/blob/HEAD/docs/funcs_migration.md"]
2022
#[derive(Debug)]
2123
pub struct Boot;
2224
impl SystemTableView for Boot {}
2325

2426
/// Marker struct associated with the run-time view of the UEFI System Table.
27+
#[deprecated = "Use the uefi::runtime module instead. See https://github.com/rust-osdev/uefi-rs/blob/HEAD/docs/funcs_migration.md"]
2528
#[derive(Debug)]
2629
pub struct Runtime;
2730
impl SystemTableView for Runtime {}

0 commit comments

Comments
 (0)