📃 Documentation
Full Documentation can be found at https://muhammad-fiaz.github.io/args.zig/
📦 Installation
Option A — Automatic (Recommended)
Run this to install the dependency and automatically save the hash:
zig fetch --save https://github.com/muhammad-fiaz/args.zig/archive/refs/tags/0.0.8.tar.gzNote
After running, Zig updates your build.zig.zon with the correct hash automatically.
The entry will look like:
.dependencies = .{
.args = .{
.url = "https://github.com/muhammad-fiaz/args.zig/archive/refs/tags/0.0.8.tar.gz",
.hash = "args-0.0.8-8hzgbsBECgD3C0uPaFNcK9UFTZ210rWU4XIhopR8snoA",
},
},Option B — Manual
zig fetch --hash https://github.com/muhammad-fiaz/args.zig/archive/refs/tags/0.0.8.tar.gzCopy that hash into your build.zig.zon:
.hash = "args-0.0.8-8hzgbsBECgD3C0uPaFNcK9UFTZ210rWU4XIhopR8snoA"📊 Benchmarks
The following benchmark results were captured during the release workflow:
Note
Benchmarks are automatically generated by GitHub Actions using bench/benchmark.zig. Results may vary based on the CI runner environment.
No benchmark table found.
⬇️ Downloads (Prebuilt Library)
| Platform | Architecture | File |
|---|---|---|
| Windows | x86_64 | args-x86_64-windows.lib |
| Windows | x86 | args-x86-windows.lib |
| Linux | x86_64 | libargs-x86_64-linux.a |
| Linux | x86 | libargs-x86-linux.a |
| Linux | aarch64 (ARM64) | libargs-aarch64-linux.a |
| macOS | x86_64 (Intel) | libargs-x86_64-macos.a |
| macOS | aarch64 (Apple Silicon) | libargs-aarch64-macos.a |
| Bare Metal | x86_64 | libargs-x86_64-freestanding.a |
| Bare Metal | aarch64 | libargs-aarch64-freestanding.a |
| Bare Metal | RISC-V 64 | libargs-riscv64-freestanding.a |
| Bare Metal | ARM | libargs-arm-freestanding.a |
🛠️ Using Prebuilt Libraries
- Download the library for your platform.
- Place it in your project (e.g., in a
libs/folder). - Update your
build.zig:
// Assuming you placed the library in `libs/`
exe.addLibraryPath(b.path("libs"));
exe.linkSystemLibrary("args");