* Bump the cargo-deps group across 1 directory with 18 updates
Bumps the cargo-deps group with 17 updates in the / directory:
| Package | From | To |
| --- | --- | --- |
| [tokio](https://github.com/tokio-rs/tokio) | `1.47.1` | `1.48.0` |
| [implicit-clone](https://github.com/yewstack/implicit-clone) | `0.5.1` | `0.6.0` |
| [thiserror](https://github.com/dtolnay/thiserror) | `2.0.16` | `2.0.17` |
| [serde](https://github.com/serde-rs/serde) | `1.0.225` | `1.0.228` |
| [wasm-bindgen-test](https://github.com/wasm-bindgen/wasm-bindgen) | `0.3.53` | `0.3.54` |
| [trybuild](https://github.com/dtolnay/trybuild) | `1.0.111` | `1.0.112` |
| [quote](https://github.com/dtolnay/quote) | `1.0.40` | `1.0.41` |
| [getrandom](https://github.com/rust-random/getrandom) | `0.3.3` | `0.3.4` |
| [clap](https://github.com/clap-rs/clap) | `4.5.47` | `4.5.49` |
| [reqwest](https://github.com/seanmonstar/reqwest) | `0.12.23` | `0.12.24` |
| [regex](https://github.com/rust-lang/regex) | `1.11.2` | `1.12.2` |
| [toml](https://github.com/toml-rs/toml) | `0.9.5` | `0.9.8` |
| [anyhow](https://github.com/dtolnay/anyhow) | `1.0.99` | `1.0.100` |
| [lipsum](https://github.com/mgeisler/lipsum) | ``35060ef`` | ``e1ab664`` |
| [time](https://github.com/time-rs/time) | `0.3.43` | `0.3.44` |
| [warp](https://github.com/seanmonstar/warp) | `0.3.7` | `0.4.2` |
| [axum](https://github.com/tokio-rs/axum) | `0.8.4` | `0.8.6` |
Updates `tokio` from 1.47.1 to 1.48.0
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.47.1...tokio-1.48.0)
Updates `implicit-clone` from 0.5.1 to 0.6.0
- [Commits](https://github.com/yewstack/implicit-clone/compare/v0.5.1...v0.6.0)
Updates `thiserror` from 2.0.16 to 2.0.17
- [Release notes](https://github.com/dtolnay/thiserror/releases)
- [Commits](https://github.com/dtolnay/thiserror/compare/2.0.16...2.0.17)
Updates `serde` from 1.0.225 to 1.0.228
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.225...v1.0.228)
Updates `wasm-bindgen-test` from 0.3.53 to 0.3.54
- [Release notes](https://github.com/wasm-bindgen/wasm-bindgen/releases)
- [Changelog](https://github.com/wasm-bindgen/wasm-bindgen/blob/main/CHANGELOG.md)
- [Commits](https://github.com/wasm-bindgen/wasm-bindgen/commits)
Updates `trybuild` from 1.0.111 to 1.0.112
- [Release notes](https://github.com/dtolnay/trybuild/releases)
- [Commits](https://github.com/dtolnay/trybuild/compare/1.0.111...1.0.112)
Updates `quote` from 1.0.40 to 1.0.41
- [Release notes](https://github.com/dtolnay/quote/releases)
- [Commits](https://github.com/dtolnay/quote/compare/1.0.40...1.0.41)
Updates `getrandom` from 0.3.3 to 0.3.4
- [Release notes](https://github.com/rust-random/getrandom/releases)
- [Changelog](https://github.com/rust-random/getrandom/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-random/getrandom/compare/v0.3.3...v0.3.4)
Updates `clap` from 4.5.47 to 4.5.49
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.47...clap_complete-v4.5.49)
Updates `reqwest` from 0.12.23 to 0.12.24
- [Release notes](https://github.com/seanmonstar/reqwest/releases)
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.12.23...v0.12.24)
Updates `regex` from 1.11.2 to 1.12.2
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.11.2...1.12.2)
Updates `toml` from 0.9.5 to 0.9.8
- [Commits](https://github.com/toml-rs/toml/compare/toml-v0.9.5...toml-v0.9.8)
Updates `anyhow` from 1.0.99 to 1.0.100
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.99...1.0.100)
Updates `lipsum` from `35060ef` to `e1ab664`
- [Release notes](https://github.com/mgeisler/lipsum/releases)
- [Commits](35060ef81a...e1ab6646e6)
Updates `time` from 0.3.43 to 0.3.44
- [Release notes](https://github.com/time-rs/time/releases)
- [Changelog](https://github.com/time-rs/time/blob/main/CHANGELOG.md)
- [Commits](https://github.com/time-rs/time/compare/v0.3.43...v0.3.44)
Updates `warp` from 0.3.7 to 0.4.2
- [Release notes](https://github.com/seanmonstar/warp/releases)
- [Changelog](https://github.com/seanmonstar/warp/blob/master/CHANGELOG.md)
- [Commits](https://github.com/seanmonstar/warp/compare/v0.3.7...v0.4.2)
Updates `axum` from 0.8.4 to 0.8.6
- [Release notes](https://github.com/tokio-rs/axum/releases)
- [Changelog](https://github.com/tokio-rs/axum/blob/main/CHANGELOG.md)
- [Commits](https://github.com/tokio-rs/axum/compare/axum-v0.8.4...axum-v0.8.6)
Updates `serde_derive` from 1.0.225 to 1.0.228
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.225...v1.0.228)
---
updated-dependencies:
- dependency-name: tokio
dependency-version: 1.48.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: cargo-deps
- dependency-name: implicit-clone
dependency-version: 0.6.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: cargo-deps
- dependency-name: thiserror
dependency-version: 2.0.17
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-deps
- dependency-name: serde
dependency-version: 1.0.228
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-deps
- dependency-name: wasm-bindgen-test
dependency-version: 0.3.54
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-deps
- dependency-name: trybuild
dependency-version: 1.0.112
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-deps
- dependency-name: quote
dependency-version: 1.0.41
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-deps
- dependency-name: getrandom
dependency-version: 0.3.4
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-deps
- dependency-name: clap
dependency-version: 4.5.49
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-deps
- dependency-name: reqwest
dependency-version: 0.12.24
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-deps
- dependency-name: regex
dependency-version: 1.12.2
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: cargo-deps
- dependency-name: toml
dependency-version: 0.9.8
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-deps
- dependency-name: anyhow
dependency-version: 1.0.100
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-deps
- dependency-name: lipsum
dependency-version: e1ab6646e65fa7fdc201f97919b82d7f44fb6ae5
dependency-type: direct:production
dependency-group: cargo-deps
- dependency-name: time
dependency-version: 0.3.44
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-deps
- dependency-name: warp
dependency-version: 0.4.2
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: cargo-deps
- dependency-name: axum
dependency-version: 0.8.6
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-deps
- dependency-name: serde_derive
dependency-version: 1.0.228
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-deps
...
Signed-off-by: dependabot[bot] <support@github.com>
* downgrade warp
* fix implicit_clone upgrade
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Martin Molzer <WorldSEnder@users.noreply.github.com>
Yew Examples
How to Run
The examples are built with trunk. Once you have the development environment fully set up (see documentation), running an example is as easy as running a single command:
# move into the directory of the example you want to run
# In this case it's the todomvc example
cd examples/todomvc
# build and serve the example
trunk serve --open
Some examples using the rand crate require a special rust flag to be enabled:
RUSTFLAGS='--cfg getrandom_backend="wasm_js"' trunk serve --open
Some examples may perform better using the release profile. If something is slow, you can try running it with the --release argument.
We're also publicly hosting the examples at https://examples.yew.rs/<EXAMPLE>.
As an example, check out the TodoMVC example here: https://examples.yew.rs/todomvc
List of Examples
| Example | CT | Description |
|---|---|---|
| async_clock | S | Demonstrates the use of asynchronous tasks in a yew component. |
| boids | S | Yew port of Boids |
| communication_child_to_parent | S | Communication from child to parent components. |
| communication_grandchild_with_grandparent | S | Communication from grandchildren to grandparent components. |
| communication_grandparent_to_grandchild | S | Communication from grandparent to grandchild components. |
| communication_parent_to_child | S | Communication from parent to child components. |
| contexts | F | A technical demonstration of the Context API. |
| counter | S | Simple counter which can be incremented and decremented. |
| counter_functional | F | Simple counter which can be incremented and decremented made using function components. |
| dyn_create_destroy_apps | S | Uses the function Renderer::with_root_and_props and the AppHandle struct to dynamically create and delete Yew apps. |
| file_upload | S | Uses gloo::file to read the content of user uploaded files. |
| function_delayed_input | F | Demonstrates how to implement a form with delayed input processing. |
| function_memory_game | F | Implementation of Memory Game. |
| function_router | F | Identical to router but using function components. |
| function_todomvc | F | Implementation of TodoMVC using function components and hooks. |
| futures | S | Demonstrates how you can use futures and async code with Yew. Features a Markdown renderer. |
| game_of_life | S | Implementation of Conway's Game of Life. |
| immutable | SF | Using immutable types in components. |
| inner_html | S | Embeds an external document as raw HTML by manually managing the element. |
| js_callback | F | Interacts with JavaScript code. |
| keyed_list | S | Demonstrates how to use keys to improve the performance of lists. |
| mount_point | S | Shows how to mount the root component to a custom element. |
| nested_list | S | Renders a styled list which tracks hover events. |
| node_refs | S | Uses a NodeRef to focus the input element under the cursor. |
| password_strength | SF | A password strength estimator implemented in Yew. |
| portals | S | Renders elements into out-of-tree nodes with the help of portals. |
| router | S | The best yew blog built with yew-router. |
| simple_ssr | F | Demonstrates server-side rendering. |
| ssr_router | F | Demonstrates server-side rendering with routing. |
| suspense | F | This is an example that demonstrates <Suspense /> support. |
| timer | S | Demonstrates the use of the interval and timeout services. |
| timer_functional | F | Demonstrates the use of the interval and timeout services using function components |
| todomvc | S | Implementation of TodoMVC. |
| two_apps | S | Runs two separate Yew apps which can communicate with each other. |
| web_worker_fib | F | Calculate Fibonacci numbers in a web worker thread using yew-agent. |
| web_worker_prime | F | Calculate Prime numbers in a web worker thread using yew-agent. |
| webgl | S | Controls a WebGL canvas from Yew. |
| wasi_ssr_module | F | Demonstrates server-side rendering using WASI. |
Next Steps
Have a look at Yew's starter templates when starting a project using Yew – they can significantly simplify things.
Helping Out
If one of the examples catches your interest, look for the "improvements" section in its README.md file.
Most examples list a few ideas for how to improve them.
Consider starting with those but don't hesitate to improve an example in other ways either.
One problem that currently plagues most examples is the lack of styling. Please help us make the examples look as flashy as possible!