1

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

3

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.

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

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 that you have read and understand our privacy policy and code of conduct.

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