#framework #web-framework #web #messagepack #http

tokio-tungstenite-typed

tokio-tungstenite with type safe messages

2 releases

0.1.1 May 12, 2024
0.1.0 May 12, 2024

#29 in #messagepack

MIT license

17KB
326 lines

tokio-tungstenite-typed

tokio_tungstenite::WebSocketStream with type safe messages.

Build status Crates.io Documentation

More information about this crate can be found in the crate documentation.


lib.rs:

Feature flags

The following features are available:

  • json: Enables TextJsonCodec and BinaryJsonCodec which encodes message as JSON using serde_json. Enabled by default.
  • msgpack: Enables MsgPackCodec which encodes message as MessagePack using rmp-serde.
  • native-tls, rustls-tls-native-roots, rustls-tls-webpki-roots: Enables the specified tls backend in tungstenite

Dependencies

~4–15MB
~194K SLoC