Skip to content

Latest commit

 

History

History
83 lines (60 loc) · 2.12 KB

README.md

File metadata and controls

83 lines (60 loc) · 2.12 KB

Minigrep (in Zig)

This project recreates the mini-grep I/O project from the Rust Book in Zig.

Install

$ git clone https://github.com/tristanisham/minigrep-zig; cd minigrep-zig

Need to install Zig? Try ZVM.

Run the program

$ zig build run -- "query" ./path/to/file

You can also find your compiled binary in zig-out.

Build for Release

zig build -Doptimize=ReleaseFast