From b9ca0b11a2d8846a83af6a8f37af3dde23c16179 Mon Sep 17 00:00:00 2001 From: Greg Johnston Date: Sun, 6 Nov 2022 07:08:57 -0500 Subject: [PATCH] Fix breaking CI on leptos_server --- leptos_server/Cargo.toml | 28 ++++++++++++++++++++++++---- leptos_server/src/lib.rs | 8 ++++---- 2 files changed, 28 insertions(+), 8 deletions(-) diff --git a/leptos_server/Cargo.toml b/leptos_server/Cargo.toml index e0248ac83..2e668dcd6 100644 --- a/leptos_server/Cargo.toml +++ b/leptos_server/Cargo.toml @@ -22,10 +22,30 @@ leptos_macro = { path = "../leptos_macro", default-features = false, version = " leptos = { path = "../leptos", default-features = false, version = "0.0" } [features] -csr = ["leptos_dom/csr", "leptos_reactive/csr"] -hydrate = ["leptos_dom/hydrate", "leptos_reactive/hydrate"] -ssr = ["leptos_dom/ssr", "leptos_reactive/ssr"] -stable = ["leptos_dom/stable", "leptos_reactive/stable"] +csr = [ + "leptos_dom/csr", + "leptos_reactive/csr", + "leptos_macro/csr", + "leptos/csr", +] +hydrate = [ + "leptos_dom/hydrate", + "leptos_reactive/hydrate", + "leptos_macro/hydrate", + "leptos/hydrate", +] +ssr = [ + "leptos_dom/ssr", + "leptos_reactive/ssr", + "leptos_macro/ssr", + "leptos/csr", +] +stable = [ + "leptos_dom/stable", + "leptos_reactive/stable", + "leptos_macro/stable", + "leptos/stable", +] [package.metadata.cargo-all-features] denylist = ["stable"] diff --git a/leptos_server/src/lib.rs b/leptos_server/src/lib.rs index 70adc75ea..6d1ae406e 100644 --- a/leptos_server/src/lib.rs +++ b/leptos_server/src/lib.rs @@ -301,7 +301,7 @@ where /// assert_eq!(pending(), false); // isn't pending a response /// assert_eq!(result_of_call(), None); // there's no "last value" /// assert_eq!(version(), 0); -/// +/// # if !cfg!(any(feature = "csr", feature = "hydrate")) { /// // dispatch the action /// save_data.dispatch("My todo".to_string()); /// @@ -315,7 +315,7 @@ where /// assert_eq!(pending(), false); // no longer pending /// assert_eq!(result_of_call(), Some(42)); /// assert_eq!(version(), 1); -/// +/// # } /// # }); /// ``` /// @@ -445,7 +445,7 @@ where /// assert_eq!(pending(), false); // isn't pending a response /// assert_eq!(result_of_call(), None); // there's no "last value" /// assert_eq!(version(), 0); -/// +/// # if !cfg!(any(feature = "csr", feature = "hydrate")) { /// // dispatch the action /// save_data.dispatch("My todo".to_string()); /// @@ -459,7 +459,7 @@ where /// assert_eq!(pending(), false); // no longer pending /// assert_eq!(result_of_call(), Some(42)); /// assert_eq!(version(), 1); -/// +/// # } /// # }); /// ``` ///