16 releases
Uses new Rust 2024
| 0.1.1 | Sep 10, 2025 |
|---|---|
| 0.1.0 | Sep 10, 2025 |
| 0.0.145 | Aug 30, 2025 |
#759 in HTTP server
32 downloads per month
355KB
7.5K
SLoC
musli-web
This crate provides a set of utilities for working with various web-based APIs and Müsli.
It includes support for:
axumJsonintegration, allowing you to use Müsli for serialization and deserialization in your Axum applications.axumws::Serverintegration, allowing you to build the server side of the websocket protocol this crate implements.yewintegration, allowing you to use Müsli for communicating with websocket clients using a well-defined API.
Note that the organization of the modules include the version of the corresponding
crate. Unstable versions are prefixed with 0, such as yew021.
See the following modules for how to use:
axum08foraxum0.8.xintegration.yew021foryew0.21.xintegration.web03forweb-sys0.3.xintegration.
Examples
apiis the example crate which defines API types shared between server and client.serveris the axum-based server implementation.clientis the yew client communicating with the server.
You can run the client like this:
cd examples/client && trunk serve
You can run the server like this:
cd examples/server && cargo run
Dependencies
~0.2–25MB
~422K SLoC