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