From d94a592e9615dbed18552149a81d46c1730643df Mon Sep 17 00:00:00 2001 From: Asmir Avdicevic Date: Fri, 5 Jul 2024 15:14:45 +0200 Subject: [PATCH] more build fixes --- iroh-docs/Cargo.toml | 4 ++-- iroh-docs/src/lib.rs | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/iroh-docs/Cargo.toml b/iroh-docs/Cargo.toml index 9261aad729..b58165876e 100644 --- a/iroh-docs/Cargo.toml +++ b/iroh-docs/Cargo.toml @@ -28,7 +28,7 @@ hex = "0.4" iroh-base = { version = "0.19.0", path = "../iroh-base" } iroh-blobs = { version = "0.19.0", path = "../iroh-blobs", optional = true, features = ["downloader"] } iroh-gossip = { version = "0.19.0", path = "../iroh-gossip", optional = true } -iroh-metrics = { version = "0.19.0", path = "../iroh-metrics", optional = true } +iroh-metrics = { version = "0.19.0", path = "../iroh-metrics", default-features = false } iroh-net = { version = "0.19.0", optional = true, path = "../iroh-net" } lru = "0.12" num_enum = "0.7" @@ -58,7 +58,7 @@ test-strategy = "0.3.1" [features] default = ["net", "metrics", "engine"] net = ["dep:iroh-net", "tokio/io-util", "dep:tokio-stream", "dep:tokio-util"] -metrics = ["dep:iroh-metrics"] +metrics = ["iroh-metrics/metrics"] engine = ["net", "dep:iroh-gossip", "dep:iroh-blobs"] [package.metadata.docs.rs] diff --git a/iroh-docs/src/lib.rs b/iroh-docs/src/lib.rs index b1347fe7be..0e84ea61f6 100644 --- a/iroh-docs/src/lib.rs +++ b/iroh-docs/src/lib.rs @@ -33,7 +33,6 @@ //! [paper]: https://arxiv.org/abs/2212.13567 #![deny(missing_docs, rustdoc::broken_intra_doc_links)] -#[cfg(feature = "metrics")] pub mod metrics; #[cfg(feature = "net")] pub mod net;