From 5bc36d67754291d54043f3399bc3d2e5486d3589 Mon Sep 17 00:00:00 2001
From: Louis Capitanchik <contact@louiscap.co>
Date: Thu, 18 Aug 2022 22:50:13 +0100
Subject: [PATCH] Enable wasm-bindgen for uuid crate on wasm32 targets

---
 kayak_core/Cargo.toml | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/kayak_core/Cargo.toml b/kayak_core/Cargo.toml
index 3e16206..f79be47 100644
--- a/kayak_core/Cargo.toml
+++ b/kayak_core/Cargo.toml
@@ -18,9 +18,13 @@ kayak_font = { path = "../kayak_font" }
 kayak_render_macros = { path = "../kayak_render_macros" }
 morphorm = { git = "https://github.com/geom3trik/morphorm", rev = "1243152d4cebea46fd3e5098df26402c73acae91" }
 resources = "1.1"
-uuid = { version = "0.8", features = ["v4"] }
 indexmap = "1.8"
 
+[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
+uuid = { version = "0.8", features = ["v4"] }
+[target.'cfg(target_arch = "wasm32")'.dependencies]
+uuid = { version = "0.8", features = ["v4", "wasm-bindgen"] }
+
 [dependencies.bevy]
 version = "0.8.0"
 optional = true
-- 
GitLab