Update to latest beta

This commit is contained in:
Aode (lion) 2021-12-12 14:28:34 -06:00
parent 8667701c74
commit 13fbb3d12a
8 changed files with 14 additions and 14 deletions

View file

@ -1,7 +1,7 @@
[package] [package]
name = "http-signature-normalization-actix" name = "http-signature-normalization-actix"
description = "An HTTP Signatures library that leaves the signing to you" description = "An HTTP Signatures library that leaves the signing to you"
version = "0.5.0-beta.12" version = "0.5.0-beta.13"
authors = ["asonix <asonix@asonix.dog>"] authors = ["asonix <asonix@asonix.dog>"]
license-file = "LICENSE" license-file = "LICENSE"
readme = "README.md" readme = "README.md"
@ -45,7 +45,7 @@ tracing-futures = "0.2"
[dev-dependencies] [dev-dependencies]
actix-rt = "2.3.0" actix-rt = "2.3.0"
tracing-actix-web = { version = "0.5.0-beta.3" } tracing-actix-web = { version = "0.5.0-beta.3", git = "https://github.com/asonix/tracing-actix-web", branch = "riley/beta.14" }
tracing-subscriber = { version = "0.3", features = ["env-filter", "fmt"] } tracing-subscriber = { version = "0.3", features = ["env-filter", "fmt"] }
[package.metadata.docs.rs] [package.metadata.docs.rs]

View file

@ -1,8 +1,6 @@
//! Types for signing requests with Actix Web //! Types for signing requests with Actix Web
use actix_http::http::header::{ use actix_http::header::{HeaderMap, HeaderName, HeaderValue, InvalidHeaderValue, AUTHORIZATION};
HeaderMap, HeaderName, HeaderValue, InvalidHeaderValue, AUTHORIZATION,
};
/// A thin wrapper around the underlying library's Signed type /// A thin wrapper around the underlying library's Signed type
/// ///

View file

@ -2,7 +2,8 @@
use super::{DigestPart, DigestVerify}; use super::{DigestPart, DigestVerify};
use actix_web::{ use actix_web::{
dev::{MessageBody, Payload, Service, ServiceRequest, ServiceResponse, Transform}, body::MessageBody,
dev::{Payload, Service, ServiceRequest, ServiceResponse, Transform},
error::PayloadError, error::PayloadError,
http::{header::HeaderValue, StatusCode}, http::{header::HeaderValue, StatusCode},
web, FromRequest, HttpMessage, HttpRequest, HttpResponse, ResponseError, web, FromRequest, HttpMessage, HttpRequest, HttpResponse, ResponseError,

View file

@ -27,7 +27,7 @@ pub trait DigestName {
#[cfg(feature = "client")] #[cfg(feature = "client")]
mod client { mod client {
use crate::{Config, PrepareSignError, Sign}; use crate::{Config, PrepareSignError, Sign};
use actix_http::{error::BlockingError, http::header::InvalidHeaderValue}; use actix_http::{error::BlockingError, header::InvalidHeaderValue};
use awc::{ClientRequest, SendClientRequest}; use awc::{ClientRequest, SendClientRequest};
use std::{fmt::Display, future::Future, pin::Pin}; use std::{fmt::Display, future::Future, pin::Pin};

View file

@ -1,4 +1,4 @@
use actix_http::{error::BlockingError, http::header::InvalidHeaderValue}; use actix_http::{error::BlockingError, header::InvalidHeaderValue};
use awc::ClientRequest; use awc::ClientRequest;
use std::{fmt::Display, future::Future, pin::Pin}; use std::{fmt::Display, future::Future, pin::Pin};

View file

@ -162,7 +162,7 @@
use chrono::Duration; use chrono::Duration;
#[cfg(any(feature = "client", feature = "server"))] #[cfg(any(feature = "client", feature = "server"))]
use actix_http::http::{ use actix_http::{
header::{HeaderMap, ToStrError}, header::{HeaderMap, ToStrError},
uri::PathAndQuery, uri::PathAndQuery,
Method, Method,
@ -206,7 +206,7 @@ pub mod prelude {
DigestPart, DigestVerify, DigestPart, DigestVerify,
}; };
pub use actix_http::http::header::{InvalidHeaderValue, ToStrError}; pub use actix_http::header::{InvalidHeaderValue, ToStrError};
} }
#[cfg(feature = "server")] #[cfg(feature = "server")]
@ -242,7 +242,7 @@ mod client {
use super::{Config, RequiredError}; use super::{Config, RequiredError};
use actix_http::{ use actix_http::{
error::BlockingError, error::BlockingError,
http::header::{InvalidHeaderValue, ToStrError}, header::{InvalidHeaderValue, ToStrError},
}; };
use std::{fmt::Display, future::Future, pin::Pin}; use std::{fmt::Display, future::Future, pin::Pin};
@ -305,7 +305,7 @@ mod client {
#[cfg(feature = "server")] #[cfg(feature = "server")]
mod server { mod server {
use super::RequiredError; use super::RequiredError;
use actix_http::http::header::ToStrError; use actix_http::header::ToStrError;
use std::future::Future; use std::future::Future;
/// A trait for verifying signatures /// A trait for verifying signatures

View file

@ -2,7 +2,8 @@
use crate::{Config, PrepareVerifyError, SignatureVerify}; use crate::{Config, PrepareVerifyError, SignatureVerify};
use actix_web::{ use actix_web::{
dev::{MessageBody, Payload, Service, ServiceRequest, ServiceResponse, Transform}, body::MessageBody,
dev::{Payload, Service, ServiceRequest, ServiceResponse, Transform},
http::StatusCode, http::StatusCode,
Error, FromRequest, HttpMessage, HttpRequest, HttpResponse, ResponseError, Error, FromRequest, HttpMessage, HttpRequest, HttpResponse, ResponseError,
}; };

View file

@ -1,4 +1,4 @@
use actix_http::{error::BlockingError, http::header::InvalidHeaderValue}; use actix_http::{error::BlockingError, header::InvalidHeaderValue};
use awc::ClientRequest; use awc::ClientRequest;
use std::{fmt::Display, future::Future, pin::Pin}; use std::{fmt::Display, future::Future, pin::Pin};