wasmerio / cargo-wasmer

A cargo sub-command for publishing Rust crates to the WebAssembly Package Manager.
Apache License 2.0
23 stars 2 forks source link

Rename to "cargo wasmer" #11

Open Michael-F-Bryan opened 1 year ago

Michael-F-Bryan commented 1 year ago

With https://github.com/wasmerio/wasmer-toml/pull/8 now being merged, we should rename the command to cargo wasmer and switch to the wasmer-toml crate.

For compatibility, it might be a good idea to leave the cargo-wapm binary around for a while and print a big warning so people know to use the cargo wasmer sub-command.

HuakunShen commented 2 months ago

How to use the cargo wasmer?

I followed this https://docs.wasmer.io/wasmer-pack/tutorial/01-hello-world#publishing-to-wapm

but cargo wapm fails to publish.

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