chore: prepare 0.2.0-alpha.2 release (#1465)

This commit is contained in:
Carl Lerche
2019-08-17 23:34:25 -07:00
committed by GitHub
parent 9f0daad5ac
commit 88b4ec84d7
35 changed files with 260 additions and 120 deletions
+5
View File
@@ -1,3 +1,8 @@
# 0.2.0-alpha.2 (August 17, 2019)
### Changed
- Update `futures` dependency to 0.3.0-alpha.18.
# 0.2.0-alpha.1 (August 8, 2019)
- Initial release
+7 -7
View File
@@ -7,24 +7,24 @@ name = "tokio-test"
# - Cargo.toml
# - Update CHANGELOG.md.
# - Create "v0.2.x" git tag.
version = "0.2.0-alpha.1"
version = "0.2.0-alpha.2"
edition = "2018"
authors = ["Tokio Contributors <[email protected]>"]
license = "MIT"
repository = "https://github.com/tokio-rs/tokio"
homepage = "https://tokio.rs"
documentation = "https://docs.rs/tokio-test/0.2.0-alpha.1/tokio_test"
documentation = "https://docs.rs/tokio-test/0.2.0-alpha.2/tokio_test"
description = """
Testing utilities for Tokio- and futures-based code
"""
categories = ["asynchronous", "testing"]
[dependencies]
tokio = { version = "=0.2.0-alpha.1", path = "../tokio" }
tokio-executor = { version = "=0.2.0-alpha.1", path = "../tokio-executor" }
tokio-io = { version = "=0.2.0-alpha.1", path = "../tokio-io" }
tokio-sync = { version = "=0.2.0-alpha.1", path = "../tokio-sync" }
tokio-timer = { version = "=0.3.0-alpha.1", path = "../tokio-timer" }
tokio = { version = "=0.2.0-alpha.2", path = "../tokio" }
tokio-executor = { version = "=0.2.0-alpha.2", path = "../tokio-executor" }
tokio-io = { version = "=0.2.0-alpha.2", path = "../tokio-io" }
tokio-sync = { version = "=0.2.0-alpha.2", path = "../tokio-sync" }
tokio-timer = { version = "=0.3.0-alpha.2", path = "../tokio-timer" }
futures-core-preview = "=0.3.0-alpha.18"
pin-convert = "0.1.0"
+2 -2
View File
@@ -1,4 +1,4 @@
#![doc(html_root_url = "https://docs.rs/tokio-test/0.2.0-alpha.1")]
#![doc(html_root_url = "https://docs.rs/tokio-test/0.2.0-alpha.2")]
#![warn(
missing_debug_implementations,
missing_docs,
@@ -20,7 +20,7 @@ pub mod task;
/// For more information, see the documentation for
/// [`tokio::runtime::current_thread::Runtime::block_on`][runtime-block-on].
///
/// [runtime-block-on]: https://docs.rs/tokio/0.2.0-alpha.1/tokio/runtime/current_thread/struct.Runtime.html#method.block_on
/// [runtime-block-on]: https://docs.rs/tokio/0.2.0-alpha.2/tokio/runtime/current_thread/struct.Runtime.html#method.block_on
pub fn block_on<F: std::future::Future>(future: F) -> F::Output {
let mut rt = tokio::runtime::current_thread::Runtime::new().unwrap();
rt.block_on(future)