Skip to content

[pod] unable to compile with other newer dependencies #73

Closed
@therealdannzor

Description

@therealdannzor

When building spl-pod together with the other Solana dependencies as part of the 2.x crates and anchor 0.31.0, the compilation fails like so:

error[E0276]: impl has stricter requirements than trait
  --> /Users/dkf/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/spl-pod-0.5.1/src/error.rs:40:15
   |
40 |             + DecodeError<E>
   |               ^^^^^^^^^^^^^^ impl has extra requirement `E: DecodeError<E>`

   Compiling oid-registry v0.6.1
   Compiling rustls-platform-verifier v0.5.1
   Compiling num-rational v0.2.4
   Compiling rand v0.9.0
For more information about this error, try `rustc --explain E0276`.

The core reason seem to be in the error message, that there are versions of spl-pod still being used that does not have this strict requirement.

The commit for the change was more than three months ago.

Any thoughts on a workaround for this? I can only think of relaxing the trait requirement in order to get past this as of now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions