https://github.com/allyourcodebase/capstone
Availability for capstone as Zig dependency
https://github.com/allyourcodebase/capstone
Last synced: 7 months ago
JSON representation
Availability for capstone as Zig dependency
- Host: GitHub
- URL: https://github.com/allyourcodebase/capstone
- Owner: allyourcodebase
- License: mit
- Created: 2024-06-05T19:37:15.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-17T16:49:26.000Z (12 months ago)
- Last Synced: 2025-04-23T08:55:51.959Z (10 months ago)
- Language: Zig
- Size: 15.6 KB
- Stars: 9
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/allyourcodebase/capstone/actions)
# capstone
This is [capstone](https://github.com/capstone-engine/capstone), packaged for [Zig](https://ziglang.org/).
## 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:
```zig
const capstone_dependency = b.dependency("capstone", .{
.target = target,
.optimize = optimize,
});
your_exe.linkLibrary(capstone_dependency.artifact("capstone"));
```