Porting custom build steps from zzdoc to zig 0.17

I’ve been looking at updating GitHub - rockorager/zzdoc: an scdoc compatible manpage compiler for build.zig · GitHub to Zig 0.17, but it depends on being able to make a very custom build step that executes a zig function, which seems to be gone after the Configurer/Maker split.

The question is, is this gone forever (probably because it was an impl-dependent hack all along), or is there some undocumented internal std API that can do roughly the same thing?

Turn it into a CLI script and use a run step.

This would have been the recommended way prior to 0.17 for at least a couple of versions, its just easier as the run step handles the integration with the build system.

You can still make a helper build API though to make it easier for dependent projects.

Your suggestion actually makes things mostly simpler, thank you! (chore(build)!: rewrite build API to use a helper binary via Step.Run by tranzystorekk · Pull Request #4 · rockorager/zzdoc · GitHub)

Not sure if that’s what you meant by “CLI script”, but I decided to extract the main manpage rendering to a small helper utility that is distributed as code, then compiled into an artifact that can then be passed to Step.Run