From d0b27ee7e6d9ff336d2a1d83bfd3b38db8051c79 Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Tue, 19 May 2020 14:08:08 +0900 Subject: [PATCH] testing: Bump up to 1.0.1 --- actix-testing/CHANGES.md | 4 +++- actix-testing/Cargo.toml | 3 ++- actix-testing/src/lib.rs | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/actix-testing/CHANGES.md b/actix-testing/CHANGES.md index 96328c16..86a79ed7 100644 --- a/actix-testing/CHANGES.md +++ b/actix-testing/CHANGES.md @@ -1,9 +1,11 @@ # Changes -## [Unreleased] +## [1.0.1] - 2020-05-19 * Replace deprecated `net2` crate with `socket2` +* Remove unused `futures` dependency + ## [1.0.0] - 2019-12-11 * Update actix-server to 1.0.0 diff --git a/actix-testing/Cargo.toml b/actix-testing/Cargo.toml index f30f973b..8646440d 100644 --- a/actix-testing/Cargo.toml +++ b/actix-testing/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "actix-testing" -version = "1.0.0" +version = "1.0.1" authors = ["Nikolay Kim "] description = "Actix testing utils" keywords = ["network", "framework", "async", "futures"] @@ -11,6 +11,7 @@ categories = ["network-programming", "asynchronous"] license = "MIT/Apache-2.0" edition = "2018" workspace = ".." +readme = "README.md" [lib] name = "actix_testing" diff --git a/actix-testing/src/lib.rs b/actix-testing/src/lib.rs index c9f6799f..5b0113e1 100644 --- a/actix-testing/src/lib.rs +++ b/actix-testing/src/lib.rs @@ -110,7 +110,8 @@ impl TestServer { /// Get firat available unused local address pub fn unused_addr() -> net::SocketAddr { let addr: net::SocketAddr = "127.0.0.1:0".parse().unwrap(); - let socket = Socket::new(Domain::ipv4(), Type::stream(), Some(Protocol::tcp())).unwrap(); + let socket = + Socket::new(Domain::ipv4(), Type::stream(), Some(Protocol::tcp())).unwrap(); socket.bind(&addr.into()).unwrap(); socket.set_reuse_address(true).unwrap(); let tcp = socket.into_tcp_listener();