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

extract rpc-client-api-core without reqwest dep #4660

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kevinheavey
Copy link

@kevinheavey kevinheavey commented Jan 28, 2025

Problem

solana-rpc-client-api depends on reqwest for some marginal things. This is really annoying as it brings in dependencies that make compile times worse, increase conflicts and make the crate less portable, even though reqwest is only being used for its Error type.

Summary of Changes

  • Extract a solana-rpc-client-api-core crate, which is basically everything from solana-rpc-client-api that doesn't need reqwest
  • Re-export the contents of this crate in solana-rpc-client-api for backwards compatibility

This would supersede #4038 and #2961 which are still awaiting review. I don't care which PRs get chosen but I would really like to get rid of the reqwest dep before 2.2 is cut

Copy link

mergify bot commented Jan 28, 2025

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.

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.

1 participant