diff --git a/examples/Cargo.toml b/examples/Cargo.toml index 21b42ff73a2..643fd14c98a 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 00000000000..48022e3435f --- /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 7e8d9513cbb..822da41515f 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 "] 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 65c8fdee8d8..02e88cf7b16 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 2cd50922018..e5a0093d51f 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 cd0f4044c24..a2902dc53b4 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 "] 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 d70a0c22ffa..c109c148145 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 ef1a8d4ef8f..c1a3e3a7135 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 fee03cc6ee3..1458be03d91 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 "] 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 3a36ceaaccc..2770650934b 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 e69de29bb2d..48022e3435f 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 356712c6561..7f40660ac80 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 "] 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 d4ed5a7b48a..4cb54dfb35a 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 5adc8a7060b..25efc0d8a1f 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 4f0161ae6ec..ba6d1d7da27 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 "] 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 530f0bacb6a..de99472a80a 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 967d82a6c3d..484d8c9366a 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,