Skip to content

Commit

Permalink
book: Add filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
Hofer-Julian committed Oct 20, 2023
1 parent eb2705a commit f321f1c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions book/src/main_event_loop.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ After reference cycles we found the second disadvantage of GTK GObjects: They ar

## Async

Filename: <a class=file-link href="https://github.com/gtk-rs/gtk4-rs/blob/master/book/listings/main_event_loop/6/main.rs">listings/main_event_loop/6/main.rs</a>

```rust
{{#rustdoc_include ../listings/main_event_loop/6/main.rs:callback}}
```
Expand All @@ -177,6 +179,8 @@ After reference cycles we found the second disadvantage of GTK GObjects: They ar
cargo add [email protected] --features gtk4
```

Filename: <a class=file-link href="https://github.com/gtk-rs/gtk4-rs/blob/master/book/listings/main_event_loop/7/main.rs">listings/main_event_loop/7/main.rs</a>

```rust
{{#rustdoc_include ../listings/main_event_loop/7/main.rs:callback}}
```
Expand All @@ -186,10 +190,14 @@ cargo add tokio@1 --features rt-multi-thread
cargo add [email protected] --features rustls-tls --no-default-features
```

Filename: <a class=file-link href="https://github.com/gtk-rs/gtk4-rs/blob/master/book/listings/main_event_loop/8/main.rs">listings/main_event_loop/8/main.rs</a>

```rust
{{#rustdoc_include ../listings/main_event_loop/8/main.rs:tokio_runtime}}
```

Filename: <a class=file-link href="https://github.com/gtk-rs/gtk4-rs/blob/master/book/listings/main_event_loop/8/main.rs">listings/main_event_loop/8/main.rs</a>

```rust
{{#rustdoc_include ../listings/main_event_loop/8/main.rs:callback}}
```
Expand Down

0 comments on commit f321f1c

Please sign in to comment.