5 releases

Uses new Rust 2024

new 0.2.0 May 3, 2025
0.1.3 Apr 18, 2025
0.1.2 Apr 18, 2025
0.1.1 Apr 18, 2025
0.1.0 Apr 18, 2025

#657 in HTTP server

Download history 319/week @ 2025-04-14 58/week @ 2025-04-21 102/week @ 2025-04-28

479 downloads per month

MIT/Apache

69KB
1.5K SLoC

Datastar Rust SDK

An implementation of the Datastar SDK in Rust with framework integration for Axum, Rocket and Rama.

Usage

use datastar::prelude::*;
use async_stream::stream;

Sse(stream! {
    // Merges HTML fragments into the DOM.
    yield MergeFragments::new("<div id='question'>What do you put in a toaster?</div>").into();

    // Merges signals into the signals.
    yield MergeSignals::new("{response: '', answer: 'bread'}").into();
})

Dependencies

~0.5–36MB
~562K SLoC