Discussion on: zig build explained - part 2

xq profile image
Felix "xq" Queißner Author

There is no "adding folders or files" for Zig. Zig uses relative paths for imports and builds all dependencies from a single .zig file. This is very different from C, where you usually have tons of files in the build process. Zig only requires the "root" one which contains the application entry point (usually main)

Just put your starting file into any folder you like and use a relative path to that in the build.zig file in b.addExecutable (or similar)