From 8d420c425cfab56797cd994d3aec6fd030beb613 Mon Sep 17 00:00:00 2001 From: Zicklag Date: Sat, 3 Feb 2024 15:49:07 +0000 Subject: [PATCH] fix(web): fix crash on web build due to missing `web` feature for puffin. (#914) Fixes: #913 --- Cargo.lock | 2 ++ Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 39c8743024..cf4b4846fd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4196,10 +4196,12 @@ dependencies = [ "bincode", "byteorder", "cfg-if", + "js-sys", "lz4_flex", "once_cell", "parking_lot 0.12.1", "serde", + "web-time", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 35004eabc8..9095cd4863 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,7 +20,7 @@ bones_bevy_renderer = { git = "https://github.com/fishfolk/bones" } bevy_tasks = "0.11" turborand = { version = "0.10.0", features = ["atomic"] } tracing = "0.1.37" -puffin = "0.17.0" +puffin = { version = "0.17.0", features = ["web"] } puffin_egui = "0.23.0" petgraph = "0.6.4" rapier2d = { version = "0.17.2", features = ["debug-render", "enhanced-determinism"] }