Zig implementation of libp2p peer-id.
- Zig 0.14.1
To build the project, run the following command in the root directory of the project:
zig build -Doptimize=ReleaseSafeTo run the tests, run the following command in the root directory of the project:
zig build test --summary allTo generate documentation for the project, run the following command in the root directory of the project:
zig build docsUpdate build.zig.zon:
zig fetch --save git+https://github.com/blockblaz/peer-idIn your build.zig:
const peer_id_dep = b.dependency("peer_id", .{
.target = target,
.optimize = optimize,
});
const peer_id_module = peer_id_dep.module("peer_id");
root_module.addImport("peer_id", peer_id_module);