4YWSK5MOQAVNK2Y5SGP33LUMG7ZED4SXCJOGU6KFYD77LXM6LBSAC //! This Source Code Form is subject to the terms of the Mozilla Public//! License, v. 2.0. If a copy of the MPL was not distributed with this//! file, You can obtain one at https://mozilla.org/MPL/2.0/.//!//! Copyright (c) 2026 Prince Bett <@kodesoul>// ---- Imports.const std = @import("std");
//! This Source Code Form is subject to the terms of the Mozilla Public//! License, v. 2.0. If a copy of the MPL was not distributed with this//! file, You can obtain one at https://mozilla.org/MPL/2.0/.//!//! Copyright (c) 2026 Prince Bett <@kodesoul>// ---- Mainpub fn main(init: std.process.Init) !void {const io = init.io;var stdout_buffer: [1024]u8 = undefined;var stdout_file_writer: Io.File.Writer = .init(.stdout(), io, &stdout_buffer);const stdout_writer = &stdout_file_writer.interface;try stdout_writer.print("Hello Rafiki\n", .{});try stdout_writer.flush();}// ---- Imports.const zuri = @import("zuri");const std = @import("std");const Io = std.Io;
.{.name = .zuri,.version = "0.0.0",.minimum_zig_version = "0.16.0",.dependencies = .{},.paths = .{"build.zig","build.zig.zon","source","README.md",},}
// ---- Build.pub fn build(b: *std.Build) void {const target = b.standardTargetOptions(.{});const optimize = b.standardOptimizeOption(.{});const lib = b.addModule("zuri", .{.root_source_file = b.path("source/root.zig"),.target = target,});const mod = b.createModule(.{.root_source_file = b.path("source/main.zig"),.target = target,.optimize = optimize,.imports = &.{.{.name = "zuri",.module = lib,},},});const cli = b.addExecutable(.{.name = "zuri",.root_module = mod,});b.installArtifact(cli);// --- Running.const run_step = b.step("run", "Run the app");const run_cmd = b.addRunArtifact(cli);run_step.dependOn(&run_cmd.step);run_cmd.step.dependOn(b.getInstallStep());if (b.args) |args| run_cmd.addArgs(args);// --- Testing.const test_step = b.step("test", "Run tests");const lib_tests = b.addTest(.{ .root_module = lib });const mod_tests = b.addTest(.{ .root_module = mod });const run_lib_tests = b.addRunArtifact(lib_tests);const run_mod_tests = b.addRunArtifact(mod_tests);test_step.dependOn(&run_lib_tests.step);test_step.dependOn(&run_mod_tests.step);}// ---- Imports.const std = @import("std");