#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

#2222 in Web programming

Download history 131/week @ 2024-05-06 109/week @ 2024-05-13

240 downloads per month

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–19MB
~210K SLoC