#msgpack #message-pack #serde #serialization

bung

A serialization implementation for SurrealDB, based on MessagePack

1 unstable release

0.1.0 Mar 31, 2023

#1507 in Encoding

Download history 2246/week @ 2023-07-29 1696/week @ 2023-08-05 1749/week @ 2023-08-12 1151/week @ 2023-08-19 1130/week @ 2023-08-26 499/week @ 2023-09-02 455/week @ 2023-09-09 418/week @ 2023-09-16 190/week @ 2023-09-23 265/week @ 2023-09-30 265/week @ 2023-10-07 276/week @ 2023-10-14 291/week @ 2023-10-21 302/week @ 2023-10-28 287/week @ 2023-11-04 165/week @ 2023-11-11

1,079 downloads per month

MIT license

89KB
2.5K SLoC

bung

The bung library is a custom MessagePack based serialization implementation for SurrealDB, based originally on the Rust MessagePack library. It enables enums and structs to be serialized using a number of different configurations, including named struct serialization, and either named or index-based compact enum serialization.

docs.rs Crates.io

Features

  • Clear error handling
  • Zero-copy value deserialization
  • Simple serialization configuration
  • Named struct serialization configuration
  • Name or integer based compact enum serialization configuration

Original

This code is based on and forked originally from rmp-serde, licensed under the and MIT licenses.

Dependencies

~395–730KB
~14K SLoC