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

fix(jsonrpsee): less deps when defining RPC API. #849

Merged
merged 3 commits into from
Aug 15, 2022

Conversation

niklasad1
Copy link
Member

@niklasad1 niklasad1 commented Aug 10, 2022

Closing #847 by introducing two new features server-core and client-core to only import relevant types for defining the RPC API i.e, not import transport related deps.

It makes things better such that if one doesn't want the transport stuff just the client or server types from core it reduces the dependency tree a lot. The typical use-case if some third-party crate or library just defines the RPC API and some other crate such a client application just want to re-use the API definition.

@niklasad1 niklasad1 requested a review from a team as a code owner August 10, 2022 09:00
jsonrpsee/Cargo.toml Outdated Show resolved Hide resolved
Copy link
Contributor

@lexnv lexnv left a comment

Choose a reason for hiding this comment

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

LGTM!

@niklasad1 niklasad1 merged commit a229459 into master Aug 15, 2022
@niklasad1 niklasad1 deleted the na-jsonrpsee-wrapper-crate-better-features branch August 15, 2022 09:34
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.

None yet

4 participants