Overview of musli-web
mainmusli-web is a utility crate designed for working with web-based APIs using the [Müsli] serialization format. It provides specialized integrations for common Rust web frameworks and libraries to facilitate efficient communication.
Key Integrations
- Axum
Json: Enables using Müsli for serialization and deserialization within Axum applications. - Axum
ws::Server: Provides tools to build the server-side implementation of the websocket protocol provided by this crate. - Yew: Enables communication with websocket clients using a well-defined API.
- web-sys: Provides integration for
web-sys0.3.xvia theweb03module.
Core Features
- WASM-compatible Websocket Protocol: A convenient protocol supporting both request-reply patterns and broadcasts.
- Channel Support: Allows the server to identify the source of a message and enables clients to correlate messages using
Handle::channel.