LINE1 10 20 30 40 50 60 70 801const std = @import("std");23const manifest = @embedFile("build.zig.zon");45fn manifestVersion() []const u8 {6 const marker = ".version = \"";7 const start = std.mem.indexOf(u8, manifest, marker) orelse return "0.0.0";8 const rest = manifest[start + marker.len ..];9 const end = std.mem.indexOfScalar(u8, rest, '"') orelse return "0.0.0";10 return rest[0..end];11}1213pub fn build(b: *std.Build) void {14 const target = b.standardTargetOptions(.{});15 const optimize = b.standardOptimizeOption(.{});1617 const options = b.addOptions();18 options.addOption([]const u8, "version", manifestVersion());19 options.addOption([]const u8, "skill", @embedFile("skills/silen-infra/SKILL.md"));2021 const root_module = b.createModule(.{22 .root_source_file = b.path("src/main.zig"),23 .target = target,24 .optimize = optimize,25 });26 root_module.addOptions("build_options", options);2728 const exe = b.addExecutable(.{29 .name = "any",30 .root_module = root_module,31 });32 b.installArtifact(exe);3334 const run_step = b.step("run", "Run any");35 const run_cmd = b.addRunArtifact(exe);36 run_cmd.step.dependOn(b.getInstallStep());37 run_cmd.addPassthruArgs();38 run_step.dependOn(&run_cmd.step);3940 const exe_tests = b.addTest(.{41 .root_module = root_module,42 });43 const run_tests = b.addRunArtifact(exe_tests);44 const test_step = b.step("test", "Run all tests");45 test_step.dependOn(&run_tests.step);46}