$ find . -type f
./root.wit
./deps/dep.wit
$ wasm-tools component wit .
package pkg:root;
/// Root comment
world w {
import pkg:dep/iface;
}
package pkg:dep {
interface iface {
/// Dep comment
f: func();
}
}
$ wasm-tools component wit . --wasm | wasm-tools component wit
package pkg:root;
/// Root comment
world w {
import pkg:dep/iface;
}
package pkg:dep {
interface iface {
f: func();
}
}
Note /// Dep comment present in the WIT is missing when round-tripped with --wasm.
Note
/// Dep commentpresent in the WIT is missing when round-tripped with--wasm.