Skip to content

Conversation

@przydatek
Copy link

Add mo2wc, to remove the dependency on wasm-tools and wac binaries.
mo2wc transforms a Wasm module produced by moc to a Wasm component, integrating all the dependencies on imported components.

cd $ROOT_DIR || exit
echo --- Running mo2wc... &&
MO2WC=./src/rust/mo2wc/target/release/mo2wc
RUST_LOG=info $MO2WC compose --wac-file target/motoko.wac --wasm-module-file target/motoko.wasm --wit-file target/motoko.wit \
Copy link
Contributor

@rvanasa rvanasa Oct 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps it could make sense to include a more concise shorthand:

mo2wc compose target/motoko

...equivalent to the flags in the current implementation...

mo2wc compose --wac-file target/motoko.wac --wasm-module-file target/motoko.wasm --wit-file target/motoko.wit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants