zig Command Examples

The Zig compiler and toolchain. More information: https://ziglang.org.

zig build

zig build run

zig init

zig test {{path/to/file.zig}}

zig build run -fwine -Dtarget=x86_64-windows

zig fmt {{path/to/file.zig}}

zig translate-c -lc {{path/to/file.c}}

zig c++ {{path/to/file.cpp}}