3Hren / msgpack-rust

MessagePack implementation for Rust / msgpack.org[Rust]
MIT License
1.14k stars 130 forks source link

support records/string references #338

Open raylu opened 11 months ago

raylu commented 11 months ago

I often want to encode a bunch of identically-shaped objects like

{"name": "raylu", "id": 1}
{"name": "bob", "id": 2}

msgpackr supports "records" for this: https://github.com/kriszyp/msgpackr#record--object-structures

cbor2 supports "string references": https://cbor2.readthedocs.io/en/latest/usage.html#string-references

it would be nice if msgpack-rust (and, thus, ormsgpack) supported something like either of these