diff --git a/azure-pipelines.yml b/azure-pipelines.yml deleted file mode 100644 index 40bd9cd..0000000 --- a/azure-pipelines.yml +++ /dev/null @@ -1,15 +0,0 @@ -trigger: ["master"] -pr: ["master"] - -jobs: -# Check the crate formatting. -- template: ci/azure-rustfmt.yml - -# Actaully test the crate. -- template: ci/azure-test-stable.yml - -# Test it to make sure it still works on our minimum version. -- template: ci/azure-test-minimum.yaml - -# Now test it against nightly w/ ASM support. -- template: ci/azure-test-nightly.yml diff --git a/metrics-exporter-prometheus/src/lib.rs b/metrics-exporter-prometheus/src/lib.rs index b39f682..4657d16 100644 --- a/metrics-exporter-prometheus/src/lib.rs +++ b/metrics-exporter-prometheus/src/lib.rs @@ -1,5 +1,6 @@ //! Records metrics in the Prometheus exposition format. #![deny(missing_docs)] +#![cfg_attr(docsrs, feature(doc_cfg), deny(broken_intra_doc_links))] use std::future::Future; use hyper::{ diff --git a/metrics-exporter-tcp/src/lib.rs b/metrics-exporter-tcp/src/lib.rs index e782a81..32a75d4 100644 --- a/metrics-exporter-tcp/src/lib.rs +++ b/metrics-exporter-tcp/src/lib.rs @@ -44,6 +44,8 @@ //! ``` //! //! [metrics]: https://docs.rs/metrics +#![deny(missing_docs)] +#![cfg_attr(docsrs, feature(doc_cfg), deny(broken_intra_doc_links))] use std::collections::{BTreeMap, HashMap, VecDeque}; use std::io::{self, Write}; use std::net::SocketAddr; diff --git a/metrics-tracing-context/src/lib.rs b/metrics-tracing-context/src/lib.rs index a40eb1d..0c5cd28 100644 --- a/metrics-tracing-context/src/lib.rs +++ b/metrics-tracing-context/src/lib.rs @@ -52,8 +52,8 @@ //! the following labels: //! - `service=login_service` //! - `user=ferris` - #![deny(missing_docs)] +#![cfg_attr(docsrs, feature(doc_cfg), deny(broken_intra_doc_links))] use metrics::{Key, KeyData, Label, Recorder, Unit}; use metrics_util::layers::Layer; @@ -65,7 +65,7 @@ mod tracing_integration; pub use label_filter::LabelFilter; pub use tracing_integration::{Labels, MetricsLayer, SpanExt}; -/// [`TracingContextLayer`] provides an implementation of a [`metrics::Layer`] +/// [`TracingContextLayer`] provides an implementation of a [`Layer`][metrics_util::layers::Layer] /// for [`TracingContext`]. pub struct TracingContextLayer { label_filter: F, @@ -101,8 +101,7 @@ where } } -/// [`TracingContext`] is a [`metrics::Recorder`] that injects labels from the -/// [`tracing::Span`]s. +/// [`TracingContext`] is a [`metrics::Recorder`] that injects labels from [`tracing::Span`]s. pub struct TracingContext { inner: R, label_filter: F, diff --git a/metrics-util/src/lib.rs b/metrics-util/src/lib.rs index a097aa4..481409e 100644 --- a/metrics-util/src/lib.rs +++ b/metrics-util/src/lib.rs @@ -1,5 +1,6 @@ //! Helper types and functions used within the metrics ecosystem. #![deny(missing_docs)] +#![cfg_attr(docsrs, feature(doc_cfg), deny(broken_intra_doc_links))] #![cfg_attr(not(feature = "std"), no_std)] #[cfg(feature = "std")]