crust
crust copied to clipboard
The build failed because the dependent Cargo.toml of parity-db-0.2.2 had the wrong version literal
- 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)
For anyone else who is facing this issue.
- Make sure to use
Ubuntu 20.04
this is required forllvm 10
. - Install rust toolchain
nightly-2021-01-17
or create a filerust-toolchain
in Crust root directory and addnightly-2021-01-17
to it. - Install wasm
rustup target add wasm32-unknown-unknown --toolchain nightly-2021-01-17
Now Crust should build without any errors.