chore: update dependencies with breaking changes (#4555)

This commit is contained in:
DaniPopes
2023-09-11 16:53:09 +02:00
committed by GitHub
parent 7dd14a7eba
commit 28f5118048
19 changed files with 208 additions and 210 deletions

View File

@ -23,7 +23,7 @@ tokio = { workspace = true, features = ["io-util", "net", "time"] }
tokio-stream.workspace = true
# trust-dns
trust-dns-resolver = "0.22"
trust-dns-resolver = "0.23"
# misc
data-encoding = "2"
@ -34,7 +34,7 @@ thiserror.workspace = true
tracing.workspace = true
parking_lot.workspace = true
serde = { workspace = true, optional = true }
serde_with = { version = "2.1.0", optional = true }
serde_with = { version = "3.3.0", optional = true }
[dev-dependencies]
tokio = { workspace = true, features = ["sync", "rt", "rt-multi-thread"] }

View File

@ -5,7 +5,7 @@ use parking_lot::RwLock;
use std::collections::HashMap;
use tracing::trace;
pub use trust_dns_resolver::{error::ResolveError, TokioAsyncResolver};
use trust_dns_resolver::{proto::DnsHandle, AsyncResolver, ConnectionProvider};
use trust_dns_resolver::{name_server::ConnectionProvider, AsyncResolver};
/// A type that can lookup DNS entries
#[async_trait]
@ -15,11 +15,7 @@ pub trait Resolver: Send + Sync + Unpin + 'static {
}
#[async_trait]
impl<C, P> Resolver for AsyncResolver<C, P>
where
C: DnsHandle<Error = ResolveError>,
P: ConnectionProvider<Conn = C>,
{
impl<P: ConnectionProvider> Resolver for AsyncResolver<P> {
async fn lookup_txt(&self, query: &str) -> Option<String> {
// See: [AsyncResolver::txt_lookup]
// > *hint* queries that end with a '.' are fully qualified names and are cheaper lookups

View File

@ -40,4 +40,4 @@ block-padding = "0.3.2"
cipher = { version = "0.4.3", features = ["block-padding"] }
[dev-dependencies]
hex-literal = "0.3.4"
hex-literal.workspace = true

View File

@ -17,14 +17,8 @@ serde = { workspace = true, optional = true }
reth-codecs = { path = "../../storage/codecs" }
reth-primitives.workspace = true
reth-ecies = { path = "../ecies" }
reth-rlp = { workspace = true, features = [
"alloc",
"derive",
"std",
"ethereum-types",
"smol_str",
] }
reth-discv4 = {path = "../discv4" }
reth-rlp = { workspace = true, features = ["alloc", "derive", "std", "ethereum-types", "smol_str"] }
reth-discv4 = { path = "../discv4" }
# metrics
reth-metrics.workspace = true
@ -46,7 +40,7 @@ async-trait.workspace = true
# arbitrary utils
arbitrary = { workspace = true, features = ["derive"], optional = true }
proptest = { workspace = true, optional = true }
proptest-derive = { version = "0.3", optional = true }
proptest-derive = { workspace = true, optional = true }
[dev-dependencies]
reth-primitives = { workspace = true, features = ["arbitrary"] }
@ -55,14 +49,14 @@ ethers-core = { workspace = true, default-features = false }
test-fuzz = "4"
tokio-util = { workspace = true, features = ["io", "codec"] }
hex-literal = "0.3"
hex-literal.workspace = true
hex = "0.4"
rand.workspace = true
secp256k1 = { workspace = true, features = ["global-context", "rand-std", "recovery"] }
arbitrary = { workspace = true, features = ["derive"] }
proptest.workspace = true
proptest-derive = "0.3"
proptest-derive.workspace = true
[features]
default = ["serde"]

View File

@ -22,7 +22,7 @@ tracing.workspace = true
pin-project-lite = "0.2.9"
tokio = { workspace = true, features = ["time"] }
thiserror.workspace = true
serde_with = { version = "2.1.0", optional = true }
serde_with = { version = "3.3.0", optional = true }
[dev-dependencies]
reth-tracing = { path = "../../tracing" }

View File

@ -88,8 +88,8 @@ enr = { workspace = true, features = ["serde", "rust-secp256k1"] }
# misc
hex = "0.4"
serial_test.workspace = true
tempfile = "3.3"
serial_test = "2.0"
[features]
default = ["serde"]