Skip to contents

RZig scaffolds packages backed by Zig and generates safe native bindings for plain Zig functions. Each step of the workflow is a function: find_zig locates a supported Zig compiler, use_rzig adds the build files and the framework sources to a package, scan_exports lists the exported Zig functions with their R arguments, render_bindings shows the generated manifest, R wrappers and NAMESPACE block, document writes them, rzig_status reports which steps are complete and which signatures the boundary rejects, and build_zig compiles and installs the package, reporting compiler errors by file and line. The scan and the generated bindings are pure R; a Zig compiler of the 0.16 or 0.17 release series is needed only to install a package created with the scaffold.

Author

Marek Deja