Upgrade to axum 0.7, drop 3rd party adapters

This commit is contained in:
Jonathan Kelley committed 2024-02-15 18:05:30 -08:00
1 parent 5dd33c9dcd
commit 214a907adc
53 files changed
+643 -3260

No files matched your search

+8 -8
View File
@@ -26,9 +26,7 @@ async fn main() {
"/ws",
get(move |ws: WebSocketUpgrade| async move {
ws.on_upgrade(move |socket| async move {
_ = view
.launch(dioxus_liveview::axum_socket(socket), Route::Home {})
.await;
_ = view.launch(dioxus_liveview::axum_socket(socket), app).await;
})
}),
);
@@ -43,11 +41,13 @@ async fn main() {
#[cfg(not(feature = "liveview"))]
fn main() {
launch(|| {
rsx! {
Router::<Route> {}
}
})
launch(app)
}
fn app() -> Element {
rsx! {
Router::<Route> {}
}
}
#[component]