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

Support wasm target for clock example #2422

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

skygrango
Copy link
Contributor

@skygrango skygrango commented May 3, 2024

base on #2421

Fix the env loading problem by enabling wasm-bindgen feature with instant

problem : it failed on firefox
log : https://gist.github.com/skygrango/6561e1a77a147c664f62ab2fef248a74

<wgpu::backend::wgpu_core::ContextWgpuCore as wgpu::context::Context>::device_create_render_pipeline::he39460428393c56b http://127.0.0.1:8080/clock-c25483e98ad88e58_bg.wasm:4833636
<T as wgpu::context::DynContext>::device_create_render_pipeline::h77fdafe577d5f84d http://127.0.0.1:8080/clock-c25483e98ad88e58_bg.wasm:17303843`

I don't know how to fix it, maybe something wrong with widget/canvas

it almost work on chrome, except for drawing text
螢幕截圖_20240503_142518-1

There is a long-standing problem (time-rs/time#293) that has not yet been solved by time-rs
Switch to chrono as it seemed to solve the problem (chronotope/chrono#677)
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.

None yet

1 participant