Update to latest actix betas
This commit is contained in:
parent
778379c585
commit
5849e8ae5e
|
@ -1,7 +1,7 @@
|
||||||
[package]
|
[package]
|
||||||
name = "actix-webfinger"
|
name = "actix-webfinger"
|
||||||
description = "Types and helpers to create and fetch Webfinger resources"
|
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"
|
license = "GPL-3.0"
|
||||||
authors = ["asonix <asonix@asonix.dog>"]
|
authors = ["asonix <asonix@asonix.dog>"]
|
||||||
repository = "https://git.asonix.dog/Aardwolf/actix-webfinger"
|
repository = "https://git.asonix.dog/Aardwolf/actix-webfinger"
|
||||||
|
@ -9,14 +9,13 @@ readme = "README.md"
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
actix-rt = "2.0.2"
|
actix-rt = "2.1.0"
|
||||||
actix-web = { version = "4.0.0-beta.3", default-features = false }
|
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 = "1.0"
|
||||||
serde_derive = "1.0"
|
serde_derive = "1.0"
|
||||||
thiserror = "1.0"
|
thiserror = "1.0"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
actix-rt = "2.0.2"
|
|
||||||
actix-web = { version = "4.0.0-beta.3", features = ["openssl"] }
|
|
||||||
pretty_env_logger = "0.4"
|
pretty_env_logger = "0.4"
|
||||||
serde_json = "1.0"
|
serde_json = "1.0"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
use actix_web::client::Client;
|
|
||||||
use actix_webfinger::Webfinger;
|
use actix_webfinger::Webfinger;
|
||||||
|
use awc::Client;
|
||||||
use std::error::Error;
|
use std::error::Error;
|
||||||
|
|
||||||
#[actix_rt::main]
|
#[actix_rt::main]
|
||||||
|
|
|
@ -22,8 +22,8 @@
|
||||||
//!
|
//!
|
||||||
//! #### Client Example
|
//! #### Client Example
|
||||||
//! ```rust,ignore
|
//! ```rust,ignore
|
||||||
//! use actix_web::client::Client;
|
|
||||||
//! use actix_webfinger::Webfinger;
|
//! use actix_webfinger::Webfinger;
|
||||||
|
//! use awc::Client;
|
||||||
//! use std::error::Error;
|
//! use std::error::Error;
|
||||||
//!
|
//!
|
||||||
//! #[actix_rt::main]
|
//! #[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/).
|
//! 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::{
|
use actix_web::{
|
||||||
client::Client,
|
|
||||||
dev::RequestHead,
|
dev::RequestHead,
|
||||||
error::ResponseError,
|
error::ResponseError,
|
||||||
guard::Guard,
|
guard::Guard,
|
||||||
|
@ -106,6 +105,7 @@ use actix_web::{
|
||||||
web::{get, Query},
|
web::{get, Query},
|
||||||
FromRequest, HttpResponse, Resource,
|
FromRequest, HttpResponse, Resource,
|
||||||
};
|
};
|
||||||
|
use awc::Client;
|
||||||
use serde_derive::{Deserialize, Serialize};
|
use serde_derive::{Deserialize, Serialize};
|
||||||
use std::{future::Future, pin::Pin};
|
use std::{future::Future, pin::Pin};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue