Commit af14b64e
af14b64e983eMerged
Scott Nixon <[email protected]> ยท 9 months ago ยท 1 file ยท ~1 modified
Description
Fix attractor-web Cargo.toml features for SSR/WASM compatibility
- Make tokio, axum, and leptos_axum optional dependencies
- Enable them only for SSR feature to avoid WASM conflicts
- Update tokio to use explicit features instead of workspace features
- Server binary now builds successfully
Details
- Commit
- af14b64e983e
- Parent
- 0b04eec35042
crates/attractor-web/Cargo.tomlmodifiedView file
@@ -11,9 +11,9 @@
1111
leptos_router = { version = "0.7", default-features = false }1212
leptos_meta = { version = "0.7", default-features = false }1313
leptos_config = { version = "0.7" }14-
leptos_axum = { version = "0.7" }15-
axum = "0.7"16-
tokio = { workspace = true, features = ["rt-multi-thread"] }14+
leptos_axum = { version = "0.7", optional = true }15+
axum = { version = "0.7", optional = true }16+
tokio = { version = "1", features = ["rt-multi-thread", "macros"], optional = true }1717
tower = "0.5"1818
tower-http = { version = "0.6", features = ["fs"] }1919
wasm-bindgen = { version = "0.2", optional = true }@@ -31,6 +31,9 @@
3131
]3232
ssr = [3333
"leptos/ssr",34+
"dep:leptos_axum",35+
"dep:axum",36+
"dep:tokio",3437
]3538
3639
[package.metadata.leptos]