#serialization #messagepack #serde

bung

A serialization implementation for SurrealDB, based on MessagePack

1 unstable release

0.1.0 Mar 31, 2023

#1933 in Encoding

Download history 76/week @ 2024-11-17 190/week @ 2024-11-24 151/week @ 2024-12-01 286/week @ 2024-12-08 239/week @ 2024-12-15 99/week @ 2024-12-22 129/week @ 2024-12-29 206/week @ 2025-01-05 277/week @ 2025-01-12 287/week @ 2025-01-19 104/week @ 2025-01-26 233/week @ 2025-02-02 276/week @ 2025-02-09 142/week @ 2025-02-16 263/week @ 2025-02-23 100/week @ 2025-03-02

823 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

~360–680KB
~13K SLoC