Stream: SIG-Guest-Languages

Topic: componentize-py: handling of wit directory with only deps


view this post on Zulip Ramon Klass (Mar 19 2024 at 21:45):

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

view this post on Zulip Joel Dice (Mar 19 2024 at 21:49):

@Lann Martin has been working in this area lately.

view this post on Zulip Joel Dice (Mar 19 2024 at 21:49):

https://github.com/bytecodealliance/wasm-tools/issues/1462

As an incremental step along the lines of #1461, it would be nice to allow a wit/ directory to not contain a root/default package. The scope of this issue would keep the deps/*/*.wit structure in p...

view this post on Zulip Ramon Klass (Mar 19 2024 at 21:51):

good to know :) I'll keep my unused:unsed and make a note that this is a temporary limitation

view this post on Zulip Ramon Klass (Mar 19 2024 at 21:53):

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: Dec 23 2024 at 12:05 UTC