summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Lerche <me@carllerche.com>2019-11-26 09:17:27 -0800
committerGitHub <noreply@github.com>2019-11-26 09:17:27 -0800
commita81e2722a43ff2748ac99c1a65cd50fd00274db9 (patch)
treef31ee7f176a2d7bbf9e9fd298082f99ec8048e0b
parent4ddc4371709562d2bd1d0373f0555f7c31926e53 (diff)
chore: prepare v0.2.0 release (#1822)
-rw-r--r--examples/Cargo.toml6
-rw-r--r--tokio-macros/CHANGELOG.md3
-rw-r--r--tokio-macros/Cargo.toml6
-rw-r--r--tokio-macros/src/lib.rs2
-rw-r--r--tokio-test/CHANGELOG.md25
-rw-r--r--tokio-test/Cargo.toml10
-rw-r--r--tokio-test/src/lib.rs2
-rw-r--r--tokio-tls/CHANGELOG.md4
-rw-r--r--tokio-tls/Cargo.toml6
-rw-r--r--tokio-tls/src/lib.rs2
-rw-r--r--tokio-util/CHANGELOG.md3
-rw-r--r--tokio-util/Cargo.toml12
-rw-r--r--tokio-util/src/lib.rs2
-rw-r--r--tokio/CHANGELOG.md57
-rw-r--r--tokio/Cargo.toml10
-rw-r--r--tokio/README.md10
-rw-r--r--tokio/src/lib.rs2
17 files changed, 63 insertions, 99 deletions
diff --git a/examples/Cargo.toml b/examples/Cargo.toml
index 21b42ff7..643fd14c 100644
--- a/examples/Cargo.toml
+++ b/examples/Cargo.toml
@@ -5,10 +5,10 @@ publish = false
edition = "2018"
[dev-dependencies]
-tokio = { version = "=0.2.0-alpha.6", path = "../tokio", features = ["full"] }
-tokio-util = { version = "=0.2.0-alpha.6", path = "../tokio-util", features = ["full"] }
+tokio = { version = "0.2.0", path = "../tokio", features = ["full"] }
+tokio-util = { version = "0.2.0", path = "../tokio-util", features = ["full"] }
-bytes = { git = "https://github.com/tokio-rs/bytes" }
+bytes = "0.5.0"
futures = "0.3.0"
[[example]]
diff --git a/tokio-macros/CHANGELOG.md b/tokio-macros/CHANGELOG.md
new file mode 100644
index 00000000..48022e34
--- /dev/null
+++ b/tokio-macros/CHANGELOG.md
@@ -0,0 +1,3 @@
+# 0.2.0 (November 26, 2019)
+
+- Initial release
diff --git a/tokio-macros/Cargo.toml b/tokio-macros/Cargo.toml
index 7e8d9513..822da415 100644
--- a/tokio-macros/Cargo.toml
+++ b/tokio-macros/Cargo.toml
@@ -7,13 +7,13 @@ name = "tokio-macros"
# - Cargo.toml
# - Update CHANGELOG.md.
# - Create "v0.1.x" git tag.
-version = "0.2.0-alpha.6"
+version = "0.2.0"
edition = "2018"
authors = ["Tokio Contributors <team@tokio.rs>"]
license = "MIT"
repository = "https://github.com/tokio-rs/tokio"
homepage = "https://tokio.rs"
-documentation = "https://docs.rs/tokio-macros/0.2.0-alpha.6/tokio_macros"
+documentation = "https://docs.rs/tokio-macros/0.2.0/tokio_macros"
description = """
Tokio's proc macros.
"""
@@ -29,7 +29,7 @@ quote = "1"
syn = { version = "1.0.3", features = ["full"] }
[dev-dependencies]
-tokio = { version = "=0.2.0-alpha.6", path = "../tokio", features = ["full"] }
+tokio = { version = "0.2.0", path = "../tokio", features = ["full"] }
[package.metadata.docs.rs]
all-features = true
diff --git a/tokio-macros/src/lib.rs b/tokio-macros/src/lib.rs
index 65c8fdee..02e88cf7 100644
--- a/tokio-macros/src/lib.rs
+++ b/tokio-macros/src/lib.rs
@@ -1,4 +1,4 @@
-#![doc(html_root_url = "https://docs.rs/tokio-macros/0.2.0-alpha.6")]
+#![doc(html_root_url = "https://docs.rs/tokio-macros/0.2.0")]
#![warn(
missing_debug_implementations,
missing_docs,
diff --git a/tokio-test/CHANGELOG.md b/tokio-test/CHANGELOG.md
index 2cd50922..e5a0093d 100644
--- a/tokio-test/CHANGELOG.md
+++ b/tokio-test/CHANGELOG.md
@@ -1,26 +1,3 @@
-# 0.2.0-alpha.6 (September 30, 2019)
-
-- Move to `futures-*-preview 0.3.0-alpha.19`
-- Move to `pin-project 0.4`
-
-# 0.2.0-alpha.5 (September 19, 2019)
-
-- Track tokio release.
-
-# 0.2.0-alpha.4 (August 29, 2019)
-
-- Track tokio release.
-
-# 0.2.0-alpha.3 (August 28, 2019)
-
-### Changed
-- track changes to `tokio-timer` (#1471).
-
-# 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)
+# 0.2.0 (November 25, 2019)
- Initial release
diff --git a/tokio-test/Cargo.toml b/tokio-test/Cargo.toml
index cd0f4044..a2902dc5 100644
--- a/tokio-test/Cargo.toml
+++ b/tokio-test/Cargo.toml
@@ -7,26 +7,26 @@ name = "tokio-test"
# - Cargo.toml
# - Update CHANGELOG.md.
# - Create "v0.2.x" git tag.
-version = "0.2.0-alpha.6"
+version = "0.2.0"
edition = "2018"
authors = ["Tokio Contributors <team@tokio.rs>"]
license = "MIT"
repository = "https://github.com/tokio-rs/tokio"
homepage = "https://tokio.rs"
-documentation = "https://docs.rs/tokio-test/0.2.0-alpha.6/tokio_test"
+documentation = "https://docs.rs/tokio-test/0.2.0/tokio_test"
description = """
Testing utilities for Tokio- and futures-based code
"""
categories = ["asynchronous", "testing"]
[dependencies]
-tokio = { version = "=0.2.0-alpha.6", path = "../tokio", features = ["rt-core", "sync", "time", "test-util"] }
+tokio = { version = "0.2.0", path = "../tokio", features = ["rt-core", "sync", "time", "test-util"] }
-bytes = { git = "https://github.com/tokio-rs/bytes" }
+bytes = "0.5.0"
futures-core = "0.3.0"
[dev-dependencies]
-tokio = { version = "=0.2.0-alpha.6", path = "../tokio", features = ["full"] }
+tokio = { version = "0.2.0", path = "../tokio", features = ["full"] }
futures-util = "0.3.0"
[package.metadata.docs.rs]
diff --git a/tokio-test/src/lib.rs b/tokio-test/src/lib.rs
index d70a0c22..c109c148 100644
--- a/tokio-test/src/lib.rs
+++ b/tokio-test/src/lib.rs
@@ -1,4 +1,4 @@
-#![doc(html_root_url = "https://docs.rs/tokio-test/0.2.0-alpha.6")]
+#![doc(html_root_url = "https://docs.rs/tokio-test/0.2.0")]
#![warn(
missing_debug_implementations,
missing_docs,
diff --git a/tokio-tls/CHANGELOG.md b/tokio-tls/CHANGELOG.md
index ef1a8d4e..c1a3e3a7 100644
--- a/tokio-tls/CHANGELOG.md
+++ b/tokio-tls/CHANGELOG.md
@@ -1,3 +1,7 @@
+# 0.3.0 (November 26, 2019)
+
+- Updates for tokio 0.2 release
+
# 0.3.0-alpha.6 (September 30, 2019)
- Move to `futures-*-preview 0.3.0-alpha.19`
diff --git a/tokio-tls/Cargo.toml b/tokio-tls/Cargo.toml
index fee03cc6..1458be03 100644
--- a/tokio-tls/Cargo.toml
+++ b/tokio-tls/Cargo.toml
@@ -8,7 +8,7 @@ name = "tokio-tls"
# - README.md
# - Update CHANGELOG.md.
# - Create "v0.3.x" git tag.
-version = "0.3.0-alpha.6"
+version = "0.3.0"
edition = "2018"
authors = ["Tokio Contributors <team@tokio.rs>"]
license = "MIT"
@@ -26,10 +26,10 @@ travis-ci = { repository = "tokio-rs/tokio-tls" }
[dependencies]
native-tls = "0.2"
-tokio = { version = "=0.2.0-alpha.6", path = "../tokio" }
+tokio = { version = "0.2.0", path = "../tokio" }
[dev-dependencies]
-tokio = { version = "=0.2.0-alpha.6", path = "../tokio", features = ["macros", "stream", "rt-core", "io-util", "net"] }
+tokio = { version = "0.2.0", path = "../tokio", features = ["macros", "stream", "rt-core", "io-util", "net"] }
cfg-if = "0.1"
env_logger = { version = "0.6", default-features = false }
diff --git a/tokio-tls/src/lib.rs b/tokio-tls/src/lib.rs
index 3a36ceaa..27706509 100644
--- a/tokio-tls/src/lib.rs
+++ b/tokio-tls/src/lib.rs
@@ -1,4 +1,4 @@
-#![doc(html_root_url = "https://docs.rs/tokio-tls/0.3.0-alpha.6")]
+#![doc(html_root_url = "https://docs.rs/tokio-tls/0.3.0")]
#![warn(
missing_debug_implementations,
missing_docs,
diff --git a/tokio-util/CHANGELOG.md b/tokio-util/CHANGELOG.md
index e69de29b..48022e34 100644
--- a/tokio-util/CHANGELOG.md
+++ b/tokio-util/CHANGELOG.md
@@ -0,0 +1,3 @@
+# 0.2.0 (November 26, 2019)
+
+- Initial release
diff --git a/tokio-util/Cargo.toml b/tokio-util/Cargo.toml
index 356712c6..7f40660a 100644
--- a/tokio-util/Cargo.toml
+++ b/tokio-util/Cargo.toml
@@ -7,13 +7,13 @@ name = "tokio-util"
# - Cargo.toml
# - Update CHANGELOG.md.
# - Create "v0.2.x" git tag.
-version = "0.2.0-alpha.6"
+version = "0.2.0"
edition = "2018"
authors = ["Tokio Contributors <team@tokio.rs>"]
license = "MIT"
repository = "https://github.com/tokio-rs/tokio"
homepage = "https://tokio.rs"
-documentation = "https://docs.rs/tokio-util/0.2.0-alpha.6/tokio_util"
+documentation = "https://docs.rs/tokio-util/0.2.0/tokio_util"
description = """
Additional utilities for working with Tokio.
"""
@@ -30,17 +30,17 @@ codec = []
udp = ["tokio/udp"]
[dependencies]
-tokio = { version = "=0.2.0-alpha.6", path = "../tokio" }
+tokio = { version = "0.2.0", path = "../tokio" }
-bytes = { git = "https://github.com/tokio-rs/bytes" }
+bytes = "0.5.0"
futures-core = "0.3.0"
futures-sink = "0.3.0"
log = "0.4"
pin-project-lite = "0.1.1"
[dev-dependencies]
-tokio = { version = "=0.2.0-alpha.6", path = "../tokio", features = ["full"] }
-tokio-test = { version = "=0.2.0-alpha.6", path = "../tokio-test" }
+tokio = { version = "0.2.0", path = "../tokio", features = ["full"] }
+tokio-test = { version = "0.2.0", path = "../tokio-test" }
futures = "0.3.0"
diff --git a/tokio-util/src/lib.rs b/tokio-util/src/lib.rs
index d4ed5a7b..4cb54dfb 100644
--- a/tokio-util/src/lib.rs
+++ b/tokio-util/src/lib.rs
@@ -1,4 +1,4 @@
-#![doc(html_root_url = "https://docs.rs/tokio-util/0.2.0-alpha.6")]
+#![doc(html_root_url = "https://docs.rs/tokio-util/0.2.0")]
#![warn(
missing_debug_implementations,
missing_docs,
diff --git a/tokio/CHANGELOG.md b/tokio/CHANGELOG.md
index 5adc8a70..25efc0d8 100644
--- a/tokio/CHANGELOG.md
+++ b/tokio/CHANGELOG.md
@@ -1,46 +1,23 @@
-This changelog only applies to the `tokio` crate proper. Each sub crate
-maintains its own changelog tracking changes made in each respective sub crate.
+# 0.2.0 (November 26, 2019)
-# 0.2.0-alpha.6 (September 30, 2019)
-
-- Move to `futures-*-preview 0.3.0-alpha.19`
-- Move to `pin-project 0.4`
-
-# 0.2.0-alpha.5 (September 19, 2019)
-
-### Changed
-- rename `sleep` to `delay_for` (#1518).
-- rename `Lock` to `Mutex` and make it more like `std::sync::Mutex` (#1573).
-
-### Added
-- add generic `split` for `AsyncRead + AsyncWrite` (#1521).
-
-# 0.2.0-alpha.4 (August 29, 2019)
-
-- Track tokio-net release.
-
-# 0.2.0-alpha.3 (August 28, 2019)
+A major breaking change. Most implementation and APIs have changed one way or
+another. This changelog entry contains a highlight
### Changed
-- `delay(...)` instead of `Delay::new(...)` (#1440).
-- use `tracing` instead of `log` (#1454).
-
-### Added
-- re-export `tokio_net::signal::ctrl_c()` (#1491).
-
-# 0.2.0-alpha.2 (August 17, 2019)
-
-### Changed
-- Update `futures` dependency to 0.3.0-alpha.18.
-- Remove `reactor` module.
-
-### Added
-- Add `BufReader` / `BufWriter` (#1438).
-- Update `UdpFramed` to `std::future` (#1370).
-
-# 0.2.0-alpha.1 (August 8, 2019)
-
-- Switch to `async`, `await`, and `std::future`.
+- APIs are updated to use `async / await`.
+- most `tokio-*` crates are collapsed into this crate.
+- Scheduler is rewritten.
+- `tokio::spawn` returns a `JoinHandle`.
+- A single I/O / timer is used per runtime.
+- I/O driver uses a concurrent slab for allocating state.
+- components are made available via feature flag.
+- Use `bytes` 0.5
+- `tokio::codec` is moved to `tokio-util`.
+
+### Removed
+- Standalone `timer` and `net` drivers are removed, use `Runtime` instead
+- `current_thread` runtime is removed, use `tokio::runtime::Runtime` with
+ `basic_scheduler` instead.
# 0.1.21 (May 30, 2019)
diff --git a/tokio/Cargo.toml b/tokio/Cargo.toml
index 4f0161ae..ba6d1d7d 100644
--- a/tokio/Cargo.toml
+++ b/tokio/Cargo.toml
@@ -8,12 +8,12 @@ name = "tokio"
# - README.md
# - Update CHANGELOG.md.
# - Create "v0.2.x" git tag.
-version = "0.2.0-alpha.6"
+version = "0.2.0"
edition = "2018"
authors = ["Tokio Contributors <team@tokio.rs>"]
license = "MIT"
readme = "README.md"
-documentation = "https://docs.rs/tokio/0.2.0-alpha.6/tokio/"
+documentation = "https://docs.rs/tokio/0.2.0/tokio/"
repository = "https://github.com/tokio-rs/tokio"
homepage = "https://tokio.rs"
description = """
@@ -90,9 +90,9 @@ uds = ["io-driver", "mio-uds", "libc"]
[dependencies]
-tokio-macros = { version = "=0.2.0-alpha.6", optional = true, path = "../tokio-macros" }
+tokio-macros = { version = "0.2.0", optional = true, path = "../tokio-macros" }
-bytes = { git = "https://github.com/tokio-rs/bytes" }
+bytes = "0.5.0"
pin-project-lite = "0.1.1"
# Everything else is optional...
@@ -119,7 +119,7 @@ default-features = false
optional = true
[dev-dependencies]
-tokio-test = { version = "=0.2.0-alpha.6", path = "../tokio-test" }
+tokio-test = { version = "0.2.0", path = "../tokio-test" }
futures = { version = "0.3.0", features = ["async-await"] }
loom = { version = "0.2.13", features = ["futures", "checkpoint"] }
proptest = "0.9.4"
diff --git a/tokio/README.md b/tokio/README.md
index 530f0bac..de99472a 100644
--- a/tokio/README.md
+++ b/tokio/README.md
@@ -30,7 +30,7 @@ the Rust programming language. It is:
[Website](https://tokio.rs) |
[Guides](https://tokio.rs/docs/) |
-[API Docs](https://docs.rs/tokio/0.2.0-alpha.2/tokio) |
+[API Docs](https://docs.rs/tokio/0.2.0/tokio) |
[Chat](https://gitter.im/tokio-rs/tokio)
## Overview
@@ -47,15 +47,15 @@ level, it provides a few major components:
These components provide the runtime components necessary for building
an asynchronous application.
-[net]: https://docs.rs/tokio/0.2.0-alpha.2/tokio/net/index.html
-[scheduler]: https://docs.rs/tokio/0.2.0-alpha.2/tokio/runtime/index.html
+[net]: https://docs.rs/tokio/0.2.0/tokio/net/index.html
+[scheduler]: https://docs.rs/tokio/0.2.0/tokio/runtime/index.html
## Example
To get started, add the following to `Cargo.toml`.
```toml
-tokio = { version = "0.2.0", features = ["full"] }
+tokio = { version = "0.2", features = ["full"] }
```
Tokio requires components to be explicitly enabled using feature flags. As a
@@ -116,7 +116,7 @@ the [Tokio Gitter channel][chat]. We would be happy to try to answer your
question. Last, if that doesn't work, try opening an [issue] with the question.
[Guides]: https://tokio.rs/docs/
-[API documentation]: https://docs.rs/tokio/0.2.0-alpha.2/tokio
+[API documentation]: https://docs.rs/tokio/0.2
[chat]: https://gitter.im/tokio-rs/tokio
[issue]: https://github.com/tokio-rs/tokio/issues/new
diff --git a/tokio/src/lib.rs b/tokio/src/lib.rs
index 967d82a6..484d8c93 100644
--- a/tokio/src/lib.rs
+++ b/tokio/src/lib.rs
@@ -1,4 +1,4 @@
-#![doc(html_root_url = "https://docs.rs/tokio/0.2.0-alpha.6")]
+#![doc(html_root_url = "https://docs.rs/tokio/0.2.0")]
#![warn(
missing_debug_implementations,
missing_docs,