Skip to the content.

zigmod.yml Reference

zigmod.yml is the main manifest that Zigmod will read to learn all about your application or package.

zig.mod is a valid legacy alternative.

id

name

main

license

c_include_dirs

c_source_flags

c_source_files

files

root_files

translate_c_h

dependencies

root_dependencies

build_dependencies

min_zig_version

min_zigmod_version


Dep Object

This is the object used in the top-level dependencies attribute and used to add external code to your project.

Dep src

The available types are:

For the full details on Dep types, you can check out the source where the enum is defined: https://github.com/nektro/zigmod/blob/master/src/util/dep_type.zig.

Note: the local type modifies the input behavior to be shorthand for name path rather than path ?version since the latter fields don’t make sense for local files.

Dep version

Version types available to each Dep type:

Dep only_os

Dep except_os

Dep keep

Dep Overrides

There are a number of fields you can add to a Dep object that will override it’s top-level value. This is most useful in the case where a project you want to use does not have a zigmod.yml manifest. You can then use overrides to define the values for them. The only top-level value you can not override is dependencies.