aboutsummaryrefslogtreecommitdiff
path: root/jsonrpc
diff options
context:
space:
mode:
Diffstat (limited to 'jsonrpc')
-rw-r--r--jsonrpc/Cargo.toml15
-rw-r--r--jsonrpc/examples/tokio_server/Cargo.toml4
-rw-r--r--jsonrpc/jsonrpc_macro/Cargo.toml4
-rw-r--r--jsonrpc/jsonrpc_macro/src/lib.rs4
4 files changed, 16 insertions, 11 deletions
diff --git a/jsonrpc/Cargo.toml b/jsonrpc/Cargo.toml
index 3c5bf17..1660356 100644
--- a/jsonrpc/Cargo.toml
+++ b/jsonrpc/Cargo.toml
@@ -37,13 +37,18 @@ karyon_jsonrpc_macro = { version = "0.1.4", path = "jsonrpc_macro", default-feat
log = "0.4.21"
rand = "0.8.5"
-serde = { version = "1.0.197", features = ["derive"] }
-serde_json = "1.0.114"
-thiserror = "1.0.58"
-async-trait = "0.1.77"
+thiserror = "1.0.61"
+
+# encode/decode
+serde = { version = "1.0.203", features = ["derive"] }
+serde_json = "1.0.117"
+
+# async
+async-trait = "0.1.80"
async-channel = "2.3.1"
-async-tungstenite = { version = "0.25.0", default-features = false, optional = true }
+# websocket
+async-tungstenite = { version = "0.26.2", default-features = false, optional = true }
[dev-dependencies]
env_logger = "0.11.3"
diff --git a/jsonrpc/examples/tokio_server/Cargo.toml b/jsonrpc/examples/tokio_server/Cargo.toml
index 9ed681b..475eae8 100644
--- a/jsonrpc/examples/tokio_server/Cargo.toml
+++ b/jsonrpc/examples/tokio_server/Cargo.toml
@@ -8,9 +8,9 @@ edition = "2021"
[dependencies]
env_logger = "0.11.3"
karyon_jsonrpc = { path = "../../", default-features = false, features = ["tokio", "ws"] }
-serde = { version = "1.0.202", features = ["derive"] }
+serde = { version = "1.0.203", features = ["derive"] }
serde_json = "1.0.117"
-tokio = { version = "1.37.0", features = ["full"] }
+tokio = { version = "1.38.0", features = ["full"] }
[profile.release]
debug = true
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"),