Availability for capstone as Zig dependency
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Sora 3769b1ec04
Merge pull request #5 from techatrix/update-upstream
update upstream to 6.0.0-Alpha11
2026-10-02 01:00:37 +02:00
.github/workflows update to Zig 0.16.0 2026-04-17 00:50:13 +02:00
.gitattributes add .gitattributes 2024-07-26 22:43:42 +02:00
.gitignore update to Zig 0.16.0 2026-04-17 00:50:13 +02:00
build.zig fix support for Zig nightly 2026-10-01 22:12:42 +02:00
build.zig.zon update upstream to 6.0.0-Alpha11 2026-10-01 21:36:50 +02:00
LICENSE Initial Commit 2024-06-05 23:07:29 +02:00
README.md update README.md 2024-07-26 22:58:31 +02:00

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