From 23bd7d7691bb088331c4dfbf75e5c84ffa942e7a Mon Sep 17 00:00:00 2001 From: bflatastic Date: Mon, 23 Nov 2026 20:35:42 +0700 Subject: [PATCH] The web build has web-time again for the status bar's Date and Time readout --- crates/ui-egui/Cargo.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/ui-egui/Cargo.toml b/crates/ui-egui/Cargo.toml index 7484998eca..fb7c31eed0 100644 --- a/crates/ui-egui/Cargo.toml +++ b/crates/ui-egui/Cargo.toml @@ -84,6 +84,11 @@ craft = { workspace = true, features = ["dialogs", "update"] } # Cargo.lock with the time-zone crates `clock` uses. chrono = { workspace = true, features = ["clock"] } +[target.'cfg(target_arch = "wasm32")'.dependencies] +# The status bar's Date and Time readout reads the page's clock with this crate in the web build. It +# is MIT OR Apache-2.0 and already in the build through eframe. +web-time = "1" + # The current user's id (`geteuid`): Preview in Browser uses its temporary folder only when that # user owns it (src/dialogs/save_for_web.rs). Already in Cargo.lock (tempfile), so this adds no # new crate.