atproto utils for zig zat.dev
atproto sdk zig
at main 956 B view raw
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 mod = b.addModule("zat", .{ 8 .root_source_file = b.path("src/root.zig"), 9 .target = target, 10 .optimize = optimize, 11 }); 12 13 const tests = b.addTest(.{ .root_module = mod }); 14 const run_tests = b.addRunArtifact(tests); 15 16 const test_step = b.step("test", "run unit tests"); 17 test_step.dependOn(&run_tests.step); 18 19 // publish-docs script (uses zat to publish docs to ATProto) 20 const publish_docs = b.addExecutable(.{ 21 .name = "publish-docs", 22 .root_module = b.createModule(.{ 23 .root_source_file = b.path("scripts/publish-docs.zig"), 24 .target = target, 25 .optimize = optimize, 26 .imports = &.{.{ .name = "zat", .module = mod }}, 27 }), 28 }); 29 b.installArtifact(publish_docs); 30}