A Kafka-protocol compatible log server and a Zig client.
Note
Status: proof of concept
Zig — see minimum_zig_version in
build.zig.zon for the required version.
To install the required version automatically (local dev or non-GitHub CI):
./scripts/install-zig.sh # downloads the version from build.zig.zonThen add the printed path to your PATH. On GitHub Actions,
mlugg/setup-zig reads the same version from build.zig.zon.
zig buildProduces both binaries:
zig-out/bin/klog— the serverzig-out/bin/client— the example client
Use -Doptimize to pick a release mode (default is Debug):
zig build # Debug
zig build -Doptimize=ReleaseSafe # Optimized, runtime safety on
zig build -Doptimize=ReleaseFast # Optimized, runtime safety off
zig build -Doptimize=ReleaseSmall # Optimized for binary size-Dtarget=<triple> cross-compiles, e.g. -Dtarget=aarch64-linux.
Run zig build --help to see every option.