zoap

A WiP CoAP implementation for bare-metal constrained devices in Zig

git clone https://git.8pit.net/zoap.git

 1const Builder = @import("std").build.Builder;
 2
 3pub fn build(b: *Builder) void {
 4    const mode = b.standardReleaseOptions();
 5    const lib = b.addStaticLibrary("zoap", "src/zoap.zig");
 6    lib.setBuildMode(mode);
 7    lib.install();
 8
 9    var zoap_tests = b.addTest("src/zoap.zig");
10    zoap_tests.setBuildMode(mode);
11
12    const test_step = b.step("test", "Run library tests");
13    test_step.dependOn(&zoap_tests.step);
14}