mirror of
https://git.asonix.dog/asonix/http-signature-normalization.git
synced 2024-11-24 18:31:01 +00:00
Update to latest beta
This commit is contained in:
parent
8667701c74
commit
13fbb3d12a
8 changed files with 14 additions and 14 deletions
|
@ -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]
|
||||||
|
|
|
@ -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
|
||||||
///
|
///
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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};
|
||||||
|
|
||||||
|
|
|
@ -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};
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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,
|
||||||
};
|
};
|
||||||
|
|
|
@ -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};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue