a73x

796976ec

chore: minimal build.zig with working fingerprint

a73x   2026-04-08 05:50

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

diff --git a/build.zig b/build.zig
new file mode 100644
index 0000000..b5f3c40
--- /dev/null
+++ b/build.zig
@@ -0,0 +1,37 @@
const std = @import("std");

pub fn build(b: *std.Build) void {
    const target = b.standardTargetOptions(.{});
    const optimize = b.standardOptimizeOption(.{});

    const exe_mod = b.createModule(.{
        .root_source_file = b.path("src/main.zig"),
        .target = target,
        .optimize = optimize,
    });

    const exe = b.addExecutable(.{
        .name = "waystty",
        .root_module = exe_mod,
    });

    b.installArtifact(exe);

    const run_cmd = b.addRunArtifact(exe);
    run_cmd.step.dependOn(b.getInstallStep());
    if (b.args) |args| run_cmd.addArgs(args);

    const run_step = b.step("run", "Run waystty");
    run_step.dependOn(&run_cmd.step);

    const test_step = b.step("test", "Run unit tests");
    const test_mod = b.createModule(.{
        .root_source_file = b.path("src/main.zig"),
        .target = target,
        .optimize = optimize,
    });
    const tests = b.addTest(.{
        .root_module = test_mod,
    });
    test_step.dependOn(&b.addRunArtifact(tests).step);
}
diff --git a/build.zig.zon b/build.zig.zon
index 398cdd1..d138c52 100644
--- a/build.zig.zon
+++ b/build.zig.zon
@@ -1,7 +1,7 @@
.{
    .name = .waystty,
    .version = "0.0.1",
    .fingerprint = 0x0,
    .fingerprint = 0xcb31d50ee642c105,
    .minimum_zig_version = "0.15.0",
    .paths = .{
        "build.zig",
diff --git a/src/main.zig b/src/main.zig
new file mode 100644
index 0000000..2fda07a
--- /dev/null
+++ b/src/main.zig
@@ -0,0 +1,5 @@
const std = @import("std");

pub fn main() !void {
    std.debug.print("waystty\n", .{});
}