metrics/metrics-util/src/lib.rs

36 lines
771 B
Rust
Raw Normal View History

2019-04-23 13:32:28 -07:00
//! Helper types and functions used within the metrics ecosystem.
#![deny(missing_docs)]
2020-10-28 19:51:27 -07:00
#![cfg_attr(docsrs, feature(doc_cfg), deny(broken_intra_doc_links))]
#![cfg_attr(not(feature = "std"), no_std)]
#[cfg(feature = "std")]
mod bucket;
#[cfg(feature = "std")]
pub use bucket::AtomicBucket;
2019-04-23 13:32:28 -07:00
#[cfg(feature = "std")]
mod debugging;
#[cfg(feature = "std")]
pub use debugging::{DebugValue, DebuggingRecorder, MetricKind, Snapshotter};
#[cfg(feature = "std")]
mod handle;
#[cfg(feature = "std")]
pub use handle::Handle;
mod quantile;
pub use quantile::{parse_quantiles, Quantile};
2019-07-23 09:25:49 -07:00
#[cfg(feature = "std")]
mod registry;
#[cfg(feature = "std")]
pub use registry::Registry;
mod key;
pub use key::CompositeKey;
mod histogram;
pub use histogram::Histogram;
pub mod layers;