https://github.com/saecki/zig-grep
https://github.com/saecki/zig-grep
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/saecki/zig-grep
- Owner: saecki
- Created: 2023-10-11T17:35:40.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-12T15:48:46.000Z (almost 2 years ago)
- Last Synced: 2025-03-16T15:15:40.432Z (over 1 year ago)
- Language: Typst
- Size: 2.83 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# zig-grep
## Build & Run
- Install the [zig toolchain](https://ziglang.org/download)
- Install the [rust toolchain](https://rustup.rs/)
- Initialize the rust regex (`rure`) submodule `git submodule init rure`
- Build the `rure` crate `cargo build --release --manifest-path=rure/regex-capi/Cargo.toml`
- Build and run the program `zig build -Doptimize=ReleaseFast run -- -c "rure([a-zA-Z_]*)" src`
- The executable should now be at `zig-out/bin/zig-grep`
## Build Paper
- Install [typst](https://typst.app)
- Build the paper `typst compile paper/paper.typ`