From 5940731ef0b30f64c9ff95b36adad02e9a0b62fe Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Wed, 15 Jan 2020 11:58:06 -0800 Subject: [PATCH] Fix actix-service 1.0.3 compatibility --- actix-connect/CHANGES.md | 4 ++++ actix-connect/Cargo.toml | 9 ++++----- actix-connect/src/lib.rs | 8 ++++---- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/actix-connect/CHANGES.md b/actix-connect/CHANGES.md index 054f8209..f04b4893 100644 --- a/actix-connect/CHANGES.md +++ b/actix-connect/CHANGES.md @@ -1,5 +1,9 @@ # Changes +## [1.0.2] - 2020-01-15 + +* Fix actix-service 1.0.3 compatibility + ## [1.0.1] - 2019-12-15 * Fix trust-dns-resolver compilation diff --git a/actix-connect/Cargo.toml b/actix-connect/Cargo.toml index ff6acd54..385ea984 100644 --- a/actix-connect/Cargo.toml +++ b/actix-connect/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "actix-connect" -version = "1.0.1" +version = "1.0.2" authors = ["Nikolay Kim "] description = "Actix connect - tcp connector service" keywords = ["network", "framework", "async", "futures"] @@ -10,7 +10,6 @@ documentation = "https://docs.rs/actix-connect/" categories = ["network-programming", "asynchronous"] license = "MIT/Apache-2.0" edition = "2018" -workspace = ".." [package.metadata.docs.rs] features = ["openssl", "rustls", "uri"] @@ -32,12 +31,12 @@ rustls = ["rust-tls", "tokio-rustls", "webpki"] uri = ["http"] [dependencies] -actix-service = "1.0.0" +actix-service = "1.0.3" actix-codec = "0.2.0" -actix-utils = "1.0.3" +actix-utils = "1.0.6" actix-rt = "1.0.0" derive_more = "0.99.2" -either = "1.5.2" +either = "1.5.3" futures = "0.3.1" http = { version = "0.2.0", optional = true } log = "0.4" diff --git a/actix-connect/src/lib.rs b/actix-connect/src/lib.rs index 89b51b61..5de0b153 100644 --- a/actix-connect/src/lib.rs +++ b/actix-connect/src/lib.rs @@ -72,7 +72,7 @@ pub fn start_default_resolver() -> AsyncResolver { } /// Create tcp connector service -pub fn new_connector( +pub fn new_connector( resolver: AsyncResolver, ) -> impl Service, Response = Connection, Error = ConnectError> + Clone { @@ -80,7 +80,7 @@ pub fn new_connector( } /// Create tcp connector service -pub fn new_connector_factory( +pub fn new_connector_factory( resolver: AsyncResolver, ) -> impl ServiceFactory< Config = (), @@ -93,14 +93,14 @@ pub fn new_connector_factory( } /// Create connector service with default parameters -pub fn default_connector( +pub fn default_connector( ) -> impl Service, Response = Connection, Error = ConnectError> + Clone { pipeline(Resolver::default()).and_then(TcpConnector::new()) } /// Create connector service factory with default parameters -pub fn default_connector_factory() -> impl ServiceFactory< +pub fn default_connector_factory() -> impl ServiceFactory< Config = (), Request = Connect, Response = Connection,