libffi built with the zig build system
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-02 03:28:28 +01:00
.github/workflows set minimum zig version to 0.17.0 2026-11-02 03:27:02 +01:00
.gitattributes add .gitattributes 2026-11-02 03:28:28 +01:00
.gitignore First commit 2026-02-25 21:07:24 -03:00
build.zig fix for std.Target.cTypeByteSize now returns an optional 2026-08-30 21:55:03 -03:00
build.zig.zon set minimum zig version to 0.17.0 2026-11-02 03:27:02 +01:00
LICENSE First commit 2026-02-25 21:07:24 -03:00
README.md fix link github action script in readme 2026-11-02 03:27:25 +01:00

CI

libffi

This is libffi, 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/libffi.git

You can then import libffi in your build.zig with:

const libffi = b.dependency("libffi", .{
    .target = target,
    .optimize = optimize,
});
exe.root_module.linkLibrary(libffi.artifact("ffi"));