|
11 | 11 | - `PcrEvent`/`PcrEventInputs` impl `Align`, `Eq`, and `PartialEq`.
|
12 | 12 | - Added `PcrEvent::new_in_box` and `PcrEventInputs::new_in_box`.
|
13 | 13 | - `VariableKey` impls `Clone`, `Eq`, `PartialEq`, `Ord`, `PartialOrd`, and `Hash`.
|
| 14 | +- The traits `MemoryMap` and `MemoryMapMut` have been introduced together with |
| 15 | + the implementations `MemoryMapRef`, `MemoryMapRefMut`, and `MemoryMapOwned`. |
| 16 | + This comes with some changes. Read below. We recommend to directly use the |
| 17 | + implementations instead of the traits. |
14 | 18 |
|
15 | 19 | ## Changed
|
16 | 20 | - **Breaking:** `uefi::helpers::init` no longer takes an argument.
|
17 | 21 | - The lifetime of the `SearchType` returned from
|
18 | 22 | `BootServices::register_protocol_notify` is now tied to the protocol GUID.
|
19 |
| -- The traits `MemoryMap` and `MemoryMapMut` have been introduced together with |
20 |
| - the implementations `MemoryMapRef`, `MemoryMapRefMut`, and `MemoryMapOwned`. |
21 | 23 | The old `MemoryMap` was renamed to `MemoryMapOwned`.
|
22 | 24 | - `pub fn memory_map(&self, mt: MemoryType) -> Result<MemoryMap>` now returns
|
23 | 25 | a `MemoryMapOwned`.
|
24 | 26 | - **Breaking:** `PcrEvent::new_in_buffer` and `PcrEventInputs::new_in_buffer`
|
25 | 27 | now take an initialized buffer (`[u8`] instead of `[MaybeUninit<u8>]`), and if
|
26 | 28 | the buffer is too small the required size is returned in the error data.
|
27 |
| -- **Breaking** Exports of Memory Map-related types from `uefi::table::boot` are |
| 29 | +- **Breaking:** The type `MemoryMap` was renamed to `MemoryMapOwned`. `MemoryMap` |
| 30 | + is now a trait. Read the [documentation](https://docs.rs/uefi/latest/uefi/) of the |
| 31 | + `uefi > mem > memory_map` module to learn more. |
| 32 | +- **Breaking:** Exports of Memory Map-related types from `uefi::table::boot` are |
28 | 33 | now removed. Use `uefi::mem::memory_map` instead. The patch you have to apply
|
29 | 34 | to the `use` statements of your code might look as follows:
|
30 | 35 | ```diff
|
31 |
| - 1c1,2 |
32 | 36 | < use uefi::table::boot::{BootServices, MemoryMap, MemoryMapMut, MemoryType};
|
33 | 37 | ---
|
34 | 38 | > use uefi::mem::memory_map::{MemoryMap, MemoryMapMut, MemoryType};
|
|
0 commit comments