Publishing Rust crates with the wapm command no longer works because you run into validation errors around bulk memory operations.
$ cargo wapm --dry-run
2023-07-19T02:43:40.113941Z INFO publish: cargo_wapm::publish: Getting ready to publish dry_run=true pkg="wapm-to-webc"
Error: WASM file "/Users/work/Documents/wasmer/pirita/target/wapm/wapm2pirita.wasm" detected as invalid because bulk memory support is not enabled (at offset 4615795)
╭─────────────────────────────────────────────────────────────────────────────╮
│ │
│ There's a new version of wasmer and wapm! 4.0.0-beta.1 → v3.3.0 │
│ Changelog: https://github.com/wasmerio/wasmer/releases/tag/v3.3.0 │
│ Update with wasmer self-update │
│ │
╰─────────────────────────────────────────────────────────────────────────────╯
Error: Unable to publish "wapm-to-webc"
Caused by:
The wapm CLI exited unsuccessfully with exit code 255
The wapm command has also been removed from the Wasmer toolchain and its functionality was merged into the main wasmer CLI. As part of this migration, we also renamed wapm.toml to wasmer.toml.
To avoid more breaking changes in the future, we should publish to the Wasmer registry directly. This will involve:
[ ] Generate a wasmer.toml instead of wapm.toml
[ ] Publish to the registry (either via wasmer_registry::publish or by querying the GraphQL API directly)
Publishing Rust crates with the
wapm
command no longer works because you run into validation errors around bulk memory operations.The
wapm
command has also been removed from the Wasmer toolchain and its functionality was merged into the mainwasmer
CLI. As part of this migration, we also renamedwapm.toml
towasmer.toml
.To avoid more breaking changes in the future, we should publish to the Wasmer registry directly. This will involve:
wasmer.toml
instead ofwapm.toml
wasmer_registry::publish
or by querying the GraphQL API directly)