Open
Description
I want to use this crate in WASM. However, it's blocked by the "std::time" in the dependency of "globalcache". But I couldn't find anywhere to submit a PR for the global cache crate, so I want to put my comment here.
The fix is straightforward:
- Add "web-time" to the globalcache:
[dependencies]
web-time = "1.1.0"
- change the
sync.rs
Original code:
use std::time::{Instance, Duration};
New code:
use web_time::{Instant, Duration};
Metadata
Metadata
Assignees
Labels
No labels