Dioxus Fullstack
Website | Guides | API Docs | Chat
Fullstack utilities for the Dioxus
framework.
Features
- Integrates with the Axum server framework with utilities for serving and rendering Dioxus applications.
- Server functions allow you to call code on the server from the client as if it were a normal function.
- Instant RSX Hot reloading with
dioxus-hot-reload
. - Passing root props from the server to the client.
Example
Full stack Dioxus in under 30 lines of code
use *;
async
Axum Integration
If you have an existing Axum router or you need more control over the server, you can use the DioxusRouterExt
trait to integrate with your existing Axum router.
First, make sure your axum
dependency is optional and enabled by the server feature flag. Axum cannot be compiled to wasm, so if it is enabled by default, it will cause a compile error:
[]
= { = "*", = ["fullstack"] }
= { = "0.7.0", = true }
= { = "1.0", = ["full"], = true }
= { = "*", = true }
[]
= ["dioxus/server", "dep:axum", "dep:tokio", "dioxus-cli-config"]
= ["dioxus/web"]
Then we can set up dioxus with the axum server:
use *;
// The entry point for the server
async
// For any other platform, we just launch the app
async
Getting Started
To get started with full stack Dioxus, check out our getting started guide, or the full stack examples.
Contributing
- Report issues on our issue tracker.
- Join the discord and ask questions!
License
This project is licensed under the MIT license.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Dioxus by you shall be licensed as MIT without any additional terms or conditions.