/unibs

binary de-/serialization that works on js, c and comp-time

Primary LanguageNimMIT LicenseMIT

important: this package is pretty much a worse version of flatty (some parts even copied from there) except the advantage that it works at comp-time, so just cosider it when you need the comptime support.

Unibs

Serialize and deserialize any type to/from binary form.
Works in c, js backend, and in compiletime.

serialize

let serial = serialize([("foo", 4), ("ba", 2)])

deserialize

let data = deserialize(serial, array[2, (string, int)])