#messagepack

bung

A serialization implementation for SurrealDB, based on MessagePack

1 unstable release

0.1.0 Mar 31, 2023

#1694 in Encoding

Download history 169/week @ 2024-07-21 151/week @ 2024-07-28 168/week @ 2024-08-04 178/week @ 2024-08-11 178/week @ 2024-08-18 173/week @ 2024-08-25 184/week @ 2024-09-01 160/week @ 2024-09-08 156/week @ 2024-09-15 185/week @ 2024-09-22 171/week @ 2024-09-29 43/week @ 2024-10-06 132/week @ 2024-10-13 128/week @ 2024-10-20 162/week @ 2024-10-27 130/week @ 2024-11-03

555 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

~365–690KB
~13K SLoC