From 0dce124c75ea7635ddad78ed378000567da9a0a1 Mon Sep 17 00:00:00 2001 From: Zicklag Date: Wed, 15 Feb 2023 18:48:56 -0600 Subject: [PATCH] fix(web): fix web compile by conditionally including `bevy_dylib` dependency. --- Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index df8e4b6e8b..d358f03392 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,6 @@ anyhow = "1.0.58" async-channel = "1.7.1" base64 = "0.21.0" bevy-inspector-egui = { version = "0.17.0" } -bevy_dylib = "0.9.1" bevy_egui = "0.19.0" bevy_fluent = "0.5.0" bevy_framepace = "0.11.0" @@ -64,7 +63,8 @@ wasm-bindgen = "0.2.83" web-sys = { version = "0.3", features = ["Window", "Location", "Storage"] } [target.'cfg(not(target_arch = "wasm32"))'.dependencies] -mimalloc = { version = "0.1.32", default-features = false } +bevy_dylib = "0.9.1" +mimalloc = { version = "0.1.32", default-features = false } # Optimize dependencies even in development [profile.dev.package."*"]