Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove solana-sdk from rpc-client #3833

Merged
merged 7 commits into from
Dec 6, 2024

Conversation

kevinheavey
Copy link

@kevinheavey kevinheavey commented Nov 28, 2024

Problem

This crate can compile faster without solana-sdk

Summary of Changes

Remove it and replace with constituent crates as appropriate

This branches off #3634 so that needs to be merged first (update: done)

Copy link

mergify bot commented Nov 28, 2024

If this PR represents a change to the public RPC API:

  1. Make sure it includes a complementary update to rpc-client/ (example)
  2. Open a follow-up PR to update the JavaScript client @solana/web3.js (example)

Thank you for keeping the RPC clients in sync with the server API @kevinheavey.

@kevinheavey kevinheavey marked this pull request as ready for review December 4, 2024 09:45
@kevinheavey kevinheavey force-pushed the rpc-client-rm-sdk branch 4 times, most recently from 3f21340 to 5ce400a Compare December 5, 2024 17:46
@kevinheavey kevinheavey requested a review from joncinque December 5, 2024 18:31
Copy link

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

For fun, I checked the build difference from this PR, and I was averaging ~14.5s for cargo clean && cargo build, and master gives double the number of crates to build, but averages ~18.5s build time.

Anyway, looks great!

@@ -1355,11 +1346,11 @@ impl RpcClient {
/// and the transaction failed, this method returns `Ok(Some(Err(_)))`,
/// where the interior error is type [`TransactionError`].
///
/// [`TransactionError`]: solana_sdk::transaction::TransactionError
/// [`TransactionError`]: solana_transaction_error::TransactionError

Choose a reason for hiding this comment

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

I didn't realize how smart this is -- it actually currently resolves back to solana_transaction_error::TransactionError 🥳

Either way, it's definitely better to use the base import

@joncinque joncinque merged commit 9d99617 into anza-xyz:master Dec 6, 2024
51 checks passed
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