#serialization #messagepack #serde

bung

A serialization implementation for SurrealDB, based on MessagePack

1 unstable release

0.1.0 Mar 31, 2023

#1800 in Encoding

Download history 196/week @ 2024-01-05 208/week @ 2024-01-12 158/week @ 2024-01-19 140/week @ 2024-01-26 87/week @ 2024-02-02 190/week @ 2024-02-09 227/week @ 2024-02-16 162/week @ 2024-02-23 160/week @ 2024-03-01 221/week @ 2024-03-08 163/week @ 2024-03-15 223/week @ 2024-03-22 230/week @ 2024-03-29 180/week @ 2024-04-05 211/week @ 2024-04-12 147/week @ 2024-04-19

802 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

~385–720KB
~14K SLoC