Compile and Run in One Step
Use zig run to go from source to output.
From Source to Running
Normally you compile code into a binary, then run it. Zig folds both into a single friendly command: zig run. ⚡
The zig run Command
Point zig run at a source file and it compiles your program and immediately executes the result, all in one go.
zig run hello.zigAll lessons in this course
- Install Zig on Any Platform
- Your First main Function
- Printing with std.debug.print
- Compile and Run in One Step