From 618b7d65ce138b9cf97bc1447351b75b348b4fa3 Mon Sep 17 00:00:00 2001 From: Ethan Girouard Date: Thu, 16 May 2024 18:47:45 -0400 Subject: [PATCH] Make console_error_panic_hook required for frontend only --- Cargo.toml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index a21b408..cb8443e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ build = "src/build.rs" crate-type = ["cdylib", "rlib"] [dependencies] -console_error_panic_hook = "0.1" +console_error_panic_hook = { version = "0.1", optional = true } cfg-if = "1" http = "1.0" leptos = { version = "0.6", features = ["nightly"] } @@ -43,7 +43,12 @@ flexi_logger = { version = "0.28.0", optional = true, default-features = false } gloo-net = { git = "https://github.com/rustwasm/gloo.git", rev = "a823fab7ecc4068e9a28bd669da5eaf3f0a56380" } [features] -hydrate = ["leptos/hydrate", "leptos_meta/hydrate", "leptos_router/hydrate"] +hydrate = [ + "leptos/hydrate", + "leptos_meta/hydrate", + "leptos_router/hydrate", + "console_error_panic_hook", +] ssr = [ "dep:leptos_axum", "leptos/ssr",