Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

[rpc api]: reduce dependency tree #12030

Open
niklasad1 opened this issue Aug 15, 2022 · 0 comments
Open

[rpc api]: reduce dependency tree #12030

niklasad1 opened this issue Aug 15, 2022 · 0 comments

Comments

@niklasad1
Copy link
Member

niklasad1 commented Aug 15, 2022

Currently, the jsonrpc RPC API from jsonrpsee introduces some needless dependencies which should be fixed shortly.

In addition the crate itself brings in sc-chain-spec which in turn brings in sc-network and it has lots of dependencies (libp2p and so on) which are not needed just because a couple of types are needed in the system RPC API.

Thus, would be nice to extract these types or even duplicate them just to avoid having these extra dependencies.

The typical use-case is that one wants to re-use the RPC API from substrate in some client library/application to avoid duplicating the entire API or import half of the dependencies in substrate.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant