uefi-macros - [Unreleased]
uefi-macros - v0.20 (2026-09-21)
Added
Changed
- MSRV increased from 1.88 to 1.91.
uefi-macros - v0.19 (2025-10-21)
Changed
- Breaking: The MSRV is now 1.85.1 and the crate uses the Rust 2024 edition.
uefi-macros - 0.18.1 (2025-05-04)
Minor documentation updates.
uefi-macros - 0.18.0 (2025-02-07)
As of this release, the project has been relicensed from MPL-2.0 to Apache-2.0/MIT, to better align with the Rust crate ecosystem. (This does not alter the license of previous releases.) Details at https://github.com/rust-osdev/uefi-rs/issues/1470.
uefi-macros - 0.17.0 (2024-10-23)
Changed
- Breaking: The
entryno longer accepts any arguments.
uefi-macros - 0.16.0 (2024-09-09)
Changed
- Internal updates to the
entrymacro related to Deprecating SystemTable/BootServices/RuntimeServices.
uefi-macros - 0.15.0 (2024-08-20)
Changed
- The
entrymacro now accepts a function with zero arguments in addition to the two-argument form.
uefi-macros - 0.14.0 (2024-07-02)
Changed
- The
entrymacro now sets the global system table pointer withuefi::set_system_table.
Removed
- Removed the
cstr8andcstr16macros. Use the declarative macros of the same names exported by theueficrate as a replacement.
uefi-macros - 0.13.0 (2023-11-12)
Changed
- The dev-dependency on
uefiis now path-only.
uefi-macros - 0.12.0 (2023-05-15)
Changed
- The
unsafe_protocolmacro no longer makes protocols!Sendand!Sync. Protocols can only be used while boot services are active, and that's already a single-threaded environment, so these negative traits do not have any effect. - The
unsafe_protocolmacro now accepts the path of aGuidconstant in addition to a string literal. - The
cstr8and thecstr16macros now both accept(nothing)and""(empty inputs) to create valid empty strings. They include the null-byte. - The
entrymacro now works correctly with docstrings.
uefi-macros - 0.11.0 (2023-03-19)
Changed
- Errors produced by the
entrymacro have been improved.
uefi-macros - 0.10.0 (2023-01-16)
Added
- Added the
unsafe_protocolmacro to provide a slightly nicer way to implement protocols.
Removed
- The
unsafe_guidattribute macro andProtocolderive macro have been removed. For implementing protocols, use theunsafe_protocolmacro instead. For any other implementations of theIdentifytrait, implement it directly.
uefi-macros - 0.9.0 (2022-11-15)
Added
- Added a
guid!macro. This is similar toGuid::from_values, but takes a more convenient string argument like theunsafe_guid!attribute macro.
uefi-macros - 0.8.0 (2022-09-09)
Changed
- The
#[entry]macro now callsBootServices::set_image_handleto set the global image handle. Due to this change, the two arguments to main must both be named (e.g.image: Handleand_image: Handleare both OK, but not_: Handle).
uefi-macros - 0.7.1 (2022-08-26)
Changed
- Relaxed the version requirements for the
proc-macro2,quote, andsyncdependencies to allow earlier patch versions.
uefi-macros - 0.7.0 (2022-05-16)
Added
- Added
cstr8andcstr16macros for creatingCStr8/CStr16string literals at compile time.
uefi-macros - 0.6.1 (2022-03-15)
Changed
- Updated to the 2021 edition.