const std = @import("std"); pub fn build(b: *std.Build) void { const target = b.standardTargetOptions(.{}); const optimize = b.standardOptimizeOption(.{}); // The public module: `@import("csv_utils")` from a dependent project // resolves to src/root.zig. const mod = b.addModule("csv_utils", .{ .root_source_file = b.path("src/root.zig"), .target = target, .optimize = optimize, }); // `zig build test` — runs the library's test suite. const tests = b.addTest(.{ .root_module = mod, }); const run_tests = b.addRunArtifact(tests); const test_step = b.step("test", "Run library tests"); test_step.dependOn(&run_tests.step); }