diff --git a/Cargo.lock b/Cargo.lock index 9cea47e14a..1e8e7e145d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2335,7 +2335,7 @@ dependencies = [ "rustls-pki-types", "serde", "serde_json", - "simple-dns 0.9.3", + "simple-dns", "smallvec", "strum", "testdir", @@ -2411,7 +2411,7 @@ dependencies = [ "rand 0.10.1", "reqwest", "rustls", - "simple-dns 0.11.3", + "simple-dns", "strum", "tokio", "tokio-rustls", @@ -2459,7 +2459,7 @@ dependencies = [ "rustls", "serde", "serde_json", - "simple-dns 0.11.3", + "simple-dns", "strum", "tempfile", "tokio", @@ -2529,7 +2529,6 @@ dependencies = [ "http-body-util", "hyper", "hyper-util", - "ipconfig", "iroh-base", "iroh-dns", "iroh-metrics", @@ -4662,15 +4661,6 @@ version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e3a9fe34e3e7a50316060351f37187a3f546bce95496156754b601a5fa71b76e" -[[package]] -name = "simple-dns" -version = "0.9.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dee851d0e5e7af3721faea1843e8015e820a234f81fda3dea9247e15bac9a86a" -dependencies = [ - "bitflags", -] - [[package]] name = "simple-dns" version = "0.11.3" diff --git a/iroh-relay/Cargo.toml b/iroh-relay/Cargo.toml index 9efdaaf349..7e08e3ee04 100644 --- a/iroh-relay/Cargo.toml +++ b/iroh-relay/Cargo.toml @@ -97,10 +97,6 @@ tokio = { version = "1", features = [ ] } tokio-websockets = { version = "0.13", features = ["rustls-bring-your-own-connector", "getrandom", "rand", "client", "sha1_smol"] } -# Windows-only dependencies -[target.'cfg(windows)'.dependencies] -ipconfig = "0.3" - # wasm-in-browser dependencies [target.'cfg(all(target_family = "wasm", target_os = "unknown"))'.dependencies] ws_stream_wasm = { version = "0.7.4", default-features = false } diff --git a/iroh/Cargo.toml b/iroh/Cargo.toml index 71656e402a..7157657475 100644 --- a/iroh/Cargo.toml +++ b/iroh/Cargo.toml @@ -49,6 +49,7 @@ reqwest = { version = "0.13", default-features = false, features = ["rustls-no-p rustc-hash = "2" rustls = { version = "0.23.33", default-features = false } serde = { version = "1.0.219", features = ["derive", "rc"] } +simple-dns = { version = "0.11", optional = true } smallvec = "1.11.1" strum = { version = "0.28", features = ["derive"] } tokio = { version = "1.44.1", features = [ @@ -84,7 +85,6 @@ tokio = { version = "1", features = [ "fs", "io-std", ] } -simple-dns = "0.9.3" # wasm-in-browser dependencies [target.'cfg(all(target_family = "wasm", target_os = "unknown"))'.dependencies] @@ -101,6 +101,7 @@ postcard = { version = "1.1.1", features = ["use-std"] } tracing-subscriber = { version = "0.3", features = ["env-filter"] } rand_chacha = "0.10" chrono = "0.4.43" +simple-dns = "0.11" # *non*-wasm-in-browser test/dev dependencies [target.'cfg(not(all(target_family = "wasm", target_os = "unknown")))'.dev-dependencies] @@ -130,6 +131,7 @@ parse-size = { version = "1.1.0", features = ['std'] } iroh-base = { version = "1.0.0", default-features = false, features = ["key", "relay"], path = "../iroh-base" } console = { version = "0.16" } + # wasm-in-browser test/dev dependencies [target.'cfg(all(target_family = "wasm", target_os = "unknown"))'.dev-dependencies] wasm-tracing = "2.1.0" @@ -148,7 +150,7 @@ cfg_aliases = { version = "0.2.1" } default = ["metrics", "fast-apple-datapath", "portmapper", "tls-ring"] portmapper = ["dep:portmapper"] metrics = ["iroh-metrics/metrics", "iroh-relay/metrics"] -test-utils = ["iroh-relay/test-utils", "iroh-relay/server", "dep:axum"] +test-utils = ["iroh-relay/test-utils", "iroh-relay/server", "dep:axum", "dep:simple-dns"] # Enables fetching TLS trust anchors from the operating system platform-verifier = ["iroh-relay/platform-verifier"] qlog = ["noq/qlog"]