Skip to content

Conversation

@sonicfromnewyoke
Copy link
Collaborator

Problem

surfpool uses bloated solana-sdk and solana-program crates

Solution

replace them with more granular crates

cc @MicaiahReid

Copy link
Member

@MicaiahReid MicaiahReid left a comment

Choose a reason for hiding this comment

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

This is awesome, thanks @sonicfromnewyoke!! Excited to see the difference in bin size once this is built

Copy link
Member

@lgalabru lgalabru left a comment

Choose a reason for hiding this comment

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

Looking sharp, thanks @sonicfromnewyoke !

@lgalabru lgalabru merged commit c685826 into txtx:main Sep 25, 2025
3 checks passed
@sonicfromnewyoke
Copy link
Collaborator Author

This is awesome, thanks @sonicfromnewyoke!! Excited to see the difference in bin size once this is built

to actually win in compile time and binary size we have to apply the next 2 improvens:

  • use workspace dependencies in the members
  • disable default feature by default and include only needed, e.g. solana-pubkey = { version = "2.3.0", default-features = false } in the root and solana-pubkey = { workspace = true, features = ["serde"] } in the crate that needs serde feature of pubkey
    -some minor tweaks

all those things i'll implement shortly (EOW)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants