From 5b27be9c21f7385afe1fd2f2dabe3558ed123102 Mon Sep 17 00:00:00 2001 From: luoxiao Date: Sat, 9 Sep 2023 22:22:27 +0800 Subject: [PATCH] feat: add leptos_devtools --- gh-pages/Cargo.toml | 4 ++++ gh-pages/src/main.rs | 2 ++ 2 files changed, 6 insertions(+) diff --git a/gh-pages/Cargo.toml b/gh-pages/Cargo.toml index 8ce4aa6..6087a27 100644 --- a/gh-pages/Cargo.toml +++ b/gh-pages/Cargo.toml @@ -15,3 +15,7 @@ icondata = { version = "0.0.7", features = [ leptos_router = { version = "0.5.0-beta2", features = ["csr"] } indoc = "2.0.1" regex = "1.8.2" +leptos_devtools = { git = "https://github.com/luoxiaozero/leptos-devtools.git" } + +[features] +tracing = ["leptos/tracing"] diff --git a/gh-pages/src/main.rs b/gh-pages/src/main.rs index e533a1a..4679a7c 100644 --- a/gh-pages/src/main.rs +++ b/gh-pages/src/main.rs @@ -6,5 +6,7 @@ use app::*; use leptos::*; fn main() { + #[cfg(feature = "tracing")] + leptos_devtools::devtools(); mount_to_body(App) }