jaemk / cached

Rust cache structures and easy function memoization
MIT License
1.58k stars 95 forks source link

wasm-bindgen & stdweb feature flags #31

Closed germangb closed 4 years ago

germangb commented 4 years ago

The TimedCache doesn't work in wasm builds due std::time::Instant not being supported

The instant crate adds support for both stdweb and wasm-bindgen (I've only tried with the later).

In non-wasm builds the crate is a pass-through to std::time