Stream: wasmtime

Topic: how do component bindgen! location dependent package?


view this post on Zulip Sehz (Mar 21 2024 at 20:46):

I have package1 (from p1.wit) that use interface from package2 in other WIT file ( p2.wit). Where do I put p2.wit relation p1.wit?

view this post on Zulip Lann Martin (Mar 21 2024 at 21:13):

Currently it needs to be in e.g. wit/deps/p2/p2.wit (if your p1 is wit/p1.wit)

view this post on Zulip Sehz (Mar 21 2024 at 21:14):

Great. thanks

view this post on Zulip Lann Martin (Mar 21 2024 at 21:15):

both of the p2s in that path can be anything (they don't have to match the package name, but usually do); each directory under deps/ will be parsed as a package


Last updated: Oct 23 2024 at 20:03 UTC