borsh-zig
borsh-zig copied to clipboard
A Zig implementation of the Borsh binary format specification.
borsh-zig
A Zig implementation of the Borsh binary format specification.
Setup
In build.zig:
const std = @import("std");
const borsh_pkg: std.build.Pkg = .{
.name = "borsh",
.path = .{ .path = "borsh-zig/borsh.zig" },
};
// Assume 'step' is a *std.build.LibExeObjStep.
step.addPackage(borsh_pkg);
Specification
Refer to the official specification.