Expand description
MsgPack binary format for facet using the Tier-2 JIT architecture.
This crate provides Tier-2 JIT deserialization for the MsgPack binary format.
It implements JitFormat and FormatJitParser to enable direct byte-level
parsing without going through the event abstraction.
Note: This crate is Tier-2 only. It does not implement a full FormatParser
(ParseEvent) stack. For non-JIT MsgPack support, use facet-msgpack.
§Supported Types (v1)
Vec<bool>- MsgPack booleans (0xC2/0xC3)Vec<u8>- MsgPack bin (0xC4/0xC5/0xC6) - bulk copy fast pathVec<u32>,Vec<u64>,Vec<i32>,Vec<i64>- MsgPack integers
§Wire Format
This crate implements a subset of the MsgPack specification:
| Type | Tags |
|---|---|
| Bool | 0xC2 (false), 0xC3 (true) |
| Unsigned | fixint (0x00-0x7F), 0xCC (u8), 0xCD (u16), 0xCE (u32), 0xCF (u64) |
| Signed | negative fixint (0xE0-0xFF), 0xD0 (i8), 0xD1 (i16), 0xD2 (i32), 0xD3 (i64) |
| Binary | 0xC4 (bin8), 0xC5 (bin16), 0xC6 (bin32) |
| Array | fixarray (0x90-0x9F), 0xDC (array16), 0xDD (array32) |
Structs§
- MsgPack
Error - MsgPack parsing error.
- MsgPack
Parser - MsgPack parser for Tier-2 JIT deserialization.
Enums§
- Deserialize
Error - Error produced by
FormatDeserializer.
Functions§
- from_
slice - Deserialize a value from MsgPack bytes (non-JIT fallback).