.
This commit is contained in:
@@ -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]
|
||||
|
||||
@@ -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.
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user