Skip to content

Commit 07a1e9e

Browse files
committed
update
1 parent cfadf21 commit 07a1e9e

File tree

3 files changed

+31
-1
lines changed

3 files changed

+31
-1
lines changed

crates/rs-gui/try-wry/Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ name = "try-wry"
33
version = "0.1.0"
44
edition = "2024"
55

6+
7+
[[bin]]
8+
name = "t01"
9+
path = "examples/try01.rs"
10+
11+
612
[dependencies]
713
tao = "0.32.6"
814
winit = "0.30.9"

crates/rs-gui/try-wry/examples/try01.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ use wry::{
99
dpi::{LogicalPosition, LogicalSize},
1010
};
1111

12+
/*
13+
14+
15+
ref: https://github.com/tauri-apps/wry/blob/dev/examples/multiwebview.rs
16+
17+
*/
18+
1219
#[derive(Default)]
1320
struct State {
1421
window: Option<Window>,

crates/rs-gui/try-wry/readme.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,25 @@ cargo add wry
99

1010
```
1111

12+
13+
### Run
14+
15+
```ruby
16+
17+
cd git-repo-root-dir/
18+
19+
task gui:wry:r -- --bin t01
20+
```
21+
22+
23+
1224
## Reference
1325

1426
- https://crates.io/crates/wry
1527
- https://crates.io/crates/tao
16-
- https://crates.io/crates/winit
28+
- https://crates.io/crates/winit
29+
30+
31+
> examples
32+
33+
- https://github.com/tauri-apps/wry/tree/dev/examples

0 commit comments

Comments
 (0)