crust icon indicating copy to clipboard operation
crust copied to clipboard

The build failed because the dependent Cargo.toml of parity-db-0.2.2 had the wrong version literal

Open 0xbillw opened this issue 2 years ago • 1 comments

  • Build command:
cargo build
  • Build error info:
Execution failed (exit code 101).
/Users/xxx/.cargo/bin/cargo metadata --verbose --format-version 1 --all-features
stdout :  Downloading crates ...
error: failed to download `parity-db v0.2.2`

Caused by:
  unable to get packages from source

Caused by:
  failed to parse manifest at `/Users/wangyi/.cargo/registry/src/github.com-1ecc6299db9ec823/parity-db-0.2.2/Cargo.toml`

Caused by:
  failed to parse the version requirement `0.11 ` for dependency `parking_lot`

Caused by:
  expected comma after minor version number, found '\t'

stderr :  
  • code git revision: 7b62be14779b27ce77ffca2ce63326743e1f807a

  • OS: macOS Big Sur 11.6.6

  • rustup show

Default host: x86_64-apple-darwin
rustup home:  /Users/xxx/.rustup

installed toolchains
--------------------

stable-x86_64-apple-darwin
nightly-x86_64-apple-darwin (default)

installed targets for active toolchain
--------------------------------------

wasm32-unknown-unknown
x86_64-apple-darwin

active toolchain
----------------

nightly-x86_64-apple-darwin (default)
rustc 1.62.0-nightly (88860d547 2022-05-09)

0xbillw avatar Jun 13 '22 14:06 0xbillw

For anyone else who is facing this issue.

  1. Make sure to use Ubuntu 20.04 this is required for llvm 10.
  2. Install rust toolchain nightly-2021-01-17 or create a file rust-toolchain in Crust root directory and add nightly-2021-01-17 to it.
  3. Install wasm rustup target add wasm32-unknown-unknown --toolchain nightly-2021-01-17

Now Crust should build without any errors.

tehsunnliu avatar Jun 15 '23 06:06 tehsunnliu