File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 81
81
//!
82
82
//! For more details of UEFI itself, see the latest [UEFI Specification][spec].
83
83
//!
84
- //! # Crate organisation
84
+ //! # Library Structure & Tips
85
85
//!
86
86
//! The top-level module contains some of the most used types and macros,
87
87
//! including the [`Handle`] and [`Result`] types, the [`CStr16`] and
88
88
//! [`CString16`] types for working with UCS-2 strings, and the [`entry`] and
89
89
//! [`guid`] macros.
90
90
//!
91
+ //! ## UEFI Strings
92
+ //!
93
+ //! Rust string literals are UTF-8 encoded and thus, not compatible with most
94
+ //! UEFI interfaces. We provide [`CStr16`] and [`CString16`] for proper working
95
+ //! with UCS-2 strings, including various transformation functions from standard
96
+ //! Rust strings. You can use [`ctr16!`] to create UCS-2 string literals at
97
+ //! compile time.
98
+ //!
91
99
//! ## Tables
92
100
//!
93
101
//! The [`SystemTable`] provides access to almost everything in UEFI. It comes
205
213
//! [`SystemTable`]: table::SystemTable
206
214
//! [`r-efi`]: https://crates.io/crates/r-efi
207
215
//! [`entry-macro`]: uefi_macros::entry
216
+ //! [`ctr16!`]: crate::cstr16
208
217
//! [`unsafe_protocol`]: proto::unsafe_protocol
209
218
//! [contributing]: https://github.com/rust-osdev/uefi-rs/blob/main/CONTRIBUTING.md
210
219
//! [issue tracker]: https://github.com/rust-osdev/uefi-rs/issues
You can’t perform that action at this time.
0 commit comments