Skip to content

Commit

Permalink
Fix consumer's Wasm build being broken
Browse files Browse the repository at this point in the history
  • Loading branch information
janhohenheim committed Feb 18, 2024
1 parent 26ba881 commit 9eed699
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

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

5 changes: 4 additions & 1 deletion crates/compiler/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "yarnspinner_compiler"
version = "0.2.0"
version = "0.2.1"
edition = "2021"
repository = "https://github.com/YarnSpinnerTool/YarnSpinner-Rust"
homepage = "https://docs.yarnspinner.dev/"
Expand All @@ -26,3 +26,6 @@ annotate-snippets = "0.10"
serde = { version = "1", features = ["derive"], optional = true }
bevy = { version = "0.13", default-features = false, optional = true }
rand = { version = "0.8", features = ["small_rng"] }

[target.'cfg(target_arch = "wasm32")'.dependencies]
instant = { version = "0.1.12", features = ["wasm-bindgen"] } # see https://github.com/Amanieu/parking_lot/issues/269, pulled in by (unmaintained) anltr-rust
4 changes: 0 additions & 4 deletions demo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,3 @@ bevy = "0.13"
bevy_yarnspinner = { path = "../crates/bevy_plugin", version = "0.2" }
bevy_yarnspinner_example_dialogue_view = { path = "../crates/example_dialogue_view", version = "0.2" }
bevy_sprite3d = { git = "https://github.com/vertesians/bevy_sprite3d", branch = "main" } # waiting for https://github.com/FraserLee/bevy_sprite3d/pull/15 to be merged


[target.'cfg(target_arch = "wasm32")'.dependencies]
instant = { version = "0.1.12", features = ["wasm-bindgen"] } # see https://github.com/rustwasm/wasm-bindgen/discussions/3500#discussioncomment-6334669

0 comments on commit 9eed699

Please sign in to comment.