From 60c340726a64985f8aa3a2261490751c52f34244 Mon Sep 17 00:00:00 2001 From: Robert Debug Date: Wed, 5 Aug 2020 09:55:04 +0200 Subject: [PATCH] rebase on feature flag --- rust/Cargo.toml | 2 -- rust/src/lib.rs | 4 +++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rust/Cargo.toml b/rust/Cargo.toml index c87e58792..8e4d407ec 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -37,8 +37,6 @@ tracing-subscriber = "0.2.7" uuid = { version = "0.8.1", features = ["v4"]} rayon = "1.3.0" async-trait = "0.1.35" -influxdb = { version = "0.1.0", features = ["derive"] } -chrono = "0.4.13" # optional dependencies influxdb = { version = "0.1.0", features = ["derive"], optional = true } diff --git a/rust/src/lib.rs b/rust/src/lib.rs index 88cb41894..034950fe7 100644 --- a/rust/src/lib.rs +++ b/rust/src/lib.rs @@ -90,7 +90,6 @@ pub mod crypto; pub mod examples; pub mod mask; pub mod message; -pub mod metrics; pub mod rest; pub mod sdk; pub mod services; @@ -99,6 +98,9 @@ pub mod state_machine; pub mod utils; pub(crate) mod vendor; +#[cfg(feature = "metrics")] +pub mod metrics; + use std::collections::HashMap; use derive_more::Display;