MessagePack support for Swim serialization.
Provides a MessagesPack backend for the Swim serialization system. This consists of two parts:
- A function [
read_from_msg_pack] that will attempt to deserialize any type that implements [swimos_form::read::StructuralReadable] from a buffer containing MessagePack data. - The type [
MsgPackInterpreter] that implements [swimos_form::write::StructuralWriter] allowing any type that implements [swimos_form::write::StructuralWritable] to be serialized as MessagePack.
Examples
use ;
use StructuralWritable;
use ;
let mut buffer = with_capacity;
let data = vec!;
let mut writer = .writer;
let interpreter = new;
assert!;
let mut bytes = buffer.split.freeze;
let restored = ;
assert_eq!;