#messagepack #serialization #serde

bung

A serialization implementation for SurrealDB, based on MessagePack

1 unstable release

0.1.0 Mar 31, 2023

#1891 in Encoding

Download history 163/week @ 2024-09-30 28/week @ 2024-10-07 136/week @ 2024-10-14 147/week @ 2024-10-21 146/week @ 2024-10-28 131/week @ 2024-11-04 61/week @ 2024-11-11 82/week @ 2024-11-18 199/week @ 2024-11-25 161/week @ 2024-12-02 286/week @ 2024-12-09 202/week @ 2024-12-16 183/week @ 2024-12-23 87/week @ 2024-12-30 213/week @ 2025-01-06 265/week @ 2025-01-13

751 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