unibs
binary de-/serialization that works on js, c and VM (compiletime)
Summary
| Latest Version | Unknown |
|---|---|
| License | MIT |
| CI Status | Failing |
| Downloads | 0 |
| Last Indexed | 2026-07-21 05:23 |
Tags
Installation
nimble install unibs
choosenim install unibs
git clone https://github.com/choltreppe/unibs
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| unibs | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Source
| Repository | https://github.com/choltreppe/unibs |
|---|---|
| Homepage | https://github.com/choltreppe/unibs |
| Registry Source | nimble_official |
README
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)])