~ knotless Search/
↑↓ move↵ open⇧↵ all results

zat.dev/zlay

atproto relay in zig · mirror of https://tangled.org/zat.dev/zlay

0
0
28 lines · 1.2 KB Raw History

zlay

AT Protocol relay. Read architecture before changing threading, persistence or the I/O backend. Use the compiler pin in build.zig.zon.

checks

zig fmt --check build.zig build.zig.zon src scripts
zig build test
zig build -Dbackend=zio

The default tests use the threaded backend and do not analyze zio-only code, so the production-backend build is required. Avoid formatting . because it also walks fetched packages. Under zio, fibers must yield: no busy loops or sub-ms sleep spins.

production

Use ReleaseSafe, -Dbackend=zio and -Dtarget=x86_64-linux-gnu. ReleaseFast remains prohibited because of the recorded double-free. Changing these supported settings requires fresh qualification; old allocator measurements are in the musl investigation.

Deployment configuration belongs to relay. From that repository, just zlay publish-remote ReleaseSafe <ref> zio sets its own KUBECONFIG. Follow deployment for rollout, rollback and diagnostics; gotchas covers dependency traps.