Skip to content

Commit

Permalink
Update example dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Sep 7, 2023
1 parent 8cfad86 commit d315e27
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion examples/game_of_life/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ publish = false
iced.workspace = true
iced.features = ["debug", "canvas", "tokio"]

itertools = "0.9"
itertools = "0.11"
rustc-hash.workspace = true
tokio = { workspace = true, features = ["sync"] }
tracing-subscriber = "0.3"
9 changes: 2 additions & 7 deletions examples/integration/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,8 @@ iced_widget.workspace = true
tracing-subscriber = "0.3"

[target.'cfg(target_arch = "wasm32")'.dependencies]
console_error_panic_hook = "0.1.7"
console_log = "0.2.0"
console_error_panic_hook = "0.1"
console_log = "1.0"
log.workspace = true
wasm-bindgen = "0.2"
web-sys = { version = "0.3", features = ["Element", "HtmlCanvasElement", "Window", "Document"] }

# This dependency a little bit quirky, it is deep in the tree and without `js` feature it
# refuses to work with `wasm32-unknown-unknown target`. Unfortunately, we need this patch
# to make it work
getrandom = { version = "0.2", features = ["js"] }
7 changes: 5 additions & 2 deletions examples/pokedex/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,8 @@ default-features = false
features = ["json", "rustls-tls"]

[dependencies.rand]
version = "0.7"
features = ["wasm-bindgen"]
version = "0.8"

[dependencies.getrandom]
version = "0.2"
features = ["js"]
2 changes: 1 addition & 1 deletion examples/pokedex/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ impl Pokemon {
let id = {
let mut rng = rand::rngs::OsRng;

rng.gen_range(0, Pokemon::TOTAL)
rng.gen_range(0..Pokemon::TOTAL)
};

let fetch_entry = async {
Expand Down

0 comments on commit d315e27

Please sign in to comment.