Skip to main content

Module serializer

Module serializer 

Source
Expand description

Serialization and deserialization of cached values via MessagePack.

Constants§

MAX_DECODE_DEPTH
Maximum MessagePack nesting depth accepted from an untrusted payload.

Functions§

deserialize
Deserialize bytes from MessagePack into T under the decode bounds: the check_structure walk (depth ≤ MAX_DECODE_DEPTH, no overclaim) runs before anything is decoded. Trailing bytes are ignored (auto mode is SDK-internal; interop mode’s strict single-document read is crate::interop::deserialize).
serialize
Serialize value to MessagePack bytes using named fields (map format).