I'm not sure if that's in componentize-py or upstream tooling, but I had the following usecase: I want to create a wasi:http/proxy component, so I used wit-deps to populate the wit directory for me, but componentize-py then errors because there is no package defined in wit, if I put a single-line wit file with package unused:unused;
there I can build my wasi-http world
I think this setup of a wit directory with only deps in it won't be uncommon since wit-deps is really convenient to download wit files and all their dependencies automatically
@Lann Martin has been working in this area lately.
https://github.com/bytecodealliance/wasm-tools/issues/1462
good to know :) I'll keep my unused:unsed and make a note that this is a temporary limitation
side note, the fact that you include the docstrings in the generated bindings is really cool, generating wasi-http bindings and then having full dcumentation in editors is a really impressive example to show off :)
Last updated: Nov 22 2024 at 16:03 UTC