1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-27 17:52:56 +01:00

prep actix-framed release

This commit is contained in:
Nikolay Kim 2019-12-25 20:17:22 +04:00
parent f86ce0390e
commit 7b3c99b933
3 changed files with 12 additions and 9 deletions

View File

@ -13,7 +13,6 @@ categories = ["network-programming", "asynchronous",
"web-programming::websocket"]
license = "MIT/Apache-2.0"
edition = "2018"
workspace =".."
[lib]
name = "actix_framed"
@ -22,7 +21,7 @@ path = "src/lib.rs"
[dependencies]
actix-codec = "0.2.0"
actix-service = "1.0.1"
actix-router = "0.2.0"
actix-router = "0.2.1"
actix-rt = "1.0.0"
actix-http = "1.0.1"

View File

@ -1,5 +1,9 @@
# Changes
## [0.3.0] - 2019-12-25
* Migrate to actix-http 1.0
## [0.2.1] - 2019-07-20
* Remove unneeded actix-utils dependency

View File

@ -663,12 +663,12 @@ mod tests {
#[actix_rt::test]
async fn test_pattern() {
let mut srv =
init_service(App::new().service(web::resource(["/test", "/test2"]).to(|| {
async {
Ok::<_, Error>(HttpResponse::Ok())
}
})))
let mut srv = init_service(
App::new().service(
web::resource(["/test", "/test2"])
.to(|| async { Ok::<_, Error>(HttpResponse::Ok()) }),
),
)
.await;
let req = TestRequest::with_uri("/test").to_request();
let resp = call_service(&mut srv, req).await;