I am working on a Substrate project and want to use the orml-traits and orml-tokens crates in my custom pallet. I have added these crates to my Cargo.toml:
orml-tokens = { git = "https://github.com/open-web3-stack/open-runtime-module-library.git", default-features = false, version = "0.4.0" }
orml-traits = { git = "https://github.com/open-web3-stack/open-runtime-module-library.git", default-features = false, version = "0.4.0" }
My project uses sp-io
version 7.0.0, but I'm facing a dependency conflict:
error[E0152]: duplicate lang item in crate `sp_io` (which `sp_application_crypto` depends on): `panic_impl`.
|
= note: the lang item is first defined in crate `sp_io` (which `frame_support` depends on)
= note: first definition in `sp_io` loaded from /home/kianoush/projects/music-chain/target/debug/wbuild/kitchensink-runtime/target/wasm32-unknown-unknown/release/deps/libsp_io-3f01c569c1bdc73f.rmeta
= note: second definition in `sp_io` loaded from /home/kianoush/projects/music-chain/target/debug/wbuild/kitchensink-runtime/target/wasm32-unknown-unknown/release/deps/libsp_io-a6d4512a0b6fd246.rmeta
For more information about this error, try `rustc --explain E0152`.
warning: `pallet-dex` (lib) generated 2 warnings
error: could not compile `pallet-dex` due to previous error; 2 warnings emitted
warning: build failed, waiting for other jobs to finish...
warning: build failed, waiting for other jobs to finish...
How can I make orml-traits and orml-tokens compatible with sp-io version 7.0.0 in my Substrate project?
0.4.1-dev
.