mirror of
https://github.com/actix/actix-web.git
synced 2024-11-25 19:11:10 +00:00
prepare actix-router release 0.5.0-beta.4
This commit is contained in:
parent
86df295ee2
commit
05336269f9
6 changed files with 10 additions and 6 deletions
|
@ -78,7 +78,7 @@ actix-utils = "3.0.0"
|
||||||
actix-tls = { version = "3.0.0", default-features = false, optional = true }
|
actix-tls = { version = "3.0.0", default-features = false, optional = true }
|
||||||
|
|
||||||
actix-http = "3.0.0-beta.17"
|
actix-http = "3.0.0-beta.17"
|
||||||
actix-router = "0.5.0-beta.3"
|
actix-router = "0.5.0-beta.4"
|
||||||
actix-web-codegen = "0.5.0-beta.6"
|
actix-web-codegen = "0.5.0-beta.6"
|
||||||
|
|
||||||
ahash = "0.7"
|
ahash = "0.7"
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
# Changes
|
# Changes
|
||||||
|
|
||||||
## Unreleased - 2021-xx-xx
|
## Unreleased - 2021-xx-xx
|
||||||
|
|
||||||
|
|
||||||
|
## 0.5.0-beta.4 - 2022-01-04
|
||||||
- `PathDeserializer` now decodes all percent encoded characters in dynamic segments. [#2566]
|
- `PathDeserializer` now decodes all percent encoded characters in dynamic segments. [#2566]
|
||||||
- Minimum supported Rust version (MSRV) is now 1.54.
|
- Minimum supported Rust version (MSRV) is now 1.54.
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "actix-router"
|
name = "actix-router"
|
||||||
version = "0.5.0-beta.3"
|
version = "0.5.0-beta.4"
|
||||||
authors = [
|
authors = [
|
||||||
"Nikolay Kim <fafhrd91@gmail.com>",
|
"Nikolay Kim <fafhrd91@gmail.com>",
|
||||||
"Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com>",
|
"Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com>",
|
||||||
|
|
|
@ -15,10 +15,10 @@ edition = "2018"
|
||||||
proc-macro = true
|
proc-macro = true
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
actix-router = "0.5.0-beta.4"
|
||||||
|
proc-macro2 = "1"
|
||||||
quote = "1"
|
quote = "1"
|
||||||
syn = { version = "1", features = ["full", "parsing"] }
|
syn = { version = "1", features = ["full", "parsing"] }
|
||||||
proc-macro2 = "1"
|
|
||||||
actix-router = "0.5.0-beta.3"
|
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
actix-macros = "0.2.3"
|
actix-macros = "0.2.3"
|
||||||
|
|
|
@ -15,6 +15,7 @@ digraph {
|
||||||
|
|
||||||
"actix-web" -> { "actix-web-codegen" "actix-http" "actix-router" }
|
"actix-web" -> { "actix-web-codegen" "actix-http" "actix-router" }
|
||||||
"awc" -> { "actix-http" }
|
"awc" -> { "actix-http" }
|
||||||
|
"actix-web-codegen" -> { "actix-router" }
|
||||||
"actix-web-actors" -> { "actix" "actix-web" "actix-http" }
|
"actix-web-actors" -> { "actix" "actix-web" "actix-http" }
|
||||||
"actix-multipart" -> { "actix-web" }
|
"actix-multipart" -> { "actix-web" }
|
||||||
"actix-files" -> { "actix-web" }
|
"actix-files" -> { "actix-web" }
|
||||||
|
|
|
@ -11,7 +11,7 @@ use std::{
|
||||||
};
|
};
|
||||||
|
|
||||||
use bytes::BytesMut;
|
use bytes::BytesMut;
|
||||||
use futures_core::{ready, stream::Stream as _};
|
use futures_core::{ready, Stream as _};
|
||||||
use serde::{de::DeserializeOwned, Serialize};
|
use serde::{de::DeserializeOwned, Serialize};
|
||||||
|
|
||||||
use actix_http::Payload;
|
use actix_http::Payload;
|
||||||
|
@ -515,7 +515,7 @@ mod tests {
|
||||||
.to_http_parts();
|
.to_http_parts();
|
||||||
|
|
||||||
let s = Json::<MyObject>::from_request(&req, &mut pl).await;
|
let s = Json::<MyObject>::from_request(&req, &mut pl).await;
|
||||||
let resp = HttpResponse::from_error(s.err().unwrap());
|
let resp = HttpResponse::from_error(s.unwrap_err());
|
||||||
assert_eq!(resp.status(), StatusCode::BAD_REQUEST);
|
assert_eq!(resp.status(), StatusCode::BAD_REQUEST);
|
||||||
|
|
||||||
let body = body::to_bytes(resp.into_body()).await.unwrap();
|
let body = body::to_bytes(resp.into_body()).await.unwrap();
|
||||||
|
|
Loading…
Reference in a new issue