A poolable string builder (aka string buffer) for Zig
0

Configure Feed

Select the types of activity you want to include in your feed.

buffer.zig / build.zig
664 B 22 lines
1const std = @import("std"); 2 3pub fn build(b: *std.Build) !void { 4 const target = b.standardTargetOptions(.{}); 5 const optimize = b.standardOptimizeOption(.{}); 6 7 const buffer = b.addModule("buffer", .{ 8 .root_source_file = b.path("src/buffer.zig"), 9 .target = target, 10 .optimize = optimize, 11 }); 12 13 const lib_test = b.addTest(.{ 14 .root_module = buffer, 15 .test_runner = .{ .path = b.path("test_runner.zig"), .mode = .simple }, 16 }); 17 const run_test = b.addRunArtifact(lib_test); 18 run_test.has_side_effects = true; 19 20 const test_step = b.step("test", "Run tests"); 21 test_step.dependOn(&run_test.step); 22}