An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

[![CI](https://github.com/allyourcodebase/capstone/actions/workflows/ci.yaml/badge.svg)](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"));
```