Skip to content

Commit

Permalink
deps: Update dev dependencies (linebender#597)
Browse files Browse the repository at this point in the history
Update to current `roxmltree`, `notify-debouncer-mini`, and
`cargo-run-wasm`.
  • Loading branch information
waywardmonkeys authored Jun 5, 2024
1 parent 96a447f commit 7d0f9d8
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
13 changes: 7 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/run_wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ publish = false
workspace = true

[dependencies]
cargo-run-wasm = "0.3.2"
cargo-run-wasm = "0.4.0"
2 changes: 1 addition & 1 deletion examples/run_wasm/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
/// ```

fn main() {
cargo_run_wasm::run_wasm_with_css("body { margin: 0px; }");
cargo_run_wasm::run_wasm_cli_with_css("body { margin: 0px; }");
}
2 changes: 1 addition & 1 deletion examples/scenes/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ image = { version = "0.25.1", default-features = false, features = ["jpeg"] }
rand = "0.8.5"

# for pico_svg
roxmltree = "0.19.0"
roxmltree = "0.20.0"

[target.'cfg(target_arch = "wasm32")'.dependencies]
getrandom = { version = "0.2.15", features = ["js"] }
Expand Down
2 changes: 1 addition & 1 deletion examples/with_winit/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ env_logger = "0.11.3"
[target.'cfg(not(any(target_arch = "wasm32", target_os = "android")))'.dependencies]
vello = { workspace = true, features = ["hot_reload"] }
vello_shaders = { workspace = true, features = ["compile"] }
notify-debouncer-mini = "0.3.0"
notify-debouncer-mini = "0.4.1"


[target.'cfg(target_os = "android")'.dependencies]
Expand Down
3 changes: 1 addition & 2 deletions examples/with_winit/src/hot_reload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ use notify_debouncer_mini::{new_debouncer, DebounceEventResult};
pub(crate) fn hot_reload(mut f: impl FnMut() -> Option<()> + Send + 'static) -> Result<impl Sized> {
let mut debouncer = new_debouncer(
Duration::from_millis(500),
None,
move |res: DebounceEventResult| match res {
Ok(_) => f().unwrap(),
Err(errors) => errors.iter().for_each(|e| println!("Error {:?}", e)),
Err(e) => println!("Hot reloading file watching failed: {e:?}"),
},
)?;

Expand Down

0 comments on commit 7d0f9d8

Please sign in to comment.