Crate facet_format_msgpack

Crate facet_format_msgpack 

Source
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 path
  • Vec<u32>, Vec<u64>, Vec<i32>, Vec<i64> - MsgPack integers

§Wire Format

This crate implements a subset of the MsgPack specification:

TypeTags
Bool0xC2 (false), 0xC3 (true)
Unsignedfixint (0x00-0x7F), 0xCC (u8), 0xCD (u16), 0xCE (u32), 0xCF (u64)
Signednegative fixint (0xE0-0xFF), 0xD0 (i8), 0xD1 (i16), 0xD2 (i32), 0xD3 (i64)
Binary0xC4 (bin8), 0xC5 (bin16), 0xC6 (bin32)
Arrayfixarray (0x90-0x9F), 0xDC (array16), 0xDD (array32)

Structs§

MsgPackError
MsgPack parsing error.
MsgPackParser
MsgPack parser for Tier-2 JIT deserialization.

Enums§

DeserializeError
Error produced by FormatDeserializer.

Functions§

from_slice
Deserialize a value from MsgPack bytes (non-JIT fallback).