a73x

796976ec

chore: minimal build.zig with working fingerprint

a73x   2026-04-08 05:50

Commit message
chore: minimal build.zig with working fingerprint

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

build.zig
Old New
@@ -0,0 +1,37 @@
1 const std = @import("std");
2
3 pub fn build(b: *std.Build) void {
4 const target = b.standardTargetOptions(.{});
5 const optimize = b.standardOptimizeOption(.{});
6
7 const exe_mod = b.createModule(.{
8 .root_source_file = b.path("src/main.zig"),
9 .target = target,
10 .optimize = optimize,
11 });
12
13 const exe = b.addExecutable(.{
14 .name = "waystty",
15 .root_module = exe_mod,
16 });
17
18 b.installArtifact(exe);
19
20 const run_cmd = b.addRunArtifact(exe);
21 run_cmd.step.dependOn(b.getInstallStep());
22 if (b.args) |args| run_cmd.addArgs(args);
23
24 const run_step = b.step("run", "Run waystty");
25 run_step.dependOn(&run_cmd.step);
26
27 const test_step = b.step("test", "Run unit tests");
28 const test_mod = b.createModule(.{
29 .root_source_file = b.path("src/main.zig"),
30 .target = target,
31 .optimize = optimize,
32 });
33 const tests = b.addTest(.{
34 .root_module = test_mod,
35 });
36 test_step.dependOn(&b.addRunArtifact(tests).step);
37 }
build.zig.zon
Old New
@@ -1,7 +1,7 @@
1 .{ 1 .{
2 .name = .waystty, 2 .name = .waystty,
3 .version = "0.0.1", 3 .version = "0.0.1",
4 .fingerprint = 0x0, 4 .fingerprint = 0xcb31d50ee642c105,
5 .minimum_zig_version = "0.15.0", 5 .minimum_zig_version = "0.15.0",
6 .paths = .{ 6 .paths = .{
7 "build.zig", 7 "build.zig",
src/main.zig
Old New
@@ -0,0 +1,5 @@
1 const std = @import("std");
2
3 pub fn main() !void {
4 std.debug.print("waystty\n", .{});
5 }