https://github.com/techcable/zig-mpack
Msgpack library for Zig (bindings to ludocode/mpack)
https://github.com/techcable/zig-mpack
mpack msgpack zig
Last synced: 2 months ago
JSON representation
Msgpack library for Zig (bindings to ludocode/mpack)
- Host: GitHub
- URL: https://github.com/techcable/zig-mpack
- Owner: Techcable
- License: mit
- Created: 2022-05-07T00:58:03.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T10:17:13.000Z (over 2 years ago)
- Last Synced: 2025-04-05T07:46:18.937Z (2 months ago)
- Topics: mpack, msgpack, zig
- Language: Zig
- Homepage:
- Size: 43 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
zig-mpack
=========
Zig bindings to [ludocode/mpack](https://github.com/ludocode/mpack).The underlying library is excellent (and ~60K). We just add a nice Zig wrapper.
The bindings pretty closely match the underlying C API, with a handful exceptions:
1. We convert to zig-style errors for use with `try`/`catch`
## TODO?
These bindings are incomplete, please open a PR (or an issue) if there is something you need and we don't have.In particular, we don't include bindings to the Node API (yet). See issue #4
Type reflection doesn't work with structs. This is fairly difficult to do when input is a map
and the fields can be in any order :(