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 response crate (attempt 2) #2961

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kevinheavey
Copy link

Made a mess of #2084 in a rebase, easier to make a new PR.

Problem

It would be great to import RPC response parsing code without relying on the request-building code - it it not uncommon to want one without the other. Pulling out the response-parsing code allows you to avoid the jsonrpc-core and reqwest dependencies, which are very heavy.

Summary of Changes

Move solana_rpc_client_api::response (except for the RpcResult alias) to its own crate, and re-export for backwards compatibility.

Copy link

mergify bot commented Sep 22, 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.

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