zydis-zig is a small Zig package wrapper around vendored Zydis source plus
the x86_64 decoder bridge used by zighook.
It exists so projects can depend on Zydis-related build inputs without copying the full vendored C source into every consumer repository.
vendor/zydis/- vendored amalgamated Zydis source and licenses
c/x86_64/decoder_zydis.c- private decoder bridge used by
zighook
- private decoder bridge used by
src/root.zig- documentation-only Zig module
In a consumer build.zig:
const zydis_dep = b.dependency("zydis_zig", .{
.target = target,
.optimize = optimize,
});
module.addIncludePath(zydis_dep.path("vendor/zydis"));
module.addCSourceFile(.{
.file = zydis_dep.path("c/x86_64/decoder_zydis.c"),
.flags = &.{"-std=c99"},
});This package intentionally keeps the C interface private. Consumers are expected to compile the bridge C source rather than import Zydis declarations directly into public Zig APIs.