My rust version is :- enter image description here when i was run cargo build in this dirextory: https://github.com/VegeBun-csj/Proof-Chain/tree/main/pallets/xclient

i got an error: enter image description here

2 Answers 2


Check your std feature declaration in your pallet. There you need to ensure that for every dependency that you imported with default-features = false you have added to the std feature declaration with crate/std.

  • thank you sir, i have solve it.
    – bun
    Mar 24, 2022 at 7:02

I encountered this recently, and the underlying issue was that I had multiple versions of the Substrate git repo being referenced in different Cargo.toml files.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.