2023-03-23 16:09:41 +03:00
|
|
|
# Unicorn-engine-Zig
|
|
|
|
|
|
|
|
[Zig](https://ziglang.org/) bindings for the [Unicorn](http://www.unicorn-engine.org/) emulator with utility functions.
|
|
|
|
|
|
|
|
*Unicorn* is a lightweight multi-platform, multi-architecture CPU emulator framework
|
|
|
|
based on [QEMU](http://www.qemu.org/).
|
|
|
|
|
|
|
|
## How to use
|
|
|
|
|
2024-05-06 16:02:24 +03:00
|
|
|
Using the [Zig Build System](https://ziglang.org/learn/build-system/), you can include
|
|
|
|
the following into your local `build.zig.zon`
|
|
|
|
|
|
|
|
``` zig
|
|
|
|
.{
|
|
|
|
.dependencies = .{
|
|
|
|
.unicorn = .{
|
|
|
|
.url = "https://github.com/unicorn-engine/unicorn/archive/<ref SHA>.tar.gz",
|
|
|
|
.hash = "<hash>",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
Note that currently the only module exported publicly is `unicorn-sys`
|