This is capstone, packaged for Zig.
First, update your build.zig.zon
:
# Initialize a `zig build` project if you haven't already
zig init
zig fetch --save git+https://github.com/allyourcodebase/capstone.git#5.0.1
You can then import capstone
in your build.zig
with:
const capstone_dependency = b.dependency("capstone", .{
.target = target,
.optimize = optimize,
});
your_exe.linkLibrary(capstone_dependency.artifact("capstone"));