0PricingLogin
Zig Academy · Lesson

build.zig.zon and the Package Manager

Declare dependencies in a manifest.

A Manifest for Your Package

Beside build.zig sits build.zig.zon, the manifest that names your package and lists what it depends on. 📜

ZON Is Zig Object Notation

The file is written in ZON, which looks just like a Zig anonymous struct literal. Dotted field names map to plain Zig values.

.{
    .name = .myapp,
    .version = "0.1.0",
}

All lessons in this course

  1. Importing Files with @import
  2. Structuring a Multi-File Project
  3. build.zig.zon and the Package Manager
  4. Adding a Third-Party Module
← Back to Zig Academy