FTP for Zig 0.16: a client, a server, and the wire protocol as a layer you can use on its own, all built on std.Io.

Publish the API documentation

Zig writes it out of the doc comments, which in this project carry most of the explanation of why FTP is the shape it is -- why a multi-line reply can only be ended by looking for its own code again, why the address in a 227 reply is the one thing in it not to trust, what `TYPE A` actually converts. That is worth reading somewhere other than beside the source. <https://jeff.ocj.page/zig-ftp/>, rebuilt on every push to main, after the tests have passed so that it cannot document a tree that does not compile and only from main so that a branch cannot replace the site with a work in progress. The job needs no guest, so it is unaffected by the runners not doing virtual machines. `zig build docs-serve` is the local half, and it needs a server rather than a file because what Zig emits is a program: a WebAssembly viewer that fetches its sources out of a tar beside it, which a browser will not do from a `file://` page. `tools/docs_server.zig` is that server, taken from zig65 where the same problem was already solved -- one directory, one person, the loopback interface, a thread per connection because a browser opens several and leaves some of them silent. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AB4kdM2wE3ZWpdMoFSAF61


Author jcollie.dev
Co-author Claude Opus 5 (1M context) Date Commit Parent 2eb1f3a6
+257 -4
4 changed files
+257 -4
4 changed files