datastar 0.1.1

Datastar is the Rust implementation of the [Datastar](https://data-star.dev) SDK.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Datastar Rust SDK

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

# Usage

```rust
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();
})
```