Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Failed to run rustwasmc build #34

Open
KeeganJin opened this issue Jun 28, 2023 · 1 comment
Open

Failed to run rustwasmc build #34

KeeganJin opened this issue Jun 28, 2023 · 1 comment

Comments

@KeeganJin
Copy link

I am trying to follow the tutorial from the secondstate, here is the link,
https://www.secondstate.io/articles/yomo-wasmedge-real-time-data-streams/
since rustwasmc only supports rustc version that is lower that 1.50, so I set the rustc version usingrustup default 1.50.0and run therustwasmc build `, and here is what I got.

$ rustwasmc build '--enable-ext'
Error: Error during execution of cargo metadata: error: failed to download bumpalo v3.13.0

Caused by:
unable to get packages from source

Caused by:
failed to parse manifest at /home/guoqing/.cargo/registry/src/github.com-1ecc6299db9ec823/bumpalo-3.13.0/Cargo.toml

Caused by:
failed to parse the edition key

Caused by:
this version of Cargo is older than the 2021 edition, and only supports 2015 and 2018 editions.
`

@dotgreg
Copy link

dotgreg commented Aug 20, 2023

Same here, not working both with docker and native

Description

Following the bug described in the sample demo github second-state/wasmedge-nodejs-starter#21
I cannot compile using rustwasmc build

root@785c98d79ee0:/app/rust# rustwasmc build
Error: Error during execution of `cargo metadata`:     Updating crates.io index
 Downloading crates ...
  Downloaded wasm-bindgen-shared v0.2.61
  Downloaded unicode-ident v1.0.11
  Downloaded quote v1.0.33
  Downloaded proc-macro2 v1.0.66
error: failed to parse manifest at `/root/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-1.0.66/Cargo.toml`

Caused by:
  failed to parse the `edition` key

Caused by:
  this version of Cargo is older than the `2021` edition, and only supports `2015` and `2018` editions.

root@785c98d79ee0:/app/rust# lsb_release -a; rustc --version; cargo --version; rustwasmc --version;
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.3 LTS
Release:        20.04
Codename:       focal
rustc 1.50.0 (cb75ad5db 2021-02-10)
cargo 1.50.0 (f04e7fab7 2021-02-04)
rustwasmc 0.1.29
root@785c98d79ee0:/app/rust# 

Expected

Compilation should work without error

Environment

Reproduced both on :

  • Docker wasmedge/appdev_x86_64:0.8.2
root@785c98d79ee0:/app/rust# lsb_release -a; rustc --version; cargo --version; rustwasmc --version;
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.3 LTS
Release:        20.04
Codename:       focal
rustc 1.50.0 (cb75ad5db 2021-02-10)
cargo 1.50.0 (f04e7fab7 2021-02-04)
rustwasmc 0.1.29
root@785c98d79ee0:/app/rust# 
  • Native Ubuntu 21.04 LTS x86_64

Steps to Reproduce

I followed the steps described in the tutorial : https://www.secondstate.io/articles/getting-started-with-rust-function/

# Get the code
$ git clone https://github.com/second-state/wasmedge-nodejs-starter
$ cd wasmedge-nodejs-starter

# Run Docker container
$ docker pull wasmedge/appdev_x86_64:0.8.2
$ docker run -p 3000:3000 --rm -it -v $(pwd):/app wasmedge/appdev_x86_64:0.8.2
(docker) $ cd /app

$ rustwasmc build

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants