factom_api/lib.rs
1#[cfg(feature = "default")]
2pub extern crate tokio;
3
4#[cfg(feature = "default")]
5pub use tokio::prelude::*;
6#[cfg(feature = "default")]
7pub use tokio::runtime::Runtime;
8
9pub mod constants;
10pub mod types;
11
12#[cfg(feature = "default")]
13use futures::prelude::*;
14use hyper::{client::HttpConnector, Client};
15use hyper_tls::HttpsConnector;
16use std::rc::Rc;
17
18
19/// Reference counted Hyper client with custom https connector
20pub type HttpsClient = Rc<Client<HttpsConnector<HttpConnector>, hyper::Body>>;