From 2fe7131a235dfc0f265775c06f8902c53fa9e304 Mon Sep 17 00:00:00 2001 From: Lucio Franco Date: Mon, 25 Oct 2021 10:25:56 -0400 Subject: [PATCH] chore: Prepare `0.6.0` release (#811) --- CHANGELOG.md | 25 +++++++++++++++++++++++++ examples/helloworld-tutorial.md | 6 +++--- examples/routeguide-tutorial.md | 6 +++--- tonic-build/src/lib.rs | 2 +- tonic-health/Cargo.toml | 2 +- tonic-health/src/lib.rs | 2 +- tonic-reflection/Cargo.toml | 2 +- tonic-reflection/src/lib.rs | 2 +- tonic-types/src/lib.rs | 2 +- tonic-web/Cargo.toml | 4 ++-- tonic-web/src/lib.rs | 2 ++ tonic/src/lib.rs | 2 +- 12 files changed, 42 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3b2a0b4..dd049ee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,28 @@ +# [0.6.0](https://github.com/hyperium/tonic/compare/v0.5.2...v0.6.0) (2021-10-25) + +### Breaking changes + +* **tonic:** Remove `Sync` requirement for streams ([#804](https://github.com/hyperium/tonic/issues/804)) ([23c1392](https://github.com/hyperium/tonic/commit/23c1392fb7e0ac50bcdedc35509917061bc858e1)) +* **tonic:** change `connect_lazy` to be infallible ([#712](https://github.com/hyperium/tonic/issues/712)) ([2e47154](https://github.com/hyperium/tonic/commit/2e471548d89be98d26b2332d059a24a3fc15ec23)) +* **build:** split path types in compile ([#721](https://github.com/hyperium/tonic/issues/721)) ([53ecc1f](https://github.com/hyperium/tonic/commit/53ecc1f85e7f7eeb0dce4ab23432d6c36d8a46b0)) +* Update `prost` and friends to 0.9 ([#791](https://github.com/hyperium/tonic/issues/791)) ([09805ec](https://github.com/hyperium/tonic/commit/09805ece453047bf609b1a69c72931eae6e1144a)) + +### Bug Fixes + +* **build:** Correctly convert `Empty` to `()` ([#734](https://github.com/hyperium/tonic/issues/734)) ([ff6a690](https://github.com/hyperium/tonic/commit/ff6a690cec9daca33984cabea66f9d370ac63462)) +* **tonic:** fix extensions disappearing during streaming requests ([5c1bb90](https://github.com/hyperium/tonic/commit/5c1bb90ce82ecf90843a7c959edd7ef8fc280f62)), closes [#770](https://github.com/hyperium/tonic/issues/770) +* **tonic:** Status code to set correct source on unkown error ([#799](https://github.com/hyperium/tonic/issues/799)) ([4054d61](https://github.com/hyperium/tonic/commit/4054d61e14b9794a72b48de1a051c26129ec36b1)) +* **transport:** AddOrigin panic on invalid uri ([#801](https://github.com/hyperium/tonic/issues/801)) ([3ab00f3](https://github.com/hyperium/tonic/commit/3ab00f304dd204fccf00d1995e635fa6b2f8503b)) +* **transport:** Correctly map hyper errors ([#629](https://github.com/hyperium/tonic/issues/629)) ([4947b07](https://github.com/hyperium/tonic/commit/4947b076f5b0b5149ee7f6144515535b85f65db5)) +* **tonic:** compression: handle compression flag but no header (#763) + + +### Features + +* **build:** Support prost's include_file option ([#774](https://github.com/hyperium/tonic/issues/774)) ([3f9ab80](https://github.com/hyperium/tonic/commit/3f9ab801f7ee50ec04ab0f73cd457898dc687e61)) +* **health, reflection:** make rustfmt dependency optional (#785) + + # [0.5.2](https://github.com/hyperium/tonic/compare/v0.5.1...v0.5.2) (2021-08-10) * **tonic:** add `Interceptor` trait (#713) ([#713](https://github.com/hyperium/tonic/issues/713)) ([8c8f4d1](https://github.com/hyperium/tonic/commit/8c8f4d1)) diff --git a/examples/helloworld-tutorial.md b/examples/helloworld-tutorial.md index 4cb4812..d5d586e 100644 --- a/examples/helloworld-tutorial.md +++ b/examples/helloworld-tutorial.md @@ -113,12 +113,12 @@ name = "helloworld-client" path = "src/client.rs" [dependencies] -tonic = "0.5" -prost = "0.8" +tonic = "0.6" +prost = "0.9" tokio = { version = "1.0", features = ["macros", "rt-multi-thread"] } [build-dependencies] -tonic-build = "0.5" +tonic-build = "0.6" ``` We include `tonic-build` as a useful way to incorporate the generation of our client and server gRPC code into the build process of our application. We will setup this build process now: diff --git a/examples/routeguide-tutorial.md b/examples/routeguide-tutorial.md index bb54e6b..138fecd 100644 --- a/examples/routeguide-tutorial.md +++ b/examples/routeguide-tutorial.md @@ -180,8 +180,8 @@ Edit `Cargo.toml` and add all the dependencies we'll need for this example: ```toml [dependencies] -tonic = "0.5" -prost = "0.8" +tonic = "0.6" +prost = "0.9" futures-core = "0.3" futures-util = "0.3" tokio = { version = "1.0", features = ["rt-multi-thread", "macros", "sync", "time"] } @@ -193,7 +193,7 @@ serde_json = "1.0" rand = "0.7" [build-dependencies] -tonic-build = "0.5" +tonic-build = "0.6" ``` Create a `build.rs` file at the root of your crate: diff --git a/tonic-build/src/lib.rs b/tonic-build/src/lib.rs index a18fedc..1907c52 100644 --- a/tonic-build/src/lib.rs +++ b/tonic-build/src/lib.rs @@ -68,7 +68,7 @@ html_logo_url = "https://raw.githubusercontent.com/tokio-rs/website/master/public/img/icons/tonic.svg" )] #![deny(rustdoc::broken_intra_doc_links)] -#![doc(html_root_url = "https://docs.rs/tonic-build/0.5.2")] +#![doc(html_root_url = "https://docs.rs/tonic-build/0.6.0")] #![doc(issue_tracker_base_url = "https://github.com/hyperium/tonic/issues/")] #![doc(test(no_crate_inject, attr(deny(rust_2018_idioms))))] #![cfg_attr(docsrs, feature(doc_cfg))] diff --git a/tonic-health/Cargo.toml b/tonic-health/Cargo.toml index 3fcf801..7daeebe 100644 --- a/tonic-health/Cargo.toml +++ b/tonic-health/Cargo.toml @@ -12,7 +12,7 @@ license = "MIT" name = "tonic-health" readme = "README.md" repository = "https://github.com/hyperium/tonic" -version = "0.4.1" +version = "0.5.0" [features] default = ["transport", "rustfmt"] diff --git a/tonic-health/src/lib.rs b/tonic-health/src/lib.rs index 6243c72..6895834 100644 --- a/tonic-health/src/lib.rs +++ b/tonic-health/src/lib.rs @@ -16,7 +16,7 @@ html_logo_url = "https://raw.githubusercontent.com/tokio-rs/website/master/public/img/icons/tonic.svg" )] #![deny(rustdoc::broken_intra_doc_links)] -#![doc(html_root_url = "https://docs.rs/tonic-health/0.4.1")] +#![doc(html_root_url = "https://docs.rs/tonic-health/0.5.0")] #![doc(issue_tracker_base_url = "https://github.com/hyperium/tonic/issues/")] #![doc(test(no_crate_inject, attr(deny(rust_2018_idioms))))] #![cfg_attr(docsrs, feature(doc_cfg))] diff --git a/tonic-reflection/Cargo.toml b/tonic-reflection/Cargo.toml index 27dceb5..2bf4837 100644 --- a/tonic-reflection/Cargo.toml +++ b/tonic-reflection/Cargo.toml @@ -14,7 +14,7 @@ license = "MIT" name = "tonic-reflection" readme = "README.md" repository = "https://github.com/hyperium/tonic" -version = "0.2.0" +version = "0.3.0" [features] default = ["rustfmt"] diff --git a/tonic-reflection/src/lib.rs b/tonic-reflection/src/lib.rs index e164dba..e9cb48f 100644 --- a/tonic-reflection/src/lib.rs +++ b/tonic-reflection/src/lib.rs @@ -10,7 +10,7 @@ html_logo_url = "https://github.com/hyperium/tonic/raw/master/.github/assets/tonic-docs.png" )] #![deny(rustdoc::broken_intra_doc_links)] -#![doc(html_root_url = "https://docs.rs/tonic-reflection/0.2.0")] +#![doc(html_root_url = "https://docs.rs/tonic-reflection/0.3.0")] #![doc(issue_tracker_base_url = "https://github.com/hyperium/tonic/issues/")] #![doc(test(no_crate_inject, attr(deny(rust_2018_idioms))))] #![cfg_attr(docsrs, feature(doc_cfg))] diff --git a/tonic-types/src/lib.rs b/tonic-types/src/lib.rs index 5e2d057..8e18bde 100644 --- a/tonic-types/src/lib.rs +++ b/tonic-types/src/lib.rs @@ -10,7 +10,7 @@ html_logo_url = "https://raw.githubusercontent.com/tokio-rs/website/master/public/img/icons/tonic.svg" )] #![deny(rustdoc::broken_intra_doc_links)] -#![doc(html_root_url = "https://docs.rs/tonic-types/0.2.0")] +#![doc(html_root_url = "https://docs.rs/tonic-types/0.3.0")] #![doc(issue_tracker_base_url = "https://github.com/hyperium/tonic/issues/")] mod pb { diff --git a/tonic-web/Cargo.toml b/tonic-web/Cargo.toml index f899a0f..6f57371 100644 --- a/tonic-web/Cargo.toml +++ b/tonic-web/Cargo.toml @@ -4,7 +4,7 @@ categories = ["network-programming", "asynchronous"] description = """ grpc-web protocol translation for tonic services. """ -documentation = "https://docs.rs/tonic-web/0.1.0/tonic-web/" +documentation = "https://docs.rs/tonic-web/0.2.0/tonic-web/" edition = "2021" homepage = "https://github.com/hyperium/tonic" keywords = ["rpc", "grpc", "grpc-web"] @@ -12,7 +12,7 @@ license = "MIT" name = "tonic-web" readme = "README.md" repository = "https://github.com/hyperium/tonic" -version = "0.1.0" +version = "0.2.0" [dependencies] base64 = "0.13" diff --git a/tonic-web/src/lib.rs b/tonic-web/src/lib.rs index 7e98fa1..e3a869f 100644 --- a/tonic-web/src/lib.rs +++ b/tonic-web/src/lib.rs @@ -84,6 +84,8 @@ rust_2018_idioms, unreachable_pub )] +#![doc(html_root_url = "https://docs.rs/tonic-reflection/0.3.0")] +#![doc(issue_tracker_base_url = "https://github.com/hyperium/tonic/issues/")] pub use config::Config; diff --git a/tonic/src/lib.rs b/tonic/src/lib.rs index e38bfe9..e2dfb00 100644 --- a/tonic/src/lib.rs +++ b/tonic/src/lib.rs @@ -79,7 +79,7 @@ #![doc( html_logo_url = "https://raw.githubusercontent.com/tokio-rs/website/master/public/img/icons/tonic.svg" )] -#![doc(html_root_url = "https://docs.rs/tonic/0.5.2")] +#![doc(html_root_url = "https://docs.rs/tonic/0.6.0")] #![doc(issue_tracker_base_url = "https://github.com/hyperium/tonic/issues/")] #![doc(test(no_crate_inject, attr(deny(rust_2018_idioms))))] #![cfg_attr(docsrs, feature(doc_cfg))]