From c4aea077530cd1742136f986ea78071e28b424df Mon Sep 17 00:00:00 2001 From: Charles Bournhonesque Date: Thu, 14 Dec 2023 11:36:24 -0500 Subject: [PATCH] Make SystemTime available in both native and wasm (#10980) # Objective `Instant` and `Duration` from the `instant` crate are exposed in `bevy_utils` to have a single abstraction for native/wasm. It would be useful to have the same thing for [`SystemTime`](https://doc.rust-lang.org/std/time/struct.SystemTime.html). --- ## Changelog ### Added - `bevy_utils` now re-exposes the `instant::SystemTime` struct Co-authored-by: Charles Bournhonesque --- crates/bevy_utils/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_utils/src/lib.rs b/crates/bevy_utils/src/lib.rs index fadbf1c1a0..ec7344e3b1 100644 --- a/crates/bevy_utils/src/lib.rs +++ b/crates/bevy_utils/src/lib.rs @@ -31,7 +31,7 @@ pub use cow_arc::*; pub use default::default; pub use float_ord::*; pub use hashbrown; -pub use instant::{Duration, Instant}; +pub use instant::{Duration, Instant, SystemTime}; pub use petgraph; pub use thiserror; pub use tracing;