remove unneeded additional subsecond features

This commit is contained in:
Greg Johnston
2025-09-19 11:40:23 -04:00
parent 8a28a30bef
commit 356d69c689
5 changed files with 8 additions and 20 deletions

1
Cargo.lock generated
View File

@@ -3764,7 +3764,6 @@ dependencies = [
"sledgehammer_bindgen",
"sledgehammer_utils",
"slotmap",
"subsecond",
"throw_error",
"tokio",
"tokio-test",

View File

@@ -106,16 +106,14 @@ trace-component-props = [
delegation = ["tachys/delegation"]
islands-router = ["tachys/mark_branches"]
subsecond = [
"leptos_macro/subsecond",
"tachys/subsecond",
"reactive_graph/subsecond",
"dep:subsecond",
"dep:dioxus-cli-config",
"dep:dioxus-devtools",
"web-sys/Location",
"web-sys/MessageEvent",
"web-sys/WebSocket",
"web-sys/Window"
"reactive_graph/subsecond",
"dep:subsecond",
"dep:dioxus-cli-config",
"dep:dioxus-devtools",
"web-sys/Location",
"web-sys/MessageEvent",
"web-sys/WebSocket",
"web-sys/Window",
]
[dev-dependencies]

View File

@@ -56,7 +56,6 @@ trace-component-props = []
actix = ["server_fn_macro/actix"]
axum = ["server_fn_macro/axum"]
generic = ["server_fn_macro/generic"]
subsecond = []
# Having an erasure feature rather than normal --cfg erase_components for the proc macro crate is a workaround for this rust issue:
# https://github.com/rust-lang/cargo/issues/4423
# TLDR proc macros will ignore RUSTFLAGS when --target is specified on the cargo command.

View File

@@ -334,12 +334,6 @@ fn view_macro_impl(tokens: TokenStream, template: bool) -> TokenStream {
template,
);
let nodes_output = if cfg!(feature = "subsecond") && false {
nodes_output.map(|n| quote! { || #n })
} else {
nodes_output
};
// The allow lint needs to be put here instead of at the expansion of
// view::attribute_value(). Adding this next to the expanded expression
// seems to break rust-analyzer, but it works when the allow is put here.

View File

@@ -26,7 +26,6 @@ erased = { workspace = true, default-features = true }
wasm-bindgen = { workspace = true, default-features = true }
html-escape = { workspace = true, default-features = true }
js-sys = { workspace = true, default-features = true }
subsecond = { workspace = true, default-features = true, optional = true }
web-sys = { features = [
"Window",
"Document",
@@ -190,7 +189,6 @@ reactive_stores = ["reactive_graph", "dep:reactive_stores"]
sledgehammer = ["dep:sledgehammer_bindgen", "dep:sledgehammer_utils"]
tracing = ["dep:tracing"]
mark_branches = []
subsecond = ["dep:subsecond"]
[package.metadata.cargo-all-features]
denylist = ["tracing", "sledgehammer"]