diff --git a/Cargo.toml b/Cargo.toml index 845afb937..631d1a961 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -39,4 +39,6 @@ codegen-units = 256 [workspace.dependencies] -tokio = { version = "1.27.0", features = ["rt", "fs", "net", "rt-multi-thread", "time"], default-features = false } +tokio = { version = "1.28.1", features = ["rt", "fs", "net", "rt-multi-thread", "time"], default-features = false } +serde = { version = "1.0.126", features = ["derive"], default-features = false } +async-trait = "0.1.68" diff --git a/discovery/Cargo.toml b/discovery/Cargo.toml index ad54dca12..dc9743fe1 100644 --- a/discovery/Cargo.toml +++ b/discovery/Cargo.toml @@ -12,7 +12,7 @@ ds = { path = "../ds" } metrics = { path = "../metrics" } url = "2.2.2" -async-trait = "0.1.51" +async-trait.workspace = true enum_dispatch = "0.3.8" #for http request and json parse @@ -21,7 +21,7 @@ tokio.workspace = true json = "0.12.4" #for deserialize -serde = { version = "1.0.126", features = ["derive"] } +serde.workspace = true serde_derive = "1.0.126" serde_yaml = "0.8.17" serde_json = "1.0.65" diff --git a/discovery/src/vintage.rs b/discovery/src/vintage.rs index 3aae3b577..f1571a490 100644 --- a/discovery/src/vintage.rs +++ b/discovery/src/vintage.rs @@ -6,7 +6,7 @@ use std::{ }; use reqwest::Client; -use serde::{Deserialize, Serialize}; +use serde::Deserialize; use url::Url; #[derive(Clone)] @@ -14,13 +14,13 @@ pub struct Vintage { client: Client, } -#[derive(Serialize, Deserialize, Debug)] +#[derive(Deserialize)] struct Node { index: String, data: String, } -#[derive(Serialize, Deserialize, Debug)] +#[derive(Deserialize)] struct Response { message: String, node: Node, diff --git a/endpoint/Cargo.toml b/endpoint/Cargo.toml index acddd2042..6b58a11ff 100644 --- a/endpoint/Cargo.toml +++ b/endpoint/Cargo.toml @@ -18,9 +18,9 @@ rt = { path = "../rt" } byteorder = "1.4.3" bytes = "1.0.1" tokio.workspace = true +serde.workspace = true enum_dispatch = "0.3.8" -serde = { version = "1.0.126", features = ["derive"] } serde_derive = "1.0.126" serde_yaml = "0.8.17" serde_json = "1.0.65" diff --git a/net/Cargo.toml b/net/Cargo.toml index d66ec60eb..6bf356198 100644 --- a/net/Cargo.toml +++ b/net/Cargo.toml @@ -7,5 +7,5 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -async-trait = "0.1.51" +async-trait.workspace = true tokio.workspace = true