dioxus-axum-fullstack
Expert guidance for Dioxus 0.7.3 and Axum 0.8 fullstack Rust development, featuring Signals and SSR patterns.
skill install https://www.promptspace.in/skills/dioxus-axum-fullstackProfessional Fullstack Rust Development
Building fullstack applications with Rust is powerful, but version transitions and crate interoperability can be a minefield. This skill provides expert-level guidance for Dioxus 0.7.3 integrated with Axum 0.8, ensuring your agent writes modern, idiomatic, and bug-free Rust code.
What it does
This skill handles the nuances of the Dioxus 0.7 lifecycle, including the removal of cx and Scope, the move to Signal-based state management, and the implementation of type-safe server functions. It covers:
- Modern Dioxus 0.7 Patterns:
use_signal,use_server_future, and#[component]macros. - Fullstack Integration: Bridging Axum 0.8 middleware,
tower-sessions, andsqlxqueries. - Cross-Platform Safety: Proper
cfggating for WASM vs. Server targets andasset!management. - Authentication & State: Context providers, global signals, and secure session handling.
Why use this skill
Standard LLMs often hallucinate deprecated Dioxus 0.6 syntax or struggle with the specific feature-flag requirements of fullstack Rust projects. This skill prevents "trait not satisfied" errors and compilation failures by enforcing strict architectural patterns, such as avoiding compile-time sqlx macros and correctly handling async suspensions during SSR.
Use cases
- Migrate Dioxus 0.6 code to 0.7 Signal-based architecture.
- Implement type-safe RPC calls using Dioxus server functions and Axum.
- Set up secure session-based authentication with tower-sessions and sqlx.
- Manage shared state across WASM and Server targets with GlobalSignal.
- Optimize SSR data fetching using use_server_future for consistent hydration.
Example
Prompt
Sample output preview is available after purchase.