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
I am not crazy! I will not fill out this form just to ask a question or request a feature. Pinky promise.
Is there an existing issue for this?
I have searched the existing issues.
Is this issue related to iced?
My hardware is compatible and my graphics drivers are up-to-date.
What happened?
Running a program that has a subscription that runs in intervals with time::every in WASM displays a blank page
Commenting out the subscription, or returning Subscription::none()
The page should display the counter and increment it every second
Version
crates.io release
Operating System
Windows
Do you have any log output?
DevTools console (not sure if relevant):
Uncaught TypeError: Failed to resolve module specifier "env". Relative references must start with either "/", "./", or "../".
The text was updated successfully, but these errors were encountered:
I have investigated a bit and it seems this is caused by the instant crate trying to pull in something that it can't. It's a transitive dependency of wasm_timer, which is used in iced-futures. This problem has been known for quite some time, but neither wasm_timer nor instant have been updated in the last 4 years. There is a fork of wasm_time called wasmtimer that also hasn't received an update in a year, but seems to have solved the problem.
Considering the instant crate has by now been marked as "unmaintained" by RUSTSEC (https://rustsec.org/advisories/RUSTSEC-2024-0384.html), replacing it in some form or another seems like something that probably should be looked into.
Is your issue REALLY a bug?
Is there an existing issue for this?
Is this issue related to iced?
What happened?
Running a program that has a subscription that runs in intervals with time::every in WASM displays a blank page
Commenting out the subscription, or returning Subscription::none()
SSCCE
src/main.rs
index.html
Ran with:
trunk serve
What is the expected behavior?
The page should display the counter and increment it every second
Version
crates.io release
Operating System
Windows
Do you have any log output?
The text was updated successfully, but these errors were encountered: