fix(lib): migrate to winit 0.30 ApplicationHandler model

winit 0.30.13 removed WindowBuilder and deprecated EventLoop::run. Move
window/GPU creation into ApplicationHandler::resumed, expose AppHandler::setup
hook, switch App::run to run_app, and migrate both examples. pollster becomes a
regular dependency (used by app.rs).
This commit is contained in:
Jérôme Bousquié
2026-09-16 14:17:11 +02:00
parent bb7fab4911
commit 8eec38e55c
6 changed files with 748 additions and 457 deletions
+2 -4
View File
@@ -8,10 +8,8 @@ path = "src/lib.rs"
[dependencies]
wgpu = "30.0.0" # Vérifiez la version la plus récente
winit = "0.29" # For window management — pinned to match examples
winit = "0.30.13" # For window management — pinned to match examples
thiserror = "2"
bytemuck = { version = "1.25.0", features = ["derive"] }
glam = "0.33"
[dev-dependencies]
pollster = { version="0.4.0", features = ["macro"] }
pollster = { version="1.0.1", features = ["macro"] }