patina 21.1.1

Common types and functionality used in UEFI development.
Documentation
//! Software Development Kit (SDK) for Patina
//!
//! This crate implements the core SDK for Patina and is only part of the Patina
//! solution. For general knowledge on Patina, refer to the [Patina book](https://opendevicepartnership.github.io/patina/).
//!
//! ## Features
//!
//! - `core`: Exposes additional items in the [component] module necessary to
//!   manage and execute components and their dependencies.
//!
//! ## License
//!
//! Copyright (C) Microsoft Corporation.
//!
//! SPDX-License-Identifier: Apache-2.0
//!
#![cfg_attr(all(not(feature = "std"), not(test), not(feature = "mockall")), no_std)]
#![cfg_attr(any(test, feature = "alloc"), feature(allocator_api))]
#![allow(static_mut_refs)]
#![feature(coverage_attribute)]

#[cfg(any(test, feature = "alloc"))]
extern crate alloc;

pub use base::guid::{BinaryGuid, Guid, GuidError, OwnedGuid};

/// Common GUID constants
pub mod guid_constants {
    pub use super::base::guid::OwnedGuid;
    /// Zero GUID constant (00000000-0000-0000-0000-000000000000)
    pub const ZERO_GUID: OwnedGuid = OwnedGuid::ZERO;
}

#[macro_use]
pub mod macros;

pub mod arch;
pub mod base;
#[cfg(any(test, feature = "alloc"))]
pub mod boot_services;
#[cfg(any(test, feature = "alloc"))]
pub mod component;
#[cfg(any(test, feature = "alloc"))]
pub mod device_path;
#[cfg(any(test, feature = "alloc"))]
pub mod driver_binding;
pub mod efi_types;
pub mod error;
pub mod guids;
pub mod hash;
pub mod log;
pub mod management_mode;
#[cfg(any(test, feature = "alloc"))]
pub mod performance;
pub mod pi;
#[cfg(any(test, feature = "alloc"))]
pub mod runtime_services;
pub mod serial;
#[cfg(any(test, feature = "alloc"))]
pub mod tpl_mutex;
#[cfg(any(test, feature = "alloc"))]
pub mod uefi_protocol;

/// Re-export of the [`safe-mmio`](https://crates.io/crates/safe-mmio) crate.
///
/// Consumers should use `patina::mmio` instead of depending on `safe-mmio` directly.
pub mod mmio {
    pub use safe_mmio::*;
}