This project recreates the mini-grep I/O project from the Rust Book in Zig.
$ git clone https://github.com/tristanisham/minigrep-zig; cd minigrep-zig
Need to install Zig? Try ZVM.
$ zig build run -- "query" ./path/to/file
You can also find your compiled binary in zig-out
.
zig build -Doptimize=ReleaseFast