Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider swapping to web-time from instant #323

Open
AndrewJSchoen opened this issue Jun 7, 2023 · 0 comments
Open

Consider swapping to web-time from instant #323

AndrewJSchoen opened this issue Jun 7, 2023 · 0 comments
Assignees

Comments

@AndrewJSchoen
Copy link
Contributor

Is your feature request related to a problem? Please describe.
wasm-bindgen 0.2.86 effectively breaks the stdweb library, which is a pretty old library that is an optional dependency of instant. While instant still currently works, as long as that stdweb feature isn't enabled, it hasn't seen updates in a while and apparently has 2 critical issues, according to a long discussion post in the rust discord.

Describe the solution you'd like
Apparently, however, a new library meant as a drop-in replacement to instant now exists, called web-time (github), which aims to have greater similarity with sys::time. I have tried it in one of my projects, and it seems to work just fine. Like instant, it reverts to using sys::time if not in the browser.

Describe alternatives you've considered
The main option would be to continue using instant, being aware that the stdweb feature shouldn't be enabled.

Additional context
Github issue with stdweb and wasm-bindgen

@alphaville alphaville self-assigned this Jun 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants