zig-cffi-python
zig-cffi-python copied to clipboard
zig cffi python examples
Demonstrates passing data back and forth between Zig and Python via cffi.
Each example is standalone and consist a single .zig and .py file.
How to run examples
- Build the example as a library
zig build-lib -dynamic [example].zig
- Run the python script
python [example].py
Requirements
- Zig 11+
- Python 3+