Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thislight/zigpak
Messagepack for zig
https://github.com/thislight/zigpak
messagepack msgpack zig ziglang
Last synced: about 17 hours ago
JSON representation
Messagepack for zig
- Host: GitHub
- URL: https://github.com/thislight/zigpak
- Owner: thislight
- License: apache-2.0
- Created: 2024-05-24T11:22:25.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2025-01-19T08:54:15.000Z (25 days ago)
- Last Synced: 2025-01-19T09:19:56.007Z (25 days ago)
- Topics: messagepack, msgpack, zig, ziglang
- Language: Zig
- Homepage: https://zigpak.pages.dev/zigpak/
- Size: 268 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Zigpak
Messagepack for Zig.
[![Checks](https://github.com/thislight/zigpak/actions/workflows/main.yml/badge.svg?branch=master&name=Checks)](https://github.com/thislight/zigpak/actions/workflows/main.yml)
- [API References (latest release)](https://zigpak.pages.dev/zigpak/)
- [API References (master)](https://master.zigpak.pages.dev/zigpak/)Supported:
- Zig 0.12 (best effort)
- Zig 0.13
- Zig 0.14 (the master branch)## Use In Your Project
Use a tarball link with `zig fetch --save`. You can find it in the "Tags" page. Some versions of zig can only fetch "tar.gz" files, so you may prefer this type.
```sh
zig fetch --save https://link-to-tarball
```Assume the saved name is the default "zigpak". In the build script, refer the "zigpak" module.
```zig
// build.zigpub fn build(b: *std.Build) void {
// ...
const exe: *std.Build.Compile;const zigpak = b.dependency("zigpak", .{
.target = target,
.optimize = optimize,
}).module("zigpak");exe.root_module.addImport("zigpak", zigpak);
}
```## License
Apache-2.0