Getting Started
Install a master build, compile Hello World, and run your first test. If you used 0.13 or 0.14 before, the last chapter lists what moved and shows each replacement.
- This guide follows Zig master, not a tagged release. The footer names the compiler that compiled every snippet on the site.
- A test needs no framework and no separate file. A
testblock in any compiled file is a test, andzig testruns it. - Code from a 0.13 or 0.14 tutorial probably does not compile today. The failure is not your mistake. The last chapter tells you what moved.
5 chapters.
- InstallationHow to get a Zig master build, and why this guide needs one.
- Hello WorldYour first Zig program, and the reason that main now takes an argument.
- Run TestsTests are part of the language.
- Migrate from an Older ZigThe changes between the last stable releases and the master that this guide uses.
- What Changed in Zig 0.17The changes between 0.16.0 and 0.17.0, checked on the two compilers.