From 62b8ab0b514d707b5fc48f2aa8cf8776addd3d39 Mon Sep 17 00:00:00 2001 From: Lucio Franco Date: Mon, 13 Jul 2020 13:00:54 -0400 Subject: [PATCH] chore: Prepare 0.3.0 release (#399) * chore: Prepare 0.3.0 release * update changelog * fix builds * Update breaking changes --- CHANGELOG.md | 8 +++++++- examples/helloworld-tutorial.md | 4 ++-- examples/routeguide-tutorial.md | 4 ++-- tonic-build/Cargo.toml | 2 +- tonic-build/src/lib.rs | 2 +- tonic-health/Cargo.toml | 4 ++-- tonic/Cargo.toml | 2 +- tonic/src/lib.rs | 2 +- 8 files changed, 17 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index effb638..f696175 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ -# [0.2.2](https://github.com/hyperium/tonic/compare/v0.2.1...v0.2.2) (2020-07-10) +# [0.3.0](https://github.com/hyperium/tonic/compare/v0.2.1...v0.3.0) (2020-07-13) +* Bump `base64` to `0.12` and `tokio-rustls`/`rustls-native-certs` to `0.14`/`0.4`. ([#397](https://github.com/hyperium/tonic/pull/397) ([570c606](https://github.com/hyperium/tonic/commit/570c606397e47406ec148fe1763586e87a8f5298))). ### Bug Fixes @@ -22,6 +23,11 @@ * Add metadata to error responses ([#348](https://github.com/hyperium/tonic/issues/348)) ([372da52](https://github.com/hyperium/tonic/commit/372da52e96114ca76cc221f3c598be82bfae970c)) * Add new method get_uri for Endpoint ([#371](https://github.com/hyperium/tonic/issues/371)) ([54d7a7a](https://github.com/hyperium/tonic/commit/54d7a7af6b6530b80353c5741586c38cca8382c9)) +### BREAKING CHANGES + +* Bumped rustls to `0.18`. +* Endpoint `tls_config` now returns a result. + # [0.2.1](https://github.com/hyperium/tonic/compare/v0.2.0...v0.2.1) (2020-05-07) diff --git a/examples/helloworld-tutorial.md b/examples/helloworld-tutorial.md index 443bea1..f1884aa 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.2" +tonic = "0.3" prost = "0.6" tokio = { version = "0.2", features = ["macros"] } [build-dependencies] -tonic-build = "0.2" +tonic-build = "0.3" ``` 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 d785df5..8964709 100644 --- a/examples/routeguide-tutorial.md +++ b/examples/routeguide-tutorial.md @@ -180,7 +180,7 @@ Edit `Cargo.toml` and add all the dependencies we'll need for this example: ```toml [dependencies] -tonic = "0.2" +tonic = "0.3" prost = "0.6" futures-core = "0.3" futures-util = "0.3" @@ -192,7 +192,7 @@ serde_json = "1.0" rand = "0.7" [build-dependencies] -tonic-build = "0.2" +tonic-build = "0.3" ``` Create a `build.rs` file at the root of your crate: diff --git a/tonic-build/Cargo.toml b/tonic-build/Cargo.toml index 52ad3ea..f3fdece 100644 --- a/tonic-build/Cargo.toml +++ b/tonic-build/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tonic-build" -version = "0.2.2" +version = "0.3.0" authors = ["Lucio Franco "] edition = "2018" license = "MIT" diff --git a/tonic-build/src/lib.rs b/tonic-build/src/lib.rs index 8dc0a5c..193908a 100644 --- a/tonic-build/src/lib.rs +++ b/tonic-build/src/lib.rs @@ -52,7 +52,7 @@ #![doc( html_logo_url = "https://github.com/hyperium/tonic/raw/master/.github/assets/tonic-docs.png" )] -#![doc(html_root_url = "https://docs.rs/tonic-build/0.2.2")] +#![doc(html_root_url = "https://docs.rs/tonic-build/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-health/Cargo.toml b/tonic-health/Cargo.toml index 950c006..3822fc9 100644 --- a/tonic-health/Cargo.toml +++ b/tonic-health/Cargo.toml @@ -20,7 +20,7 @@ transport = ["tonic/transport"] [dependencies] async-stream = "0.2" tokio = { version = "0.2", features = ["sync", "stream"] } -tonic = { version = "0.2", path = "../tonic", features = ["codegen", "prost"] } +tonic = { version = "0.3", path = "../tonic", features = ["codegen", "prost"] } bytes = "0.5" prost = "0.6" @@ -28,4 +28,4 @@ prost = "0.6" tokio = { version = "0.2", features = ["rt-core", "macros"]} [build-dependencies] -tonic-build = { version = "0.2", path = "../tonic-build" } \ No newline at end of file +tonic-build = { version = "0.3", path = "../tonic-build" } \ No newline at end of file diff --git a/tonic/Cargo.toml b/tonic/Cargo.toml index c1feb84..8e4a301 100644 --- a/tonic/Cargo.toml +++ b/tonic/Cargo.toml @@ -8,7 +8,7 @@ name = "tonic" # - README.md # - Update CHANGELOG.md. # - Create "v0.1.x" git tag. -version = "0.2.2" +version = "0.3.0" authors = ["Lucio Franco "] edition = "2018" license = "MIT" diff --git a/tonic/src/lib.rs b/tonic/src/lib.rs index 8a62925..d97a590 100644 --- a/tonic/src/lib.rs +++ b/tonic/src/lib.rs @@ -71,7 +71,7 @@ #![doc( html_logo_url = "https://github.com/hyperium/tonic/raw/master/.github/assets/tonic-docs.png" )] -#![doc(html_root_url = "https://docs.rs/tonic/0.2.2")] +#![doc(html_root_url = "https://docs.rs/tonic/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))]