titan-api-codec

Crates.iotitan-api-codec
lib.rstitan-api-codec
version1.2.1
created_at2025-10-29 15:39:18.65711+00
updated_at2025-12-30 15:59:52.066094+00
descriptionHelpers for encoding and decoding Titan API messages
homepagehttps://titan.exchange
repositoryhttps://github.com/Titan-Pathfinder/titan-sdk-rs
max_upload_size
id1906842
size114,468
cmakefun (other-chris)

documentation

README

Titan API Codec

Contains helpers for encoding and decoding Titan API types to/from binary.

Primary Usage

The main entry points for users should be:

  • titan_api_types::codec::ws::v1::ServerCodec: For server implementors.
  • titan_api_types::codec::ws::v1::ClientCodec: For client implementors.

Users would extract the Sec-WebSocket-Protocol header value after WebSocket protocol negotiation, use their chosen codec to parse that and generate the proper encoder and decoder for sending/receiving messages.

Features

All features are currently default, please use with-default-features = false if you wish to chose only specific features.

  • brotli: Enables brotli compression support.
  • gzip: Enables gzip compression support.
  • zstd: Enables zstd compression support.
  • messagepack: Enables MessagePack encoding support. Required for any Codecs to be available.
  • enum-other: Enables enum-other feature in titan-api-types to allow for handling unknown message types.
Commit count: 0

cargo fmt