diff --git a/Cargo.toml b/Cargo.toml index 9dac4be..cb407e3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "actix-webfinger" description = "Types and helpers to create and fetch Webfinger resources" -version = "0.4.0-beta.2" +version = "0.4.0-beta.3" license = "GPL-3.0" authors = ["asonix "] repository = "https://git.asonix.dog/Aardwolf/actix-webfinger" @@ -9,14 +9,13 @@ readme = "README.md" edition = "2018" [dependencies] -actix-rt = "2.0.2" +actix-rt = "2.1.0" actix-web = { version = "4.0.0-beta.3", default-features = false } +awc = { version = "3.0.0-beta.3", default-features = false } serde = "1.0" serde_derive = "1.0" thiserror = "1.0" [dev-dependencies] -actix-rt = "2.0.2" -actix-web = { version = "4.0.0-beta.3", features = ["openssl"] } pretty_env_logger = "0.4" serde_json = "1.0" diff --git a/examples/fetch.rs b/examples/fetch.rs index 8939d3e..626ad7a 100644 --- a/examples/fetch.rs +++ b/examples/fetch.rs @@ -1,5 +1,5 @@ -use actix_web::client::Client; use actix_webfinger::Webfinger; +use awc::Client; use std::error::Error; #[actix_rt::main] diff --git a/src/lib.rs b/src/lib.rs index 405b21f..1679b05 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -22,8 +22,8 @@ //! //! #### Client Example //! ```rust,ignore -//! use actix_web::client::Client; //! use actix_webfinger::Webfinger; +//! use awc::Client; //! use std::error::Error; //! //! #[actix_rt::main] @@ -98,7 +98,6 @@ //! //! You should have received a copy of the GNU General Public License along with Actix Webfinger. If not, see [http://www.gnu.org/licenses/](http://www.gnu.org/licenses/). use actix_web::{ - client::Client, dev::RequestHead, error::ResponseError, guard::Guard, @@ -106,6 +105,7 @@ use actix_web::{ web::{get, Query}, FromRequest, HttpResponse, Resource, }; +use awc::Client; use serde_derive::{Deserialize, Serialize}; use std::{future::Future, pin::Pin};