/capstone

Availability for capstone as Zig dependency

Primary LanguageZigMIT LicenseMIT

CI

capstone

This is capstone, packaged for Zig.

Installation

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"));