extern crate hcid;
extern crate lib3h_crypto_api;
extern crate lib3h_protocol;
extern crate native_tls;
extern crate tungstenite;
extern crate url_serde;
#[macro_use]
extern crate failure;
#[macro_use]
extern crate lazy_static;
#[cfg(test)]
#[macro_use]
extern crate unwrap_to;
extern crate serde;
#[macro_use]
extern crate serde_derive;
extern crate rmp_serde;
#[macro_use]
extern crate log;
pub mod dht;
pub mod engine;
pub mod gateway;
pub mod transport;
pub mod transport_wss;
#[cfg(test)]
pub mod tests {
pub fn enable_logging_for_test(enable: bool) {
if std::env::var("RUST_LOG").is_err() {
std::env::set_var("RUST_LOG", "debug");
}
let _ = env_logger::builder()
.default_format_timestamp(false)
.default_format_module_path(false)
.is_test(enable)
.try_init();
}
}