#server #serialization #web

dioxus-fullstack-core

Hooks for serializing futures, values in dioxus-fullstack and other utilities

8 releases

0.7.3 Jan 17, 2026
0.7.2 Dec 5, 2025
0.7.1 Nov 6, 2025
0.7.0 Oct 31, 2025

#478 in #server

Download history 5219/week @ 2025-11-05 4307/week @ 2025-11-12 4504/week @ 2025-11-19 4402/week @ 2025-11-26 6587/week @ 2025-12-03 6014/week @ 2025-12-10 5850/week @ 2025-12-17 7985/week @ 2025-12-24 5782/week @ 2025-12-31 7817/week @ 2026-01-07 9360/week @ 2026-01-14 9363/week @ 2026-01-21 8933/week @ 2026-01-28 11062/week @ 2026-02-04 10564/week @ 2026-02-11 13019/week @ 2026-02-18

45,103 downloads per month
Used in 44 crates (4 directly)

MIT/Apache

800KB
15K SLoC

Dioxus Fullstack Core

Dioxus-fullstack-core provides types, traits, hooks, contexts for dioxus-fullstack. Libraries that need to integrate with dioxus-fullstack should rely on this crate instead of the full-fledged renderer for quicker build times.

Usage

To start using this crate, you can run the following command:

cargo add dioxus-fullstack-hooks

Then you can use hooks like use_server_future in your components:

use dioxus::prelude::*;


fn App() -> Element {
    let mut article_id = use_signal(|| 0);

    // `use_server_future` will spawn a task that runs on the server and serializes the result to send to the client.
    // The future will rerun any time the
    // Since we bubble up the suspense with `?`, the server will wait for the future to resolve before rendering
    let article = use_server_future(move || fetch_article(article_id()))?;

    rsx! {
        "{article().unwrap()}"
    }
}

async fn fetch_article(id: u32) -> String {
    format!("Article {}", id)
}

Dependencies

~13–23MB
~352K SLoC