Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 467 Bytes

README.md

File metadata and controls

24 lines (15 loc) · 467 Bytes

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

  1. Build the example as a library
zig build-lib -dynamic [example].zig
  1. Run the python script
python [example].py

Requirements

  • Zig 11+
  • Python 3+