The Zig compiler and toolchain.
More information.
- Compile the project in the current directory:
- Compile and run the project in the current directory:
- Initialize a `zig build` application:
- Intitialize a `zig build` library:
- Create and run a test build:
zig test {path/to/file.zig}
- Reformat Zig source into canonical form:
zig fmt {path/to/file.zig}
- Use Zig as a drop-in C compiler:
- Use Zig as a drop-in C++ compiler:
zig c++ {path/to/file.cpp}
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).
CC-BY