wasmerio / wasmer-pack

MIT License
49 stars 5 forks source link

[Bug]: Hello World tutorial fails to publish #119

Open sanderpick opened 1 year ago

sanderpick commented 1 year ago

What happened?

I have followed the basic Hello, World! tutorial. The cargo wapm --dry-run step fails with:

Error: Unable to publish "tutorial-01"

Caused by:
    0: Unable to deserialize the [metadata] table
    1: expected one of "wit-bindgen" or "wai-version" to be provided, but not both

My Cargo.toml file:

[package]
name = "tutorial-01"
version = "0.1.0"
edition = "2021"

[lib]
crate-type = ["cdylib", "rlib"]

[dependencies]
wai-bindgen-rust = "0.2.2"

[package.metadata.wapm]
namespace = "sanderpick"
abi = "none"
bindings = { wai-bindgen = "0.1.0", exports = "hello-world.wai" }

Not sure if this is the correct repo to report the issue. I'd guess this is an issue with the tutorial, which links to this repo, not wapm-cli.

Wasmer Pack Version

No response

How were you using wasmer-pack?

WAPM