zoap

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

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

 1const Build = @import("std").Build;
 2
 3pub fn build(b: *Build) void {
 4    const target = b.standardTargetOptions(.{});
 5    const optimize = b.standardOptimizeOption(.{});
 6    const lib = b.addStaticLibrary(.{
 7        .name = "zoap",
 8        .root_source_file = b.path("src/zoap.zig"),
 9        .optimize = optimize,
10        .target = target,
11    });
12    b.installArtifact(lib);
13
14    var zoap_tests = b.addTest(.{
15        .root_source_file = b.path("src/zoap.zig"),
16        .target = target,
17        .optimize = optimize,
18    });
19
20    const test_step = b.step("test", "Run library tests");
21    test_step.dependOn(&zoap_tests.step);
22}