Clean up unused dependencies

This commit is contained in:
Dirkjan Ochtman
2023-09-18 15:48:16 +02:00
committed by Benjamin Fry
parent 2e1c67c2f5
commit 10d2ffcb04
9 changed files with 17 additions and 41 deletions

6
Cargo.lock generated
View File

@@ -1810,7 +1810,7 @@ name = "trust-dns"
version = "0.23.0" version = "0.23.0"
dependencies = [ dependencies = [
"clap", "clap",
"futures", "futures-util",
"native-tls", "native-tls",
"regex", "regex",
"rustls", "rustls",
@@ -1876,7 +1876,6 @@ dependencies = [
"tracing-subscriber", "tracing-subscriber",
"trust-dns-client", "trust-dns-client",
"trust-dns-proto", "trust-dns-proto",
"trust-dns-recursor",
"trust-dns-resolver", "trust-dns-resolver",
"trust-dns-server", "trust-dns-server",
"webpki-roots", "webpki-roots",
@@ -1911,7 +1910,6 @@ dependencies = [
"rustls-native-certs", "rustls-native-certs",
"rustls-pemfile", "rustls-pemfile",
"serde", "serde",
"smallvec",
"socket2 0.5.3", "socket2 0.5.3",
"thiserror", "thiserror",
"tinyvec", "tinyvec",
@@ -1935,14 +1933,12 @@ dependencies = [
"bytes", "bytes",
"cfg-if", "cfg-if",
"enum-as-inner", "enum-as-inner",
"futures-executor",
"futures-util", "futures-util",
"lru-cache", "lru-cache",
"parking_lot", "parking_lot",
"serde", "serde",
"thiserror", "thiserror",
"tokio", "tokio",
"toml",
"tracing", "tracing",
"tracing-subscriber", "tracing-subscriber",
"trust-dns-proto", "trust-dns-proto",

View File

@@ -70,7 +70,7 @@ path = "src/trust-dns.rs"
# - derive for clap derive api # - derive for clap derive api
# - help to generate --help # - help to generate --help
clap = { workspace = true, default-features = false, features = ["std", "cargo", "help", "derive", "suggestions"] } clap = { workspace = true, default-features = false, features = ["std", "cargo", "help", "derive", "suggestions"] }
futures = { workspace = true, default-features = false, features = ["std"] } futures-util = { workspace = true, default-features = false, features = ["std"] }
rustls = { workspace = true, optional = true } rustls = { workspace = true, optional = true }
time.workspace = true time.workspace = true
tracing.workspace = true tracing.workspace = true

View File

@@ -510,7 +510,7 @@ fn config_tls(
listen_addrs: &[IpAddr], listen_addrs: &[IpAddr],
runtime: &mut runtime::Runtime, runtime: &mut runtime::Runtime,
) { ) {
use futures::TryFutureExt; use futures_util::TryFutureExt;
let tls_listen_port: u16 = args let tls_listen_port: u16 = args
.tls_port .tls_port
@@ -563,7 +563,7 @@ fn config_https(
listen_addrs: &[IpAddr], listen_addrs: &[IpAddr],
runtime: &mut runtime::Runtime, runtime: &mut runtime::Runtime,
) { ) {
use futures::TryFutureExt; use futures_util::TryFutureExt;
let https_listen_port: u16 = args let https_listen_port: u16 = args
.https_port .https_port
@@ -629,7 +629,7 @@ fn config_quic(
listen_addrs: &[IpAddr], listen_addrs: &[IpAddr],
runtime: &mut runtime::Runtime, runtime: &mut runtime::Runtime,
) { ) {
use futures::TryFutureExt; use futures_util::TryFutureExt;
let quic_listen_port: u16 = args let quic_listen_port: u16 = args
.quic_port .quic_port

View File

@@ -93,7 +93,6 @@ rustls = { workspace = true, optional = true }
rustls-native-certs = { workspace = true, optional = true } rustls-native-certs = { workspace = true, optional = true }
rustls-pemfile = { workspace = true, optional = true } rustls-pemfile = { workspace = true, optional = true }
serde = { workspace = true, features = ["derive"], optional = true } serde = { workspace = true, features = ["derive"], optional = true }
smallvec.workspace = true
socket2 = { workspace = true, optional = true } socket2 = { workspace = true, optional = true }
thiserror.workspace = true thiserror.workspace = true
tinyvec = { workspace = true, features = ["alloc"] } tinyvec = { workspace = true, features = ["alloc"] }

View File

@@ -71,7 +71,6 @@ async-recursion.workspace = true
bytes.workspace = true bytes.workspace = true
cfg-if.workspace = true cfg-if.workspace = true
enum-as-inner.workspace = true enum-as-inner.workspace = true
futures-executor = { workspace = true, default-features = false, features = ["std"] }
futures-util = { workspace = true, default-features = false, features = ["std"] } futures-util = { workspace = true, default-features = false, features = ["std"] }
lru-cache.workspace = true lru-cache.workspace = true
parking_lot.workspace = true parking_lot.workspace = true
@@ -79,7 +78,6 @@ serde = { workspace = true, features = ["derive"], optional = true }
thiserror.workspace = true thiserror.workspace = true
tracing.workspace = true tracing.workspace = true
tokio = { workspace = true, features = ["net"] } tokio = { workspace = true, features = ["net"] }
toml.workspace = true
trust-dns-proto.workspace = true trust-dns-proto.workspace = true
trust-dns-resolver = { workspace = true, features = ["tokio-runtime"] } trust-dns-resolver = { workspace = true, features = ["tokio-runtime"] }

View File

@@ -76,7 +76,6 @@ bytes.workspace = true
cfg-if.workspace = true cfg-if.workspace = true
drain.workspace = true drain.workspace = true
enum-as-inner.workspace = true enum-as-inner.workspace = true
futures-executor = { workspace = true, default-features = false, features = ["std"] }
futures-util = { workspace = true, default-features = false, features = ["std"] } futures-util = { workspace = true, default-features = false, features = ["std"] }
h2 = { workspace = true, features = ["stream"], optional = true } h2 = { workspace = true, features = ["stream"], optional = true }
http = { workspace = true, optional = true } http = { workspace = true, optional = true }
@@ -96,6 +95,7 @@ trust-dns-recursor = { workspace = true, features = ["serde-config"], optional =
trust-dns-resolver = { workspace = true, features = ["serde-config", "system-config", "tokio-runtime"], optional = true } trust-dns-resolver = { workspace = true, features = ["serde-config", "system-config", "tokio-runtime"], optional = true }
[dev-dependencies] [dev-dependencies]
futures-executor = { workspace = true, default-features = false, features = ["std"] }
tokio = { workspace = true, features = ["macros", "rt"] } tokio = { workspace = true, features = ["macros", "rt"] }
tracing-subscriber = { workspace = true, features = ["std", "fmt", "env-filter"] } tracing-subscriber = { workspace = true, features = ["std", "fmt", "env-filter"] }

View File

@@ -42,8 +42,10 @@ path = "src/lib.rs"
[dependencies] [dependencies]
data-encoding.workspace = true data-encoding.workspace = true
rand.workspace = true
[dev-dependencies]
futures.workspace = true futures.workspace = true
openssl = { workspace = true, features = ["v102", "v110"] } openssl = { workspace = true, features = ["v102", "v110"] }
rand.workspace = true
time.workspace = true time.workspace = true
trust-dns-client= { workspace = true, features = ["dnssec-openssl"] } trust-dns-client= { workspace = true, features = ["dnssec-openssl"] }

View File

@@ -46,43 +46,42 @@ dnssec-ring = ["dnssec",
"trust-dns-server/dnssec-ring", "trust-dns-server/dnssec-ring",
"trust-dns-client/dnssec-ring", "trust-dns-client/dnssec-openssl", "trust-dns-client/dnssec-ring", "trust-dns-client/dnssec-openssl",
"trust-dns-proto/dnssec-ring"] "trust-dns-proto/dnssec-ring"]
dnssec = [] dnssec = ["dep:openssl"]
# enables experimental the mDNS (multicast) feature # enables experimental the mDNS (multicast) feature
# TODO: revisit how mdns is implemented in resolver # TODO: revisit how mdns is implemented in resolver
# mdns = ["trust-dns-client/mdns", "trust-dns-proto/mdns", "trust-dns-resolver/mdns"] # mdns = ["trust-dns-client/mdns", "trust-dns-proto/mdns", "trust-dns-resolver/mdns"]
dns-over-https-rustls = ["trust-dns-client/dns-over-https-rustls", "trust-dns-resolver/dns-over-https-rustls", "dns-over-https", "webpki-roots"] dns-over-https-rustls = ["trust-dns-client/dns-over-https-rustls", "trust-dns-resolver/dns-over-https-rustls", "dns-over-https", "dep:rustls", "dep:webpki-roots"]
dns-over-https = ["trust-dns-proto/dns-over-https"] dns-over-https = ["trust-dns-proto/dns-over-https"]
dns-over-quic = ["dns-over-rustls", "trust-dns-proto/dns-over-quic", "trust-dns-resolver/dns-over-quic"] dns-over-quic = ["dns-over-rustls", "trust-dns-proto/dns-over-quic", "trust-dns-resolver/dns-over-quic"]
# TODO: need to make server support rustls and native-tls # TODO: need to make server support rustls and native-tls
# dns-over-native-tls = ["dns-over-tls", "trust-dns-resolver/dns-over-native-tls", "trust-dns-server/dns-over-native-tls"] # dns-over-native-tls = ["dns-over-tls", "trust-dns-resolver/dns-over-native-tls", "trust-dns-server/dns-over-native-tls"]
dns-over-openssl = ["dns-over-tls", "trust-dns-proto/dns-over-openssl", "trust-dns-resolver/dns-over-openssl", "trust-dns-server/dns-over-openssl"] dns-over-openssl = ["dns-over-tls", "trust-dns-proto/dns-over-openssl", "trust-dns-resolver/dns-over-openssl", "trust-dns-server/dns-over-openssl"]
dns-over-rustls = ["dns-over-tls", "trust-dns-proto/dns-over-rustls", "trust-dns-resolver/dns-over-rustls", "trust-dns-server/dns-over-rustls"] dns-over-rustls = ["dns-over-tls", "trust-dns-proto/dns-over-rustls", "trust-dns-resolver/dns-over-rustls", "trust-dns-server/dns-over-rustls", "dep:rustls"]
dns-over-tls = [] dns-over-tls = []
sqlite = ["rusqlite", "trust-dns-server/sqlite"] sqlite = ["rusqlite", "trust-dns-server/sqlite"]
[dependencies] [dependencies]
async-trait.workspace = true async-trait.workspace = true
futures.workspace = true futures = { workspace = true, features = ["executor"] }
once_cell.workspace = true once_cell.workspace = true
openssl = { workspace = true, features = ["v102", "v110"] } openssl = { workspace = true, optional = true, features = ["v102", "v110"] }
rand.workspace = true rand.workspace = true
rusqlite = { workspace = true, features = ["bundled"], optional = true } rusqlite = { workspace = true, features = ["bundled"], optional = true }
rustls.workspace = true rustls = { workspace = true, optional = true }
time.workspace = true time.workspace = true
tokio = { workspace = true, features = ["time", "rt"] } tokio = { workspace = true, features = ["time", "rt"] }
tracing.workspace = true tracing.workspace = true
tracing-subscriber = { workspace = true, features = ["std", "fmt", "env-filter"] }
trust-dns-client.workspace = true trust-dns-client.workspace = true
trust-dns-proto = { workspace = true, features = ["testing"] } trust-dns-proto = { workspace = true, features = ["testing"] }
trust-dns-resolver.workspace = true trust-dns-resolver = { workspace = true, features = ["tokio-runtime"] }
trust-dns-recursor.workspace = true
trust-dns-server = { workspace = true, features = ["testing"] } trust-dns-server = { workspace = true, features = ["testing"] }
webpki-roots = { workspace = true, optional = true } webpki-roots = { workspace = true, optional = true }
[dev-dependencies] [dev-dependencies]
futures = { workspace = true, features = ["thread-pool"] } futures = { workspace = true, features = ["thread-pool"] }
tokio = { workspace = true, features = ["macros", "rt"] } tokio = { workspace = true, features = ["macros", "rt"] }
tracing-subscriber = { workspace = true, features = ["std", "fmt", "env-filter"] }

View File

@@ -1,18 +0,0 @@
// Copyright 2015-2022 Benjamin Fry <benjaminfry@me.com>
//
// Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or
// http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or
// http://opensource.org/licenses/MIT>, at your option. This file may not be
// copied, modified, or distributed except according to those terms.
//! Integration tests for the recursor. These integration tests setup scenarios to verify that the recursor is able
//! to recursively resolve various real world scenarios. As new scenarios are discovered, they should be added here.
/// Tests a basic recursive resolution `a.recursive.test.` , `.` -> `test.` -> `recursive.test.` -> `a.recursive.test.`
///
/// There are three authorities needed for this test `.` which contains the `test` nameserver, `recursive.test` which is
/// target zone containing `a.recursive.test.`.
#[test]
fn test_basic_recursion() {
// TBD
}