One more concern.
You probably don’t want pull code on Pi, and build your binary directly on there, this is not a high efficiency way.
Check Use zig cc as a alternative linker (draft version) for how to build an ARM static binary on local host, then copy it into Pi.
I use this process for my lucky web project, it work quite well!