1

When I try to install spl-token-sli using command cargo install spl-token-cli.
I get this error:

error[E0405]: cannot find trait `Signature` in crate `signature`
   --> /home/marek/.cargo/registry/src/github.com-1ecc6299db9ec823/ed25519-1.5.2/src/lib.rs:335:17
    |
335 | impl signature::Signature for Signature {
    |                 ^^^^^^^^^ not found in `signature`

I'm using Linux Mint 21 Cinnamon. I have tried to delete .cargo folder and reinstall Rust, but same error.

2
  • 1
    try impl Signature for Signature instead of impl signature::Signature for Signature. Does it work? Jan 15, 2023 at 20:57
  • @AbdullahQureshi Yes, that did the trick! Jan 15, 2023 at 21:04

1 Answer 1

2

For future reference to others facing the same problem:

try impl Signature for Signature instead of impl signature::Signature for Signature

2
  • Can you elaborate why this change is needed for end-user who just wants to install the spl-token-cli? Is it bug? Or some incompatibility? Jan 16, 2023 at 9:53
  • since the import trait already exists in the target modules. For further understating you can read a similar error explanation at github.com/rust-lang/rust/issues/55026. Jan 17, 2023 at 12:18

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.