Skip to content

Commit

Permalink
update migration
Browse files Browse the repository at this point in the history
  • Loading branch information
fafhrd91 committed Dec 22, 2019
1 parent 6a0cd2d commit 1c75e68
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ actix-rt = "1.0.0"
actix-server = "1.0.0"
actix-testing = "1.0.0"
actix-macros = "0.1.0"
actix-threadpool = "0.3.0"
actix-threadpool = "0.3.1"
actix-tls = "1.0.0"

actix-web-codegen = "0.2.0"
actix-http = "1.0.0"
actix-http = "1.0.1"
awc = { version = "1.0.1", default-features = false }

bytes = "0.5.3"
Expand All @@ -93,7 +93,7 @@ open-ssl = { version="0.10", package = "openssl", optional = true }
rust-tls = { version = "0.16.0", package = "rustls", optional = true }

[dev-dependencies]
actix = "0.9.0-alpha.2"
actix = "0.9.0"
rand = "0.7"
env_logger = "0.6"
serde_derive = "1.0"
Expand Down
4 changes: 2 additions & 2 deletions MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
* Extractor configuration must be registered with `App::app_data()` instead of `App::data()`

* Sync handlers has been removed. `.to_async()` method has been renamed to `.to()`

replace `fn` with `async fn` to convert sync handler to async

* `TestServer::new()` renamed to `TestServer::start()`
* `actix_http_test::TestServer` moved to `actix_web::test` module. To start
test server use `test::start()` or `test_start_with_config()` methods


## 1.0.1
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ async fn index(info: web::Path<(u32, String)>) -> impl Responder {
async fn main() -> std::io::Result<()> {
HttpServer::new(|| App::new().service(index))
.bind("127.0.0.1:8080")?
.start()
.run()
.await
}
```
Expand Down

0 comments on commit 1c75e68

Please sign in to comment.