You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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};
The text was updated successfully, but these errors were encountered:
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:
sync.rs
Original code:
New code:
The text was updated successfully, but these errors were encountered: