From 6d77aafce4228e13860682ae6aa8168a7db83b7a Mon Sep 17 00:00:00 2001 From: icycrystal4 Date: Wed, 17 May 2023 14:00:51 +0800 Subject: [PATCH] =?UTF-8?q?tokio=E5=8D=87=E7=BA=A7=E5=88=B01.28.1=E3=80=82?= =?UTF-8?q?=E5=9C=A81.28=E4=B8=AD=E8=BF=9B=E8=A1=8C=E4=BA=86=E4=B8=80?= =?UTF-8?q?=E4=B8=AA=E4=BC=98=E5=8C=96=20tokio-rs/tokio/pull/5503=20?= =?UTF-8?q?=E5=9C=A8task=20notify=E6=97=B6=EF=BC=8C=E4=BD=BF=E7=94=A8atomi?= =?UTF-8?q?c=E6=9B=BF=E4=BB=A3=E9=94=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Cargo.toml | 4 +++- discovery/Cargo.toml | 4 ++-- discovery/src/vintage.rs | 6 +++--- endpoint/Cargo.toml | 2 +- net/Cargo.toml | 2 +- 5 files changed, 10 insertions(+), 8 deletions(-) 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