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

Use crate instant to allow the lib works in wasm #12

Merged
merged 1 commit into from
Jan 3, 2024

Conversation

bladecoder
Copy link
Owner

Fix for #11.

We will use the crate https://github.com/sebcrozet/instant that emulates the struct Instant in WASM and uses the Instant std if native.

Also we avoid to call instant::now() if it is not necessary.

@jaminhaber
Copy link

@bladecoder tested this and it works! (deployed here)

@bladecoder bladecoder merged commit 5a16feb into main Jan 3, 2024
2 checks passed
@bladecoder bladecoder deleted the fix/wasm_instant_now branch January 3, 2024 12:04
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

Successfully merging this pull request may close these issues.

2 participants