| Crates.io | titan-api-codec |
| lib.rs | titan-api-codec |
| version | 1.2.1 |
| created_at | 2025-10-29 15:39:18.65711+00 |
| updated_at | 2025-12-30 15:59:52.066094+00 |
| description | Helpers for encoding and decoding Titan API messages |
| homepage | https://titan.exchange |
| repository | https://github.com/Titan-Pathfinder/titan-sdk-rs |
| max_upload_size | |
| id | 1906842 |
| size | 114,468 |
Contains helpers for encoding and decoding Titan API types to/from binary.
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.
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.