You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I've started to use jsonrpsee recently. I've created a common cargo crate in my workspace with my Rpc traits and this crate is used in a leptos wasm app and in a tokio backend.
I've tried to write a macro_rules! to conditionally include the RpcServer in the decorator macro as follow:
error[E0425]: cannot find value `__self` in this scope
--> shared/brain-rpc/src/lib.rs:22:13
|
22 | #[rpc(server, client)]
| ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
...
33 | / rpc_trait! {
34 | | pub trait BrainRpc {
35 | | #[method(name = "getStatus")]
36 | | async fn get_status(&self) -> Result<(), ErrorObjectOwned>;
37 | | }
38 | | }
| |_- in this macro invocation
|
= note: this error originates in the attribute macro `rpc` which comes from the expansion of the macro `rpc_trait` (in Nightly builds, run with -Z macro-backtrace for more info)
Does someone have any idea of a way to fix it ?
The text was updated successfully, but these errors were encountered:
Hello,
I've started to use jsonrpsee recently. I've created a common cargo crate in my workspace with my Rpc traits and this crate is used in a leptos wasm app and in a tokio backend.
I've tried to write a macro_rules! to conditionally include the RpcServer in the decorator macro as follow:
but I have the following error:
Does someone have any idea of a way to fix it ?
The text was updated successfully, but these errors were encountered: