Skip to content

Parse GUIDs from strings

Tim Crawford requested to merge tcrawford/uefi:guid into master

Add the ability to parse a string literal into a GUID. The string must be in the form "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX", where 'X' is a hex digit.

Provides a macro, made available in the prelude, to simplify GUID creation:

use uefi::prelude::*;

const MY_GUID: Guid = guid!("bed82a20-4cfb-4eab-854d-2be7adb606dc");

Deprecates GuidKind as Guid already implements Eq and PartialEq.

Edited by Tim Crawford

Merge request reports