mirror of
https://github.com/allyourcodebase/capstone.git
synced 2026-11-17 01:11:17 +00:00
Availability for capstone as Zig dependency
- Zig 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| .github/workflows | ||
| .gitattributes | ||
| .gitignore | ||
| build.zig | ||
| build.zig.zon | ||
| LICENSE | ||
| README.md | ||
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"));