1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
//! Rusty wrapper for the Unified Extensible Firmware Interface. //! //! # Crate organisation //! //! The top-level module contains some of the most used types, //! such as the result and error types, or other common data structures //! such as GUIDs and handles. //! //! ## Tables and protocols //! //! The `table` module contains definitions of the UEFI tables, //! which are structures containing some basic functions and references to other tables. //! Most importantly, the boot services table also provides a way to obtain **protocol** handles. //! //! The `proto` module contains the standard UEFI protocols, which are normally provided //! by the various UEFI drivers and firmware layers. //! //! ## Adapting to local conditions //! //! Unlike system tables, which are present on *all* UEFI implementations, //! protocols *may* or *may not* be present on a certain system. //! //! For example, a PC with no network card might not contain a network driver, //! therefore all the network protocols will be unavailable. #![cfg_attr(feature = "exts", feature(allocator_api, alloc_layout_extra))] #![feature(optin_builtin_traits)] #![feature(try_trait)] #![feature(abi_efiapi)] #![feature(negative_impls)] #![no_std] // Enable some additional warnings and lints. #![warn(missing_docs, unused)] #![deny(clippy::all)] // `uefi-exts` requires access to memory allocation APIs. #[cfg(feature = "exts")] extern crate alloc as alloc_api; #[macro_use] pub mod data_types; pub use self::data_types::{unsafe_guid, Identify}; pub use self::data_types::{CStr16, CStr8, Char16, Char8, Event, Guid, Handle}; mod result; pub use self::result::{Completion, Result, ResultExt, Status}; pub mod table; pub mod proto; pub mod prelude; #[cfg(feature = "alloc")] pub mod alloc; #[cfg(feature = "exts")] pub mod exts; #[cfg(feature = "logger")] pub mod logger;