简体   繁体   English

Polkadot 如何在具有特定 Substrate 版本的平行链项目中使用/修改 Frontier - Rust 依赖管理

[英]Polkadot how to use/modify Frontier in a parachain project with certain Substrate version - Rust Dependency management

我在 Polkadot Rust 中遇到了依赖地狱,那是当我尝试使用 Frontier 构建平行链( https://github.com/substrate-developer-hub/substrate-parachain-template )时,我试图确保Parachain 和 Frontier 都基于相同版本的基板 ( https://github.com/paritytech/substrate ),但 Frontier 存储库没有基于基板 polkadot-v0.9.17 的版本。

checkout a branch polkadot-v0.9.17 in Frontier在 Frontier 中签出一个分支 polkadot-v0.9.17

in above Frontier branch, replace all substrate dependencies with branch = "polkadot-v0.9.17"在上面的 Frontier 分支中,将所有基板依赖项替换为 branch = "polkadot-v0.9.17"

then delete the template folder or if you want to fix the code in it然后删除模板文件夹,或者如果您想修复其中的代码

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何从 Substrate 端的 Polkadot 地址生成公钥 - How to generate the public key from Polkadot Address from Substrate Side 如何使用 polkadot.js 解码基板上的事件帮助? - How to decode events help on substrate using polkadot.js? 如何使用其他版本的Rust编译器建立依赖关系? - How to build a dependency with a different version of the Rust compiler? 如何使用 PalletB 从 PalletA 保存记录,而 PalletA 不知道基板和 rust 保存的内部结构 - How to use PalletB to save record from PalletA without PalletA knowing anything about internals of the saving in substrate and rust 如何在 Substrate 中从 Polkadot.js 实现 blake2AsHex 功能? - How to achieve blake2AsHex functionality from Polkadot.js in Substrate? 在 Rust 中开发基板运行时是否需要使用宏? - Is it necessary to use macros while developing substrate runtime in rust? 如何在 CXX Rust 中链接 Cmake 项目并在 Rust 上使用? - How to link Cmake project in CXX Rust and use on Rust? 如何使用 Rust 在 Substrate 中编码帐户 ID 的十六进制字符串表示? - How to encode the hex string representation of an account id in Substrate using Rust? 在 IDE 中播放基板代码时如何排除 Rust 标准环境 - How to exclude the Rust std env when play substrate code in IDE 在项目中配置Rust的默认版本 - Configure default version of Rust in a project
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM