diff options
author | hozan23 <hozan23@karyontech.net> | 2024-10-12 22:06:35 +0200 |
---|---|---|
committer | hozan23 <hozan23@karyontech.net> | 2024-10-12 22:06:35 +0200 |
commit | c42258ff66eb4d17d5945a9fcacc4e5b07f8edea (patch) | |
tree | 14a609d1e52bf0236816ee9ad6c79f99f0d2043e /jsonrpc | |
parent | cae0c15d10235bf0ec0bd6f8b20814dc7b63dfd5 (diff) |
Move the dependencies to the workspace cargo.toml file
Diffstat (limited to 'jsonrpc')
-rw-r--r-- | jsonrpc/Cargo.toml | 41 | ||||
-rw-r--r-- | jsonrpc/impl/Cargo.toml | 8 |
2 files changed, 24 insertions, 25 deletions
diff --git a/jsonrpc/Cargo.toml b/jsonrpc/Cargo.toml index 2260b7e..bdbcb74 100644 --- a/jsonrpc/Cargo.toml +++ b/jsonrpc/Cargo.toml @@ -17,39 +17,38 @@ tls = ["tcp", "karyon_net/tls"] ws = ["tcp", "karyon_net/ws", "async-tungstenite"] unix = ["karyon_net/unix"] smol = [ - "karyon_core/smol", - "karyon_net/smol", - "karyon_jsonrpc_macro/smol", - "async-tungstenite?/async-std-runtime", + "karyon_core/smol", + "karyon_net/smol", + "karyon_jsonrpc_macro/smol", + "async-tungstenite?/async-std-runtime", ] tokio = [ - "karyon_core/tokio", - "karyon_net/tokio", - "karyon_jsonrpc_macro/tokio", - "async-tungstenite?/tokio-runtime", + "karyon_core/tokio", + "karyon_net/tokio", + "karyon_jsonrpc_macro/tokio", + "async-tungstenite?/tokio-runtime", ] [dependencies] -karyon_core = { version = "0.1.6", path = "../core", default-features = false } -karyon_net = { version = "0.1.6", path = "../net", default-features = false } +karyon_core = { workspace = true } +karyon_net = { workspace = true } +karyon_jsonrpc_macro = { workspace = true } -karyon_jsonrpc_macro = { version = "0.1.6", path = "impl", default-features = false } - -log = "0.4.21" -rand = "0.8.5" -thiserror = "1.0.61" +log = { workspace = true } +rand = { workspace = true } +thiserror = { workspace = true } # encode/decode -serde = { version = "1.0.203", features = ["derive"] } -serde_json = "1.0.117" +serde = { workspace = true, features = ["derive"] } +serde_json = { workspace = true } # async -async-trait = "0.1.80" -async-channel = "2.3.1" +async-trait = { workspace = true } +async-channel = { workspace = true } # websocket -async-tungstenite = { version = "0.26.2", default-features = false, optional = true } +async-tungstenite = { workspace = true, optional = true } [dev-dependencies] +smol = { workspace = true } env_logger = "0.11.3" -smol = "2.0.0" diff --git a/jsonrpc/impl/Cargo.toml b/jsonrpc/impl/Cargo.toml index cf001e1..0bf7890 100644 --- a/jsonrpc/impl/Cargo.toml +++ b/jsonrpc/impl/Cargo.toml @@ -19,8 +19,8 @@ smol = [] tokio = [] [dependencies] -proc-macro2 = "1.0" -quote = "1.0" -syn = { version = "2.0", features = ["full"] } +proc-macro2 = { workspace = true } +quote = { workspace = true } +syn = { workspace = true, features = ["full"] } -serde_json = "1.0.117" +serde_json = { workspace = true } |