Fix breaking CI on leptos_server

This commit is contained in:
Greg Johnston 2022-11-06 07:08:57 -05:00
parent 296e27cd4a
commit b9ca0b11a2
2 changed files with 28 additions and 8 deletions

View File

@ -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"]

View File

@ -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);
///
/// # }
/// # });
/// ```
///