|
120 | 120 | //!
|
121 | 121 | //! ## Optional Cargo crate features
|
122 | 122 | //!
|
| 123 | +//! A list of recommended default features follows below. |
| 124 | +//! |
| 125 | +//! ### Feature List |
| 126 | +//! |
123 | 127 | //! - `alloc`: Enable functionality requiring the [`alloc`] crate from
|
124 | 128 | //! the Rust standard library. For example, methods that return a
|
125 | 129 | //! `Vec` rather than filling a statically-sized array. This requires
|
|
134 | 138 | //! - `logger`: Logging implementation for the standard [`log`] crate
|
135 | 139 | //! that prints output to the UEFI console. No buffering is done; this
|
136 | 140 | //! is not a high-performance logger.
|
| 141 | +//! - `log-debugcon`: Whether the logger set up by `logger` should also log |
| 142 | +//! to the debugcon device (available in QEMU or Cloud Hypervisor on x86). |
137 | 143 | //! - `panic_handler`: Add a default panic handler that logs to `stdout`.
|
138 | 144 | //! - `unstable`: Enable functionality that depends on [unstable
|
139 | 145 | //! features] in the nightly compiler.
|
|
147 | 153 | //! only unfold their potential when you invoke `uefi::helpers::init` as soon
|
148 | 154 | //! as possible in your application.
|
149 | 155 | //!
|
| 156 | +//! ### Recommended Default Features |
| 157 | +//! |
| 158 | +//! In typical use-cases, the following features are useful for you: |
| 159 | +//! - Building a UEFI image: |
| 160 | +//! - Recommended: `alloc`, `global_allocator`, `logger`, `panic_handler` |
| 161 | +//! - Optional : `log-debugcon`, `unstable`, `qemu` |
| 162 | +//! - Building another application/library: |
| 163 | +//! - Recommended: `alloc`, |
| 164 | +//! - Optional : `unstable` |
| 165 | +//! |
150 | 166 | //! # Discuss and Contribute
|
151 | 167 | //!
|
152 | 168 | //! For general discussions, feel free to join us in our [Zulip] and ask
|
|
0 commit comments