changeset 211:403ea731228b

remove multi-thread feature
author Daniel Boline <ddboline@gmail.com>
date Mon, 22 Feb 2021 17:32:04 -0500
parents 3f7f119b8a26
children da65a19d5883
files async-google-apis-common/Cargo.toml async-google-apis-common/src/lib.rs
diffstat 2 files changed, 0 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/async-google-apis-common/Cargo.toml	Mon Feb 22 16:41:01 2021 -0500
+++ b/async-google-apis-common/Cargo.toml	Mon Feb 22 17:32:04 2021 -0500
@@ -27,7 +27,3 @@
 tokio = { version = "1.0", features = ["fs"] }
 tokio-stream = "^0.1"
 yup-oauth2 = "~5"
-
-[features]
-default = ["multi-thread"]
-multi-thread = []
--- a/async-google-apis-common/src/lib.rs	Mon Feb 22 16:41:01 2021 -0500
+++ b/async-google-apis-common/src/lib.rs	Mon Feb 22 17:32:04 2021 -0500
@@ -29,16 +29,7 @@
 pub type TlsClient = hyper::Client<TlsConnr, hyper::Body>;
 pub type TlsConnr = hyper_rustls::HttpsConnector<hyper::client::HttpConnector>;
 
-#[cfg(feature = "multi-thread")]
 pub trait DerefAuth: std::ops::Deref<Target=Authenticator> + Send + Sync {}
 
-#[cfg(feature = "multi-thread")]
 impl<T> DerefAuth for T
 where T: std::ops::Deref<Target=Authenticator> + Send + Sync {}
-
-#[cfg(not(feature = "multi-thread"))]
-pub trait DerefAuth: std::ops::Deref<Target=Authenticator> {}
-
-#[cfg(not(feature = "multi-thread"))]
-impl<T> DerefAuth for T
-where T: std::ops::Deref<Target=Authenticator> {}