tracing-tree icon indicating copy to clipboard operation
tracing-tree copied to clipboard

Use web_time::time instead of std::time to prevent panic on wasm.

Open 94bryanr opened this issue 9 months ago • 1 comments

Using this crate on a wasm target causes an immediate panic when Instant from std::time is created. It would be great if std::time could be replaced with web_time which calls browser native time functions when built for wasm, and simply re-exports std::time when not built for wasm.

94bryanr avatar Feb 20 '25 23:02 94bryanr