You can do make
or zig build-exe main.zig
to get the program to run
make
Now you are ready to use this executable as via #!pipe
inside radare2:
$ r2 /bin/ls
> #!pipe ./main
Hello, World
╭──╮ ╭─────────────╮
│ _│ │ │
│ O O < Hello World │
│ │╭ │ │
││ ││ ╰─────────────╯
│└─┘│
╰───╯