Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

remove solana-program from spl-type-length-value #7428

Merged
merged 2 commits into from
Oct 31, 2024

Conversation

kevinheavey
Copy link
Contributor

@kevinheavey kevinheavey commented Oct 31, 2024

Updated some imports and replaced spl-program-error with inlining

Breaking changes:

  • replaced the re-export of solana_program with re-exports of the smaller crates
  • removed references to solana_program in SplBorshVariableLenPackBuilder

@mergify mergify bot added the community Community contribution label Oct 31, 2024
@@ -12,7 +12,7 @@ pub mod variable_len_pack;

// Export current sdk types for downstream users building with a different sdk
// version
pub use solana_program;
Copy link
Contributor Author

@kevinheavey kevinheavey Oct 31, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

breaking change

fn unpack_from_slice(src: &[u8]) -> Result<Self, spl_type_length_value::solana_program::program_error::ProgramError> {
solana_program::borsh1::try_from_slice_unchecked(src).map_err(Into::into)
fn unpack_from_slice(src: &[u8]) -> Result<Self, spl_type_length_value::solana_program_error::ProgramError> {
solana_borsh::v1::try_from_slice_unchecked(src).map_err(Into::into)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

breaking change

Copy link
Contributor

@joncinque joncinque left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks! Seems like CI error is spurious

@joncinque joncinque merged commit bd6b05b into solana-labs:master Oct 31, 2024
7 of 8 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
community Community contribution
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants