Skip to content

Commit

Permalink
Update book to 0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronErhardt committed Mar 13, 2024
1 parent e174edd commit 603c2ed
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ members = [

[dev-dependencies]
rand = "0.8.5"
relm4 = "0.7.0"
relm4-components = "0.7.0"
tokio = { version = "1.25", features = ["rt", "macros", "time", "rt-multi-thread", "sync"] }
tracker = "0.2.0"
relm4 = "0.8.0"
relm4-components = "0.8.0"
tokio = { version = "1.36", features = ["rt", "macros", "time", "rt-multi-thread", "sync"] }
tracker = "0.2.1"
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ Contributions and improvements are always welcome!

+ 0.4: https://relm4.org/book/0.4
+ 0.5: https://relm4.org/book/0.5
+ 0.6: https://relm4.org/book/0.6
+ 0.7: https://relm4.org/book/0.7
6 changes: 3 additions & 3 deletions examples/libadwaita/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dev-dependencies]
rand = "0.8.4"
relm4 = { version = "0.7.0-beta.2", features = ["libadwaita"] }
rand = "0.8.5"
relm4 = { version = "0.8.0", features = ["libadwaita"] }

[[example]]
name = "simple_manual"
path = "simple_manual.rs"
path = "simple_manual.rs"
1 change: 1 addition & 0 deletions src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@
- [0.4 to 0.5](migrations/0_4_to_0_5.md)
- [0.5 to 0.6](migrations/0_5_to_0_6.md)
- [0.6 to 0.7](migrations/0_6_to_0_7.md)
- [0.7 to 0.8](migrations/0_7_to_0_8.md)
5 changes: 5 additions & 0 deletions src/migrations/0_7_to_0_8.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Migration from v0.7 to v0.8

Since 0.8 was released at the same day as 0.7, there are not many changes.
It is worth noting though, that the `async-trait` crate was removed in favor of regular async traits available since Rust 1.75.
This means that all manual uses of `#[async_trait]` for `AsyncComponent` or similar traits have to be removed.

0 comments on commit 603c2ed

Please sign in to comment.