musli-web

Crates.iomusli-web
lib.rsmusli-web
version0.0.144
created_at2025-08-13 23:27:40.54065+00
updated_at2025-08-29 23:33:27.051778+00
descriptionTypes for integrating Müsli with websocket frameworks.
homepagehttps://github.com/udoprog/musli
repositoryhttps://github.com/udoprog/musli
max_upload_size
id1794258
size174,640
John-John Tedro (udoprog)

documentation

https://docs.rs/musli

README

musli-web

github crates.io docs.rs build status

This crate provides a set of utilities for working with various web-based APIs and Müsli.

It includes support for:

  • axum Json integration, allowing you to use Müsli for serialization and deserialization in your Axum applications.
  • axum ws::Server integration, allowing you to build the server side of the websocket protocol this crate implements.
  • yew integration, 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:

  • [axum08] for axum 0.8.x integration.
  • [yew021] for yew 0.21.x integration.
  • [web03] for web-sys 0.3.x integration.

Examples

  • api is the example crate which defines API types shared between server and client.
  • server is the axum-based server implementation.
  • client is 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
Commit count: 970

cargo fmt