Browse Source

hide latency mod behind feature gate

master
Jonathan Strong 5 years ago
parent
commit
77a1fd79d4
2 changed files with 4 additions and 2 deletions
  1. +2
    -1
      Cargo.toml
  2. +2
    -1
      src/lib.rs

+ 2
- 1
Cargo.toml View File

@@ -35,7 +35,7 @@ decimal = { path = "../decimal", version = "2" }

#windows = { path = "../windows", version = "0.2" }
money = { path = "../money", version = "0.3" }
pubsub = { path = "../pubsub" }
pubsub = { path = "../pubsub", optional = true }

[features]
default = ["inlines"]
@@ -51,3 +51,4 @@ no-influx-buffer = []
disable-short-uuid = []
warnings = []
inlines = []
latency = ["pubsub"]

+ 2
- 1
src/lib.rs View File

@@ -26,7 +26,7 @@ extern crate num;
extern crate dirs;
#[cfg(feature = "zmq")]
extern crate zmq;
#[cfg(feature = "latency")]
extern crate pubsub as pub_sub;

use chrono::{DateTime, Utc, TimeZone as ChronoTZ};
@@ -43,6 +43,7 @@ use uuid::Uuid;
pub mod influx;
#[cfg(feature = "warnings")]
pub mod warnings;
#[cfg(feature = "latency")]
pub mod latency;
pub mod hist;



Loading…
Cancel
Save