diff --git a/iroh-docs/Cargo.toml b/iroh-docs/Cargo.toml index bcaa820eeb..4bc74c6c44 100644 --- a/iroh-docs/Cargo.toml +++ b/iroh-docs/Cargo.toml @@ -28,7 +28,7 @@ hex = "0.4" iroh-base = { version = "0.20.0", path = "../iroh-base" } iroh-blobs = { version = "0.20.0", path = "../iroh-blobs", optional = true, features = ["downloader"] } iroh-gossip = { version = "0.20.0", path = "../iroh-gossip", optional = true } -iroh-metrics = { version = "0.20.0", path = "../iroh-metrics", optional = true } +iroh-metrics = { version = "0.20.0", path = "../iroh-metrics", default-features = false } iroh-net = { version = "0.20.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;