weskoerber/inez
Inez - A fast INI parser
Fetch inez using Zig's package manager
zig fetch --save git+https://github.com/weskoerber/inez#main
Add inez to your artifacts in build.zig
const std = @import("std");
pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{});
const inez = b.dependency("inez", .{
.target = target,
.optimize = optimize,
}).module("inez");
const my_exe = b.addExecutable(.{
.name = "my_exe",
.root_source_file = b.path("src/main.zig"),
.target = target,
.optimize = optimize,
});
my_exe.root_module.addImport(inez);
}
To use inez, there are 4 main steps:
See the examples/
directory for some examples. You can run them by using the
example
step (where name
is the name of the example):
zig build example -Dexample=<name>