Skip to content

Commit 0f412ed

Browse files
fix(iroh-net): allow compiling without default-features
1 parent 29b011e commit 0f412ed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

iroh-net/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ thiserror = "1"
5151
tracing = "0.1"
5252
trust-dns-resolver = "0.22.0"
5353
time = "0.3.20"
54-
tokio = { version = "1", features = ["io-util", "sync", "rt", "net", "fs", "io-std", "signal", "process"] }
54+
tokio = { version = "1", features = ["io-util", "macros", "sync", "rt", "net", "fs", "io-std", "signal", "process"] }
5555
tokio-util = { version = "0.7", features = ["io-util", "io", "codec"] }
5656
tokio-rustls = { version = "0.24" }
5757
tokio-rustls-acme = { version = "0.2" }
@@ -76,7 +76,7 @@ toml = { version = "0.7.3", optional = true }
7676
tracing-subscriber = { version = "0.3", features = ["env-filter"], optional = true }
7777

7878
# metrics
79-
iroh-metrics = { version = "0.6.0-alpha.0", path = "../iroh-metrics", optional = true }
79+
iroh-metrics = { version = "0.6.0-alpha.0", path = "../iroh-metrics", default-features = false }
8080

8181
[target.'cfg(any(target_os = "linux", target_os = "android"))'.dependencies]
8282
netlink-packet-route = "0.17.0"
@@ -106,7 +106,7 @@ duct = "0.13.6"
106106
[features]
107107
default = ["metrics"]
108108
derper = ["clap", "toml", "rustls-pemfile", "regex", "serde_with", "tracing-subscriber"]
109-
metrics = ["iroh-metrics"]
109+
metrics = ["iroh-metrics/metrics"]
110110

111111
[[bin]]
112112
name = "derper"

0 commit comments

Comments
 (0)