Skip to content

replace solana-client with its constituent parts where possible#2086

Merged
CriesofCarrots merged 1 commit intoanza-xyz:masterfrom
kevinheavey:less-solana-client
Jul 16, 2024
Merged

replace solana-client with its constituent parts where possible#2086
CriesofCarrots merged 1 commit intoanza-xyz:masterfrom
kevinheavey:less-solana-client

Conversation

@kevinheavey
Copy link
Copy Markdown

@kevinheavey kevinheavey commented Jul 10, 2024

Problem

solana-client agglomerates multiple crates, so anywhere we can use the underlying crate instead of solana-client is a win for compile times, or at least gets us closer to removing solana-client from a particular crate

Summary of Changes

Replaces solana-client with underlying crates where possible. I was hoping there'd be more but this is something

Copy link
Copy Markdown

@CriesofCarrots CriesofCarrots left a comment

Choose a reason for hiding this comment

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

Too bad those solana-client re-exports weren't actually marked as deprecated. Would have been lovely to just rip them out in #1992

Comment thread cli/Cargo.toml
@@ -36,6 +36,7 @@ solana-cli-output = { workspace = true }
solana-client = { workspace = true }
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

It would be nice if we could remove this dependency from solana-cli altogether. It's the send-transaction stuff in program that's preventing that?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

that plus connection_cache I think

@CriesofCarrots CriesofCarrots merged commit 0b6f4a0 into anza-xyz:master Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants