Skip to content

Commit

Permalink
Merge pull request rust-osdev#1385 from rust-osdev/bishop-more-deprecate
Browse files Browse the repository at this point in the history
uefi: Deprecate SystemTableView, Boot, and Runtime
  • Loading branch information
phip1611 committed Aug 29, 2024
2 parents ae92daf + d478e10 commit 70122b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions uefi/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ how to integrate the `uefi` crate into them.

## Changed
- The `BootServices`, `RuntimeServices`, and `SystemTable` structs have been
deprecated. Use the `uefi::boot` and `uefi::runtime`, and `uefi::system`
modules instead.
deprecated (as well as related types `Boot`, `Runtime`, and
`SystemTableView`). Use the `uefi::boot` and `uefi::runtime`, and
`uefi::system` modules instead.
- In `uefi::table::boot`, `ScopedProtocol`, `TplGuard`, `ProtocolsPerHandle`,
and `HandleBuffer` have been deprecated. Use the structs of the same name in
`uefi::boot` instead.
Expand Down
3 changes: 3 additions & 0 deletions uefi/src/table/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,17 @@ use uefi::mem::memory_map::{
};

/// Marker trait used to provide different views of the UEFI System Table.
#[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"]
pub trait SystemTableView {}

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

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

0 comments on commit 70122b5

Please sign in to comment.