diff options
author | hozan23 <hozan23@karyontech.net> | 2024-06-24 20:26:03 +0200 |
---|---|---|
committer | hozan23 <hozan23@karyontech.net> | 2024-06-24 20:26:03 +0200 |
commit | 1a3ef2d77ab54bfe286f7400ac0cee2e25ea14e3 (patch) | |
tree | 9014082443fffbfc7951c03b33caf48b3b0d6a68 /jsonrpc/jsonrpc_macro | |
parent | f3bb85508335eab91fbd76d15e74dcc575195acf (diff) |
update dependencies
Diffstat (limited to 'jsonrpc/jsonrpc_macro')
-rw-r--r-- | jsonrpc/jsonrpc_macro/Cargo.toml | 4 | ||||
-rw-r--r-- | jsonrpc/jsonrpc_macro/src/lib.rs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/jsonrpc/jsonrpc_macro/Cargo.toml b/jsonrpc/jsonrpc_macro/Cargo.toml index 36eabc0..cf001e1 100644 --- a/jsonrpc/jsonrpc_macro/Cargo.toml +++ b/jsonrpc/jsonrpc_macro/Cargo.toml @@ -21,6 +21,6 @@ tokio = [] [dependencies] proc-macro2 = "1.0" quote = "1.0" -syn = { version = "1.0", features = ["full"] } +syn = { version = "2.0", features = ["full"] } -serde_json = "1.0.114" +serde_json = "1.0.117" diff --git a/jsonrpc/jsonrpc_macro/src/lib.rs b/jsonrpc/jsonrpc_macro/src/lib.rs index 5acfa5e..ecca5b1 100644 --- a/jsonrpc/jsonrpc_macro/src/lib.rs +++ b/jsonrpc/jsonrpc_macro/src/lib.rs @@ -30,7 +30,7 @@ pub fn rpc_impl(_attr: TokenStream, item: TokenStream) -> TokenStream { for item in parsed_input.items { match item { - ImplItem::Method(method) => { + ImplItem::Fn(method) => { methods.push(method.sig.ident); } _ => err!(item.span(), "unexpected item"), @@ -68,7 +68,7 @@ pub fn rpc_pubsub_impl(_attr: TokenStream, item: TokenStream) -> TokenStream { for item in parsed_input.items { match item { - ImplItem::Method(method) => { + ImplItem::Fn(method) => { methods.push(method.sig.ident); } _ => err!(item.span(), "unexpected item"), |