const std = @import("std"); pub fn build(b: *std.Build) void { const target = b.standardTargetOptions(.{}); const optimize = b.standardOptimizeOption(.{}); const cbor_mod = b.addModule("cbor", .{ .root_source_file = b.path("src/cbor.zig"), }); const tests = b.addTest(.{ .root_source_file = b.path("test/tests.zig"), .target = target, .optimize = optimize, }); tests.root_module.addImport("cbor", cbor_mod); const test_run_cmd = b.addRunArtifact(tests); const test_step = b.step("test", "Run unit tests"); test_step.dependOn(&test_run_cmd.step); }