Skip to content

Commit e46f9ac

Browse files
committed
automatically overwrite feature to work on wasm #1
1 parent 0a139b2 commit e46f9ac

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ bevy = { version = "0.12", default-features = false }
1515
generic-global-variables = "0.1.1"
1616
once_cell = "1"
1717

18+
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
19+
parking_lot = { version = "0.11" }
20+
21+
[target.'cfg(target_arch = "wasm32")'.dependencies]
22+
parking_lot = { version = "0.11", features=["wasm-bindgen"] }
23+
1824
[package.metadata.docs.rs]
1925
all-features = true
2026
rustdoc-args = ["--cfg", "docsrs"]

0 commit comments

Comments
 (0)