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
There is a js feature which enables uuid/js feature, to use a web safe random generator. However, it seems that Moka still uses time somewhere, because in the browser the app panics on time not implemented on this platform. I would love to be able to use Moka in a web app (rust wasm), but am not sure if this is a use case that is intended to be supported, and currently broken (or I am doing something wrong), or if this is simply not what Moka is meant for.
Thanks!
The text was updated successfully, but these errors were encountered:
Hi. Sorry for the confusion. Unfortunately, the js feature was half-done by #173 and I would not surprise to see it is broken. I think we should remove the feature in next release.
Currently, we have not decided whether to make Moka to support WASM platform or not. And we do not have enough resource to develop it now:
Some people have asked if moka would support Wasm platform. Currently, mokas primary goal is to provide the best performance and convenient features for concurrent programing, and it conflicts with common requirements in Wasm platform.
To support Wasm, it looks like we will need to develop a complete different and very simple implementation. We will revisit this and evaluate options.
I put a list of other cache implementations (crates) in the linked issue comment above, and if you can use some of them, that would be great. But if you cannot use any of them, because e.g. missing some features you need, please let us know.
There is a
js
feature which enablesuuid/js
feature, to use a web safe random generator. However, it seems that Moka still usestime
somewhere, because in the browser the app panics on time not implemented on this platform. I would love to be able to use Moka in a web app (rust wasm), but am not sure if this is a use case that is intended to be supported, and currently broken (or I am doing something wrong), or if this is simply not what Moka is meant for.Thanks!
The text was updated successfully, but these errors were encountered: