问题描述
问题
我是 Substrate 的新手,正在学习将托盘添加到您的运行时。起初,运行命令 cargo check -p node-template-runtime
给了我错误
error: Failed to parse manifest at `/Users/bashar/work/substrate/start/substrate-node-template/pallets/template/Cargo.toml`
Caused by:
feature `rename-dependency` is required
consider adding `cargo-features = ["rename-dependency"]` to the manifest
error: no matching version `^2.0.0` found for package `codec`
location searched: registry `https://github.com/rust-lang/crates.io-index`
versions found: 0.0.0
required by package `frame-benchmarking-cli v3.0.0`
... which is depended on by `node-template v3.0.0 (/Users/bashar/work/substrate/start/substrate-node-template/node)`
我尝试将编解码器版本修改为 2.0.1
,但没有成功。我的设置
rustup 1.23.1
rustc 1.50.0
cargo 1.30.0
知道我做错了什么吗?
更新
我回到了 Create Your First Substrate Chain,它是本教程的基础,它是 Pallet 教程的基础,从头开始。而这一次,在为第一个教程克隆存储库后,cargo build --release
失败并出现相同的错误 feature
rename-dependency is required
。
在我转到第二个教程之前,这第一次构建得很好。这让我觉得最近的 Mac 更新可能毁了一些东西?我什至尝试卸载 Rust 并重新安装它,然后安装一个新模板。一样的
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)