You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Caused by:
Error during execution of cargo metadata: Updating https://mirrors.tuna.tsinghua.edu.cn/git/crates.io-index.git index
Updating git repository https://gitee.com/WeBankBlockchain/liquid
Downloading crates ...
error: failed to download once_cell v1.15.0
Caused by:
unable to get packages from source
Caused by:
failed to download replaced source registry `https://github.com/rust-lang/crates.io-index`
Caused by:
failed to parse manifest at `/root/.cargo/registry/src/mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd/once_cell-1.15.0/Cargo.toml`
Caused by:
feature `edition2021` is required
consider adding `cargo-features = ["edition2021"]` to the manifest
Caused by:
Error during execution of cargo metadata: Updating git://mirrors.ustc.edu.cn/crates.io-index index
Updating git repository https://gitee.com/WeBankBlockchain/liquid
Downloading crates ...
error: failed to download bumpalo v3.11.1
Caused by:
unable to get packages from source
Caused by:
failed to download replaced source registry `https://github.com/rust-lang/crates.io-index`
Caused by:
failed to parse manifest at `/root/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/bumpalo-3.11.1/Cargo.toml`
Caused by:
feature `edition2021` is required
consider adding `cargo-features = ["edition2021"]` to the manifest
使用的rust配置:
[source.crates-io]
registry = "https://github.com/rust-lang/crates.io-index"
replace-with = 'ustc' # 如:tuna、sjtu、ustc,或者 rustcc
[source.ustc]
registry = "git://mirrors.ustc.edu.cn/crates.io-index"
[source.sjtu]
registry = "https://mirrors.sjtug.sjtu.edu.cn/git/crates.io-index"
[source.tuna]
registry = "https://mirrors.tuna.tsinghua.edu.cn/git/crates.io-index.git"
[source.rustcc]
registry = "https://code.aliyun.com/rustcc/crates.io-index.git"
1、执行 cargo test 时,出现以下错误:
error[E0635]: unknown feature
proc_macro_span_shrink
--> /root/.cargo/registry/src/mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd/proc-macro2-1.0.47/src/lib.rs:92:30
|
92 | feature(proc_macro_span, proc_macro_span_shrink)
| ^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error
For more information about this error, try
rustc --explain E0635
.error: could not compile
proc-macro2
To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed
2、使用清华大学的源
[source.tuna]
registry = "https://mirrors.tuna.tsinghua.edu.cn/git/crates.io-index.git"
执行cargo liquid build时,出现以下错误:
[1/4] 🔍 Collecting crate metadata
ERROR: Error invoking
cargo metadata
Caused by:
Error during execution of
cargo metadata
: Updatinghttps://mirrors.tuna.tsinghua.edu.cn/git/crates.io-index.git
indexUpdating git repository
https://gitee.com/WeBankBlockchain/liquid
Downloading crates ...
error: failed to download
once_cell v1.15.0
3、使用中国科学技术大学的源
[source.ustc]
registry = "git://mirrors.ustc.edu.cn/crates.io-index"
执行cargo liquid build时,出现以下错误:
[1/4] 🔍 Collecting crate metadata
ERROR: Error invoking
cargo metadata
Caused by:
Error during execution of
cargo metadata
: Updatinggit://mirrors.ustc.edu.cn/crates.io-index
indexUpdating git repository
https://gitee.com/WeBankBlockchain/liquid
Downloading crates ...
error: failed to download
bumpalo v3.11.1
个人建议,这个编译liquid合约的环境很难配置且容易出错,是否可以提供个docker组件,用户只需要将liquid合约上传到docker容器中,在容器里编译、构建,然后将构建好的Wasm 格式字节码及 ABI拷贝出来使用。
The text was updated successfully, but these errors were encountered: