#serialization #messagepack #serde

bung

A serialization implementation for SurrealDB, based on MessagePack

1 unstable release

0.1.0 Mar 31, 2023

#1679 in Encoding

Download history 163/week @ 2024-03-13 215/week @ 2024-03-20 219/week @ 2024-03-27 210/week @ 2024-04-03 190/week @ 2024-04-10 197/week @ 2024-04-17 209/week @ 2024-04-24 194/week @ 2024-05-01 200/week @ 2024-05-08 192/week @ 2024-05-15 198/week @ 2024-05-22 207/week @ 2024-05-29 156/week @ 2024-06-05 162/week @ 2024-06-12 185/week @ 2024-06-19 152/week @ 2024-06-26

682 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

~380–720KB
~14K SLoC