first try on binary serialization

This commit is contained in:
2025-12-07 20:29:50 +01:00
parent 815331f323
commit c3e99821dd
3 changed files with 40 additions and 18 deletions

View File

@@ -16,22 +16,18 @@ pub fn build(b: *std.Build) void {
b.installArtifact(exe);
const run_step = b.step("run", "Run the app");
const run_cmd = b.addRunArtifact(exe);
run_step.dependOn(&run_cmd.step);
run_cmd.step.dependOn(b.getInstallStep());
if (b.args) |args| {
run_cmd.addArgs(args);
}
const exe_tests = b.addTest(.{
const tests = b.addTest(.{
.root_module = exe.root_module,
});
const run_exe_tests = b.addRunArtifact(exe_tests);
const run_tests = b.addRunArtifact(tests);
const test_step = b.step("test", "Run tests");
test_step.dependOn(&run_exe_tests.step);
test_step.dependOn(&run_tests.step);
}