You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Including the WIT binary form in the Miden package
Assuming the WIT binary form is encoded in the custom section of the Wasm CM file, we need to pass it through the pipeline up to the assembly stage to be included in the Miden package.
I see two options:
Pass the WIT binary form as a metadata in the Session;
Pass the WIT binary form as an hir::Component/masm::Library's attribute;
I lean towards the first option because I don't see a need for the WIT info anywhere else in the pipeline, and we already have the high-level type info from it.
Using the packaged binary WIT in the dependent project
In a dependent project (note script, etc.) we need to build the WIT textual form from the WIT binary found in the Miden package, write WIT file to disk and feed the path to the cargo-component code the Wasm component generation.
The text was updated successfully, but these errors were encountered:
Including the WIT binary form in the Miden package
Assuming the WIT binary form is encoded in the custom section of the Wasm CM file, we need to pass it through the pipeline up to the assembly stage to be included in the Miden package.
I see two options:
Session
;hir::Component/masm::Library
's attribute;I lean towards the first option because I don't see a need for the WIT info anywhere else in the pipeline, and we already have the high-level type info from it.
Using the packaged binary WIT in the dependent project
In a dependent project (note script, etc.) we need to build the WIT textual form from the WIT binary found in the Miden package, write WIT file to disk and feed the path to the
cargo-component
code the Wasm component generation.The text was updated successfully, but these errors were encountered: