* Bump the cargo-deps group across 1 directory with 21 updates Bumps the cargo-deps group with 19 updates in the / directory: | Package | From | To | | --- | --- | --- | | [indexmap](https://github.com/indexmap-rs/indexmap) | `2.10.0` | `2.11.4` | | [thiserror](https://github.com/dtolnay/thiserror) | `1.0.69` | `2.0.16` | | [wasm-bindgen-test](https://github.com/wasm-bindgen/wasm-bindgen) | `0.3.50` | `0.3.53` | | [trybuild](https://github.com/dtolnay/trybuild) | `1.0.110` | `1.0.111` | | [rand](https://github.com/rust-random/rand) | `0.8.5` | `0.9.2` | | [average](https://github.com/vks/average) | `0.15.1` | `0.16.0` | | [tabled](https://github.com/zhiburt/tabled) | `0.18.0` | `0.20.0` | | [indicatif](https://github.com/console-rs/indicatif) | `0.17.11` | `0.18.0` | | [serde_json](https://github.com/serde-rs/json) | `1.0.143` | `1.0.145` | | [clap](https://github.com/clap-rs/clap) | `4.5.45` | `4.5.47` | | [regex](https://github.com/rust-lang/regex) | `1.11.1` | `1.11.2` | | [toml](https://github.com/toml-rs/toml) | `0.8.23` | `0.9.5` | | [chrono](https://github.com/chronotope/chrono) | `0.4.41` | `0.4.42` | | [semver](https://github.com/dtolnay/semver) | `1.0.26` | `1.0.27` | | [log](https://github.com/rust-lang/log) | `0.4.27` | `0.4.28` | | [time](https://github.com/time-rs/time) | `0.3.41` | `0.3.43` | | [uuid](https://github.com/uuid-rs/uuid) | `1.18.0` | `1.18.1` | | [warp](https://github.com/seanmonstar/warp) | `0.3.7` | `0.4.2` | | [hyper-util](https://github.com/hyperium/hyper-util) | `0.1.16` | `0.1.17` | Updates `indexmap` from 2.10.0 to 2.11.4 - [Changelog](https://github.com/indexmap-rs/indexmap/blob/main/RELEASES.md) - [Commits](https://github.com/indexmap-rs/indexmap/compare/2.10.0...2.11.4) Updates `thiserror` from 1.0.69 to 2.0.16 - [Release notes](https://github.com/dtolnay/thiserror/releases) - [Commits](https://github.com/dtolnay/thiserror/compare/1.0.69...2.0.16) Updates `serde` from 1.0.219 to 1.0.225 - [Release notes](https://github.com/serde-rs/serde/releases) - [Commits](https://github.com/serde-rs/serde/compare/v1.0.219...v1.0.225) Updates `wasm-bindgen-test` from 0.3.50 to 0.3.53 - [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.110 to 1.0.111 - [Release notes](https://github.com/dtolnay/trybuild/releases) - [Commits](https://github.com/dtolnay/trybuild/compare/1.0.110...1.0.111) Updates `rand` from 0.8.5 to 0.9.2 - [Release notes](https://github.com/rust-random/rand/releases) - [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md) - [Commits](https://github.com/rust-random/rand/compare/0.8.5...rand_core-0.9.2) Updates `average` from 0.15.1 to 0.16.0 - [Commits](https://github.com/vks/average/commits) Updates `tabled` from 0.18.0 to 0.20.0 - [Changelog](https://github.com/zhiburt/tabled/blob/master/CHANGELOG.md) - [Commits](https://github.com/zhiburt/tabled/commits) Updates `indicatif` from 0.17.11 to 0.18.0 - [Release notes](https://github.com/console-rs/indicatif/releases) - [Commits](https://github.com/console-rs/indicatif/compare/0.17.11...0.18.0) Updates `serde_json` from 1.0.143 to 1.0.145 - [Release notes](https://github.com/serde-rs/json/releases) - [Commits](https://github.com/serde-rs/json/compare/v1.0.143...v1.0.145) Updates `clap` from 4.5.45 to 4.5.47 - [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.45...clap_complete-v4.5.47) Updates `regex` from 1.11.1 to 1.11.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.1...1.11.2) Updates `toml` from 0.8.23 to 0.9.5 - [Commits](https://github.com/toml-rs/toml/compare/toml-v0.8.23...toml-v0.9.5) Updates `chrono` from 0.4.41 to 0.4.42 - [Release notes](https://github.com/chronotope/chrono/releases) - [Changelog](https://github.com/chronotope/chrono/blob/main/CHANGELOG.md) - [Commits](https://github.com/chronotope/chrono/compare/v0.4.41...v0.4.42) Updates `semver` from 1.0.26 to 1.0.27 - [Release notes](https://github.com/dtolnay/semver/releases) - [Commits](https://github.com/dtolnay/semver/compare/1.0.26...1.0.27) Updates `log` from 0.4.27 to 0.4.28 - [Release notes](https://github.com/rust-lang/log/releases) - [Changelog](https://github.com/rust-lang/log/blob/master/CHANGELOG.md) - [Commits](https://github.com/rust-lang/log/compare/0.4.27...0.4.28) Updates `time` from 0.3.41 to 0.3.43 - [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.41...v0.3.43) Updates `uuid` from 1.18.0 to 1.18.1 - [Release notes](https://github.com/uuid-rs/uuid/releases) - [Commits](https://github.com/uuid-rs/uuid/compare/v1.18.0...v1.18.1) 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 `hyper-util` from 0.1.16 to 0.1.17 - [Release notes](https://github.com/hyperium/hyper-util/releases) - [Changelog](https://github.com/hyperium/hyper-util/blob/master/CHANGELOG.md) - [Commits](https://github.com/hyperium/hyper-util/compare/v0.1.16...v0.1.17) Updates `serde_derive` from 1.0.219 to 1.0.225 - [Release notes](https://github.com/serde-rs/serde/releases) - [Commits](https://github.com/serde-rs/serde/compare/v1.0.219...v1.0.225) --- updated-dependencies: - dependency-name: indexmap dependency-version: 2.11.4 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: cargo-deps - dependency-name: thiserror dependency-version: 2.0.16 dependency-type: direct:production update-type: version-update:semver-major dependency-group: cargo-deps - dependency-name: serde dependency-version: 1.0.225 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-deps - dependency-name: wasm-bindgen-test dependency-version: 0.3.53 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-deps - dependency-name: trybuild dependency-version: 1.0.111 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-deps - dependency-name: rand dependency-version: 0.9.2 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: cargo-deps - dependency-name: average dependency-version: 0.16.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: cargo-deps - dependency-name: tabled dependency-version: 0.20.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: cargo-deps - dependency-name: indicatif dependency-version: 0.18.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: cargo-deps - dependency-name: serde_json dependency-version: 1.0.145 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-deps - dependency-name: clap dependency-version: 4.5.47 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-deps - dependency-name: regex dependency-version: 1.11.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-deps - dependency-name: toml dependency-version: 0.9.5 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: cargo-deps - dependency-name: chrono dependency-version: 0.4.42 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-deps - dependency-name: semver dependency-version: 1.0.27 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-deps - dependency-name: log dependency-version: 0.4.28 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-deps - dependency-name: time dependency-version: 0.3.43 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-deps - dependency-name: uuid dependency-version: 1.18.1 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: hyper-util dependency-version: 0.1.17 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-deps - dependency-name: serde_derive dependency-version: 1.0.225 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-deps ... Signed-off-by: dependabot[bot] <support@github.com> * fix lipsum dependency lipsum hasn't publish a version for rand 0.9 yet, but that exists on master --------- 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>
Router Example
A blog all about yew. The best way to figure out what this example is about is to just open it up. It's mobile friendly too!
Concepts
This example involves many different parts, here are just the Yew specific things:
- Uses
yew-routerto render and switch between multiple pages.
The example automatically adapts to the --public-url value passed to Trunk.
This allows it to be hosted on any path, not just at the root.
For example, our demo is hosted at /router.
This is achieved by adding <base data-trunk-public-url /> to the index.html file.
Trunk rewrites this tag to contain the value passed to --public-url which can then be retrieved at runtime.
Take a look at Route for the implementation.
Improvements
- Use a special image component which shows a progress bar until the image is loaded.
- Scroll back to the top after switching route
- Run content generation in a dedicated web worker
- Use longer Markov chains to achieve more coherent results
- Make images deterministic (the same seed should produce the same images)
- Show posts by the author on their page (this is currently impossible because we need to find post seeds which in turn generate the author's seed)
- Show other posts at the end of a post ("continue reading")
- Home (
/) should include links to the post list and the author introduction - Detect sub-path from
--public-urlvalue passed to Trunk. See: thedodd/trunk#51
Running
Run this application with the trunk development server:
trunk serve --open
Notes
Content generation can take up quite a bit of time in debug builds. If it is too slow, you should try running with the release profile.