Hello!
Is there some tooling I missed to generate a cargo docs like page for wit files?
I'd like to document some interfaces and wonder how I'll do that for clients/implementers.
Any hints appreciated!
Something that works pretty well is to use wit-bindgen to generate bindings for specific languages, and then run those languages' documentation generators (eg. cargo doc) on the generated bindings.
There is also the wit-bindgen markdown command, which produces output like this: https://github.com/WebAssembly/wasi-clocks/blob/main/imports.md
(though I also personally prefer the generated rustdocs)
Last updated: Dec 06 2025 at 05:03 UTC