Add serde support #1714
master.yml
on: pull_request
Miscellaneous checks
2m 48s
Anchor Test
20m 18s
Rust tests
5m 39s
Annotations
7 errors and 2 warnings
the trait bound `types::PubKey: core::convert::From<&[u8]>` is not satisfied:
common/cf-solana/src/types/serde_impl.rs#L60
error[E0277]: the trait bound `types::PubKey: core::convert::From<&[u8]>` is not satisfied
--> common/cf-solana/src/types/serde_impl.rs:60:9
|
60 | Self::Value::try_from(bytes)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `core::convert::From<&[u8]>` is not implemented for `types::PubKey`, which is required by `types::PubKey: core::convert::TryFrom<&[u8]>`
|
= help: the following other types implement trait `core::convert::From<T>`:
<types::PubKey as core::convert::From<solana_program::pubkey::Pubkey>>
<types::PubKey as core::convert::From<solana_program::pubkey::Pubkey>>
<types::PubKey as core::convert::From<[u8; 32]>>
<&'a types::PubKey as core::convert::From<&'a [u8; 32]>>
<&'a mut types::PubKey as core::convert::From<&'a mut [u8; 32]>>
<&'a types::PubKey as core::convert::From<&'a solana_program::pubkey::Pubkey>>
<&'a mut types::PubKey as core::convert::From<&'a mut solana_program::pubkey::Pubkey>>
<&'a types::PubKey as core::convert::From<&'a solana_program::pubkey::Pubkey>>
<&'a mut types::PubKey as core::convert::From<&'a mut solana_program::pubkey::Pubkey>>
= note: required for `&[u8]` to implement `core::convert::Into<types::PubKey>`
= note: required for `types::PubKey` to implement `core::convert::TryFrom<&[u8]>`
|
the trait bound `types::PubKey: core::convert::From<&[u8]>` is not satisfied:
common/cf-solana/src/types/serde_impl.rs#L60
error[E0277]: the trait bound `types::PubKey: core::convert::From<&[u8]>` is not satisfied
--> common/cf-solana/src/types/serde_impl.rs:60:9
|
60 | Self::Value::try_from(bytes)
| ^^^^^^^^^^^ the trait `core::convert::From<&[u8]>` is not implemented for `types::PubKey`, which is required by `types::PubKey: core::convert::TryFrom<_>`
|
= help: the following other types implement trait `core::convert::From<T>`:
<types::PubKey as core::convert::From<solana_program::pubkey::Pubkey>>
<types::PubKey as core::convert::From<solana_program::pubkey::Pubkey>>
<types::PubKey as core::convert::From<[u8; 32]>>
<&'a types::PubKey as core::convert::From<&'a [u8; 32]>>
<&'a mut types::PubKey as core::convert::From<&'a mut [u8; 32]>>
<&'a types::PubKey as core::convert::From<&'a solana_program::pubkey::Pubkey>>
<&'a mut types::PubKey as core::convert::From<&'a mut solana_program::pubkey::Pubkey>>
<&'a types::PubKey as core::convert::From<&'a solana_program::pubkey::Pubkey>>
<&'a mut types::PubKey as core::convert::From<&'a mut solana_program::pubkey::Pubkey>>
= note: required for `&[u8]` to implement `core::convert::Into<types::PubKey>`
= note: required for `types::PubKey` to implement `core::convert::TryFrom<&[u8]>`
|
no function or associated item named `from_proto_bytes` found for struct `proof::MerkleProof` in the current scope:
common/cf-solana/src/proof/serde_impl.rs#L53
error[E0599]: no function or associated item named `from_proto_bytes` found for struct `proof::MerkleProof` in the current scope
--> common/cf-solana/src/proof/serde_impl.rs:53:30
|
53 | MerkleProof::from_proto_bytes(&bytes).ok_or_else(|| {
| ^^^^^^^^^^^^^^^^ function or associated item not found in `MerkleProof`
|
::: common/cf-solana/src/proof.rs:30:1
|
30 | pub struct MerkleProof {
| ---------------------- function or associated item `from_proto_bytes` not found for this struct
|
no function or associated item named `from_proto_bytes` found for struct `proof::MerkleProof` in the current scope:
common/cf-solana/src/proof/serde_impl.rs#L37
error[E0599]: no function or associated item named `from_proto_bytes` found for struct `proof::MerkleProof` in the current scope
--> common/cf-solana/src/proof/serde_impl.rs:37:30
|
37 | MerkleProof::from_proto_bytes(value).ok_or_else(|| {
| ^^^^^^^^^^^^^^^^ function or associated item not found in `MerkleProof`
|
::: common/cf-solana/src/proof.rs:30:1
|
30 | pub struct MerkleProof {
| ---------------------- function or associated item `from_proto_bytes` not found for this struct
|
no method named `to_proto_bytes` found for reference `&proof::MerkleProof` in the current scope:
common/cf-solana/src/proof/serde_impl.rs#L15
error[E0599]: no method named `to_proto_bytes` found for reference `&proof::MerkleProof` in the current scope
--> common/cf-solana/src/proof/serde_impl.rs:15:22
|
15 | Base64(&self.to_proto_bytes()).serialize(ser)
| ^^^^^^^^^^^^^^ method not found in `&MerkleProof`
|
Miscellaneous checks
Clippy had exited with the 101 exit code
|
Rust tests
Process completed with exit code 101.
|
Miscellaneous checks
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Miscellaneous checks
The following actions use a deprecated Node.js version and will be forced to run on node20: actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|