Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 641 Bytes

README.md

File metadata and controls

16 lines (13 loc) · 641 Bytes

zigiffy

Rust FFI with Zig

This is a project grown out of curiosity in Rust and Zig. The idea is to make Rust interact with Zig code. This works, because both languages have the ability to make use of C FFI.

The name zigiffy is a combination of Zig and FFI.
The counterpart, rustiffy also exists: rustiffy

Build

This projects works in Windows under the WSL. In order for build.rs to call the zig compiler, one needs to set ZIG_COMPILER as an environment variable to the full path of where your zig compiler is located:

export ZIG_COMPILER=~/zig-linux-x86_64-0.6.0/zig