summaryrefslogtreecommitdiffstats
path: root/tokio
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 /tokio
parent4ddc4371709562d2bd1d0373f0555f7c31926e53 (diff)
chore: prepare v0.2.0 release (#1822)
Diffstat (limited to 'tokio')
-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
4 files changed, 28 insertions, 51 deletions
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,