muhammad-fiaz/zig-project-starter
a minimal starter template for Zig projects, including build script, source structure, and testing setup.
a minimal starter template for Zig projects, including build script, source structure, and testing setup.
Requirements
Quick start
git clone https://github.com/muhammad-fiaz/zig-project-starter.gitcd zig-project-starterzig buildzig build run (if a run step is configured)zig testProject layout
build.zig — central build scriptsrc/lib.zig — library codesrc/main.zig — demo executabletests/lib_test.zig — unit testsexamples/ — small demos (optional)Dependencies
zig fetch --save https://github.com/owner/zig-package.git@import("zig-cache/deps/github.com-owner-zig-package/src/lib.zig")build.zig per your workflow/version of ZigNotes
zig fmt to format code.zig-cache and zig-out are build artifacts and should be ignored by git.License