Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

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

Merged
joncinque merged 2 commits into
solana-labs:masterfrom
kevinheavey:tlv-rm-program
Oct 31, 2024
Merged

remove solana-program from spl-type-length-value#7428
joncinque merged 2 commits into
solana-labs:masterfrom
kevinheavey:tlv-rm-program

Conversation

@kevinheavey

@kevinheavey kevinheavey commented Oct 31, 2024

Copy link
Copy Markdown
Contributor

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

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

@kevinheavey kevinheavey Oct 31, 2024

Copy link
Copy Markdown
Contributor Author

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
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

breaking change

@joncinque joncinque left a comment

Copy link
Copy Markdown
Contributor

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
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