- Add
?r
dependency tobuild.zig.zon
.
zig fetch --save git+https://github.com/?u/?r#<git_tag_or_commit_hash>
- Use
?r
dependency inbuild.zig
.
const ?r_dep = b.dependency("?r", .{
.target = target,
.optimize = optimize,
});
const ?r_mod = ?r_dep.module("?r");
<compile>.root_module.addImport("?r", ?r_mod);