diff --git a/Cargo.toml b/Cargo.toml index 7ffaab75b..04a559f1f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" @@ -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" diff --git a/MIGRATION.md b/MIGRATION.md index 0ced4493d..000c5b46b 100644 --- a/MIGRATION.md +++ b/MIGRATION.md @@ -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 diff --git a/README.md b/README.md index 579e87e87..99f09b0fa 100644 --- a/README.md +++ b/README.md @@ -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 } ```