@@ -35,7 +35,7 @@ decimal = { path = "../decimal", version = "2" } | |||||
#windows = { path = "../windows", version = "0.2" } | #windows = { path = "../windows", version = "0.2" } | ||||
money = { path = "../money", version = "0.3" } | money = { path = "../money", version = "0.3" } | ||||
pubsub = { path = "../pubsub" } | |||||
pubsub = { path = "../pubsub", optional = true } | |||||
[features] | [features] | ||||
default = ["inlines"] | default = ["inlines"] | ||||
@@ -51,3 +51,4 @@ no-influx-buffer = [] | |||||
disable-short-uuid = [] | disable-short-uuid = [] | ||||
warnings = [] | warnings = [] | ||||
inlines = [] | inlines = [] | ||||
latency = ["pubsub"] |
@@ -26,7 +26,7 @@ extern crate num; | |||||
extern crate dirs; | extern crate dirs; | ||||
#[cfg(feature = "zmq")] | #[cfg(feature = "zmq")] | ||||
extern crate zmq; | extern crate zmq; | ||||
#[cfg(feature = "latency")] | |||||
extern crate pubsub as pub_sub; | extern crate pubsub as pub_sub; | ||||
use chrono::{DateTime, Utc, TimeZone as ChronoTZ}; | use chrono::{DateTime, Utc, TimeZone as ChronoTZ}; | ||||
@@ -43,6 +43,7 @@ use uuid::Uuid; | |||||
pub mod influx; | pub mod influx; | ||||
#[cfg(feature = "warnings")] | #[cfg(feature = "warnings")] | ||||
pub mod warnings; | pub mod warnings; | ||||
#[cfg(feature = "latency")] | |||||
pub mod latency; | pub mod latency; | ||||
pub mod hist; | pub mod hist; | ||||