Skip to content

Commit 53f2bbd

Browse files
committed
uefi: add time feature
1 parent 3b96089 commit 53f2bbd

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

uefi/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
implements `Display`.
1919
- Added `Handle::component_name()` and `Handle::device_path()` to simplify the
2020
common use-case of querying more information about a handle.
21+
- Added a new `time` feature which provides integration with the
22+
[`time` crate](https://crates.io/crates/time). Currently, the main value-add
23+
is the integration of `struct Time` with `OffsetDateTime`.
2124

2225
## Changed
2326
- export all `text::{input, output}::*` types

uefi/Cargo.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,11 @@ rust-version.workspace = true
1818
# Feature documentation in uefi/lib.rs.
1919
[features]
2020
# KEEP this feature list in sync with doc in uefi/lib.rs!
21-
default = [ ]
21+
default = [
22+
"time"
23+
]
2224
alloc = []
25+
time = [ "uefi-raw/time" ]
2326

2427
# Generic gate to code that uses unstable features of Rust, needing a nightly
2528
# toolchain.
@@ -43,7 +46,7 @@ uguid.workspace = true
4346
cfg-if = "1.0.0"
4447
ucs2 = "0.3.3"
4548
uefi-macros = "0.19.0"
46-
uefi-raw = "0.13.0"
49+
uefi-raw = { version = "0.13.0", default-features = false }
4750
qemu-exit = { version = "3.0.2", optional = true }
4851

4952
[package.metadata.docs.rs]

uefi/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@
148148
//! - `log-debugcon`: Whether the logger set up by `logger` should also log
149149
//! to the debugcon device (available in QEMU or Cloud Hypervisor on x86).
150150
//! - `panic_handler`: Add a default panic handler that logs to `stdout`.
151+
//! - `time`: Integration with the [`time` crate](https://crates.io/crates/time)
151152
//! - `unstable`: Enable functionality that depends on [unstable features] in
152153
//! the Rust compiler (nightly version).
153154
//! - `qemu`: Enable some code paths to adapt their execution when executed

0 commit comments

Comments
 (0)