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

Does not work out of the box with wasm32-unknown-unknown (but there's a workaround) #59

Open
wackazong opened this issue May 22, 2023 · 2 comments

Comments

@wackazong
Copy link

wackazong commented May 22, 2023

When using the crate in a project targeting wasm32-unknown-unknown, the following needs to be added to the project's cargo.toml:

instant = { version = "0.1.12", features = ["wasm-bindgen"] }

Otherwise an error described here is logged (in my case to the browser console).

@Xuanwo
Copy link
Owner

Xuanwo commented May 22, 2023

backon doesn't call now() and fastrand already uses instant in wasm32. Can you provide more detailed repro for this issue?

@wackazong
Copy link
Author

Interesting. I will try to find out why this is happening.

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