diff --git a/crates/bevy_app/Cargo.toml b/crates/bevy_app/Cargo.toml index 4906610001..2b7e6443de 100644 --- a/crates/bevy_app/Cargo.toml +++ b/crates/bevy_app/Cargo.toml @@ -29,4 +29,4 @@ serde = { version = "1.0", features = ["derive"] } [target.'cfg(target_arch = "wasm32")'.dependencies] wasm-bindgen = { version = "0.2" } web-sys = { version = "0.3", features = [ "Window" ] } -instant = "0.1.6" +instant = { version = "0.1", features = ["wasm-bindgen"] } diff --git a/crates/bevy_core/Cargo.toml b/crates/bevy_core/Cargo.toml index 79f9b0a332..23eeff107e 100644 --- a/crates/bevy_core/Cargo.toml +++ b/crates/bevy_core/Cargo.toml @@ -31,4 +31,4 @@ bevy_tasks = { path = "../bevy_tasks", version = "0.2.1" } log = { version = "0.4", features = ["release_max_level_info"] } [target.'cfg(target_arch = "wasm32")'.dependencies] -instant = "0.1.6" +instant = { version = "0.1", features = ["wasm-bindgen"] } diff --git a/crates/bevy_diagnostic/Cargo.toml b/crates/bevy_diagnostic/Cargo.toml index fdc41b032c..adcd6fe72d 100644 --- a/crates/bevy_diagnostic/Cargo.toml +++ b/crates/bevy_diagnostic/Cargo.toml @@ -27,4 +27,4 @@ uuid = { version = "0.8", features = ["v4", "serde"] } parking_lot = "0.11.0" [target.'cfg(target_arch = "wasm32")'.dependencies] -instant = "0.1.6" +instant = { version = "0.1", features = ["wasm-bindgen"] }