Skip to content

Commit 2645524

Browse files
committed
Update winit to 0.30
1 parent db07b9b commit 2645524

File tree

12 files changed

+891
-633
lines changed

12 files changed

+891
-633
lines changed

.github/workflows/check.yml

-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ jobs:
1717
run: cargo build --package tour --target wasm32-unknown-unknown
1818
- name: Check compilation of `todos` example
1919
run: cargo build --package todos --target wasm32-unknown-unknown
20-
- name: Check compilation of `integration` example
21-
run: cargo build --package integration --target wasm32-unknown-unknown
2220

2321
widget:
2422
runs-on: ubuntu-latest

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,11 @@ unicode-segmentation = "1.0"
172172
wasm-bindgen-futures = "0.4"
173173
wasm-timer = "0.2"
174174
web-sys = "=0.3.67"
175-
web-time = "0.2"
175+
web-time = "1.1"
176176
wgpu = "0.19"
177177
winapi = "0.3"
178178
window_clipboard = "0.4.1"
179-
winit = { git = "https://github.com/iced-rs/winit.git", rev = "592bd152f6d5786fae7d918532d7db752c0d164f" }
179+
winit = { git = "https://github.com/iced-rs/winit.git", rev = "8affa522bc6dcc497d332a28c03491d22a22f5a7" }
180180

181181
[workspace.lints.rust]
182182
rust_2018_idioms = "forbid"

examples/integration/README.md

+1-18
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,8 @@ The __[`main`]__ file contains all the code of the example.
1010

1111
You can run it with `cargo run`:
1212
```
13-
cargo run --package integration_wgpu
13+
cargo run --package integration
1414
```
1515

16-
### How to run this example with WebGL backend
17-
NOTE: Currently, WebGL backend is still experimental, so expect bugs.
18-
19-
```sh
20-
# 0. Install prerequisites
21-
cargo install wasm-bindgen-cli https
22-
# 1. cd to the current folder
23-
# 2. Compile wasm module
24-
cargo build -p integration_wgpu --target wasm32-unknown-unknown
25-
# 3. Invoke wasm-bindgen
26-
wasm-bindgen ../../target/wasm32-unknown-unknown/debug/integration_wgpu.wasm --out-dir . --target web --no-typescript
27-
# 4. run http server
28-
http
29-
# 5. Open 127.0.0.1:8000 in browser
30-
```
31-
32-
3316
[`main`]: src/main.rs
3417
[`wgpu`]: https://github.com/gfx-rs/wgpu

examples/integration/index.html

-21
This file was deleted.

0 commit comments

Comments
 (0)