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

[proc macros/jsonrpsee]: less deps when defining client API only #847

Closed
niklasad1 opened this issue Aug 8, 2022 · 1 comment
Closed

Comments

@niklasad1
Copy link
Member

niklasad1 commented Aug 8, 2022

Currently in the wrapper/facade crate jsonrpsee it's not possible to just import some minor deps for the client traits.
If I want to something like:

use jsonrpsee::{core::RpcResult, proc_macros::rpc};
#[rpc(client)]
pub trait Api {
	#[method(name = "call")]
	fn call(&self, x: usize) -> RpcResult<()>;
}

When trying to do that one must either enable async-client feature which brings a few needless deps including tokio

It's also possible though to import jsonrpsee-core/client manually to workaround that but we should probably expose a feature for that.

@niklasad1
Copy link
Member Author

Closed by #849

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

No branches or pull requests

1 participant