This commit is contained in:
2026-07-27 17:43:31 +07:00
parent fd32b8c0ce
commit a8bdd49072
3 changed files with 38 additions and 33 deletions

View File

@@ -26,7 +26,7 @@ console_error_panic_hook = "0.1"
tracing-wasm = "0.2"
console_log = "1.0"
wasm-bindgen = "0.2"
universal-time = "0.3.0"
universal-time = { git = "https://github.com/shadowylab/universal-time" }
web-time = "1.1.0"
[target.'cfg(target_arch = "wasm32")'.dependencies]

View File

@@ -1,8 +1,8 @@
use std::time::Duration;
use gpui::*;
use ui::Root;
use universal_time::{Instant, MonotonicClock, SystemTime, WallClock, define_time_provider};
use universal_time::{
Duration, Instant, MonotonicClock, SystemTime, WallClock, define_time_provider,
};
use wasm_bindgen::prelude::*;
struct CustomTimeProvider;
@@ -22,7 +22,7 @@ impl MonotonicClock for CustomTimeProvider {
define_time_provider!(CustomTimeProvider);
fn main() {
// Binary entry point actual initialization happens in `run()` below,
// Binary entry point, actual initialization happens in `run()` below,
// which is called explicitly from JavaScript after the WASM module loads.
}