Is there a recommended way to share a wit file between different projects? e.g. between the host system (rust), and the guest system?
Not yet. This has been a pain for all of us but took a back seat to wasi 0.2 implementation work in the recent past. I think there will be some improvements in the relatively near future.
I suppose I should make the simplest recommendation in case it isn't obvious: wit tooling can generally take a path to the directory holding the wit files; if your project structure allows for that kind of sharing then I recommend it :smile:
Thanks. I hope there's a nicer solution in the future.
My use case requires that it be shared between users and an arbitrary number of guest systems.
The best solution I could come up with so far is to:
An alternative is to fetch the file at compile time, but depending on network access to github at compile-time seems like a bad idea.
Last updated: Dec 23 2024 at 12:05 UTC