-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Currently Gravity takes a Wasm file containing embedded WIT as input, and uses:
- the WIT to generate types & bindings for imports and exports
- the Wasm (embedded or inlined) to generate code to create a runtime & instantiated module to use those types and bindings
I have a different use case, where I want to just generate the bindings, and have the user provide their own Wasm bytes for compilation & instantiation later. I think this should be fairly easy; we could even still generate a factory that accepts arbitrary bytes rather than embedding them directly.
This would allow creation of reusable Go packages which represent a WIT interface without being tied to a specific implementation (the Wasm itself).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels