codify "platform" into resolution logic, server-fn/fullstack overhaul (#4596)

overhaul dioxus fullstack using a new implementation of server_fn

This PR is a complete rewrite of dioxus fullstack designed to improve compatibility with axum and to fix a number of compilation errors based on feature flag unification plumbing through macros.
This commit is contained in:
Jonathan Kelley authored and GitHub committed 2025-10-03 18:26:19 -07:00
1 parent 8421c3aef0
commit f2b1c6d97f
424 files changed
+17284 -6624

No files matched your search

+3 -3
View File
@@ -21,13 +21,13 @@ pub(crate) async fn proxy_websocket(
.await
.map_err(IntoResponse::into_response)?;
tracing::info!(dx_src = ?TraceSrc::Dev, "Proxying websocket connection {req:?}");
tracing::trace!(dx_src = ?TraceSrc::Dev, "Proxying websocket connection {req:?}");
let proxied_request = into_proxied_request(req, backend_url).map_err(handle_proxy_error)?;
tracing::info!(dx_src = ?TraceSrc::Dev, "Connection proxied to {proxied_uri}", proxied_uri = proxied_request.uri());
tracing::trace!(dx_src = ?TraceSrc::Dev, "Connection proxied to {proxied_uri}", proxied_uri = proxied_request.uri());
Ok(ws.on_upgrade(move |client_ws| async move {
match handle_ws_connection(client_ws, proxied_request).await {
Ok(()) => tracing::info!(dx_src = ?TraceSrc::Dev, "Websocket connection closed"),
Ok(()) => tracing::trace!(dx_src = ?TraceSrc::Dev, "Websocket connection closed"),
Err(e) => {
tracing::error!(dx_src = ?TraceSrc::Dev, "Error proxying websocket connection: {e}")
}
-4
View File
@@ -337,10 +337,6 @@ impl WebServer {
/// Tells all clients to reload if possible for new changes.
pub(crate) async fn send_reload_command(&mut self) {
tracing::trace!("Sending reload to toast");
tokio::time::sleep(std::time::Duration::from_millis(500)).await;
self.build_status.set(Status::Ready);
self.send_build_status().await;
self.send_devserver_message_to_all(DevserverMsg::FullReloadCommand)