Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 862 Bytes

File metadata and controls

30 lines (21 loc) · 862 Bytes

Account Data

Compiler

First, you need a zig compiler built with Solana's LLVM fork. See the README of solana-zig-bootstrap on how to build it, or you can download it from the GitHub releases page.

There is also a helper script which will install it to the current directory:

./install-solana-zig.sh

Dependencies

zig fetch --save https://github.com/joncinque/solana-program-library-zig/archive/refs/tags/v0.15.1.tar.gz
zig fetch --save https://github.com/joncinque/solana-program-sdk-zig/archive/refs/tags/v0.16.2.tar.gz
zig fetch --save https://github.com/joncinque/base58-zig/archive/refs/tags/v0.14.0.tar.gz

Build

You can build the program by running:

../solana-zig/zig build