diff --git a/CHANGELOG.md b/CHANGELOG.md index e1a64b362..b4a8b6489 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,40 @@ +# [0.7.0](https://github.com/hyperium/tonic/compare/v0.6.2...v0.7.0) (2022-03-31) + +### Breaking Changes + +* Update prost to 0.10 ([#948](https://github.com/hyperium/tonic/issues/948)) ([c78274e](https://github.com/hyperium/tonic/commit/c78274e3fe5763cba291a605979cd7175ad6c38f)) +* **build:** use prettyplease to format output ([#890](https://github.com/hyperium/tonic/issues/890)) ([#904](https://github.com/hyperium/tonic/issues/904)) ([d6c0fc1](https://github.com/hyperium/tonic/commit/d6c0fc112b2288a080fd0a727453b24d666e3d79)) +* **tls:** upgrade to tokio-rustls 0.23 (rustls 0.20) ([#859](https://github.com/hyperium/tonic/issues/859)) ([4548997](https://github.com/hyperium/tonic/commit/4548997080c9c34f12dc0ff83ab0e2bb35ceca9c)) +* **transport:** port router to axum ([#830](https://github.com/hyperium/tonic/issues/830)) ([6dfc20e](https://github.com/hyperium/tonic/commit/6dfc20e1db455be12b0a647533c65bbfd6ae78f2)) +* **build:** add must_use to gzip methods ([#892](https://github.com/hyperium/tonic/issues/892)) ([a337f13](https://github.com/hyperium/tonic/commit/a337f132a57dfcc262b70537cf31686519e0f73c)) +* **codec:** Remove `Default` bound on `Codec` ([#894](https://github.com/hyperium/tonic/issues/894)) ([d574cfd](https://github.com/hyperium/tonic/commit/d574cfda3a692d300db02f486a1792a99b3f9f6d)) +* **tonic:** Expose h2 error instead of reason ([#883](https://github.com/hyperium/tonic/issues/883)) ([a33e15a](https://github.com/hyperium/tonic/commit/a33e15a387a6ca1844748346904d28cb4caae84b)) +* **transport:** connect w/ connector infailable ([#922](https://github.com/hyperium/tonic/issues/922)) ([a197c20](https://github.com/hyperium/tonic/commit/a197c20469a666164c5cba280679e55b9e9e2b6c)) +* **transport:** Endpoint returns transport error ([#920](https://github.com/hyperium/tonic/issues/920)) ([ee6e726](https://github.com/hyperium/tonic/commit/ee6e726707a6839c6cabe672eb296c6118a2a1cd)) +* Handle interceptor errors as responses ([#840](https://github.com/hyperium/tonic/issues/840)) ([#842](https://github.com/hyperium/tonic/issues/842)) ([bf44940](https://github.com/hyperium/tonic/commit/bf44940f9b73709a83b31e4595a3d8ad262797a3)) + + +### Bug Fixes + +* **codec:** Return None after poll_data error ([#921](https://github.com/hyperium/tonic/issues/921)) ([d7cae70](https://github.com/hyperium/tonic/commit/d7cae702fc2284473846db7c946baf87977b7b48)) +* **health:** Correctly implement spec for overall health ([#897](https://github.com/hyperium/tonic/issues/897)) ([2b0ffee](https://github.com/hyperium/tonic/commit/2b0ffee62034f5983f8d6dcdafccd66f780559f2)) +* **tonic:** Preserve HTTP method in interceptor ([#912](https://github.com/hyperium/tonic/issues/912)) ([e623562](https://github.com/hyperium/tonic/commit/e6235623c4707f97e9b9f7c3ba88745050a884e5)) +* **transport:** Make `Server::layer()` support more than one layer ([#932](https://github.com/hyperium/tonic/issues/932)) ([e30bb7e](https://github.com/hyperium/tonic/commit/e30bb7ede7e107a3181cd786533c250ba09a2fcf)) +* **transport:** Make server builder more consistent ([#901](https://github.com/hyperium/tonic/issues/901)) ([6763d19](https://github.com/hyperium/tonic/commit/6763d191d267c1b9f861b96ad0f4b850e0264f4d)) +* Return error on non https uri instead of panic ([#838](https://github.com/hyperium/tonic/issues/838)) ([ef6e245](https://github.com/hyperium/tonic/commit/ef6e245180936097e56f5f95ed8b182674f3131b)) + + +### Features + +* **build:** Expose Prost generation plugin ([#947](https://github.com/hyperium/tonic/issues/947)) ([d4bd475](https://github.com/hyperium/tonic/commit/d4bd4758dd80135f89d3e559c5d7f42ccbbab504)) +* **build:** add constructor `from_arc` for gRPC servers ([#875](https://github.com/hyperium/tonic/issues/875)) ([7179f7a](https://github.com/hyperium/tonic/commit/7179f7ae6a5186bb64e4c120302084f56c053206)) +* **health:** Expose `HealthService` publically ([#930](https://github.com/hyperium/tonic/issues/930)) ([097e7e8](https://github.com/hyperium/tonic/commit/097e7e85a9079bb76bef54921f03c6f7e0ee0744)) +* **transport:** add unix socket support in server ([#861](https://github.com/hyperium/tonic/issues/861)) ([dee2ab5](https://github.com/hyperium/tonic/commit/dee2ab52ff4a2995156a3baf5ea916b479fd1d14)) +* **transport:** support customizing `Channel`'s async executor ([#935](https://github.com/hyperium/tonic/issues/935)) ([0859d82](https://github.com/hyperium/tonic/commit/0859d82e577fb024e39ce9b5b7356b95dcb66562)) +* Implement hash for `Code` ([#917](https://github.com/hyperium/tonic/issues/917)) ([6bc7dab](https://github.com/hyperium/tonic/commit/6bc7dab8e099c8ce226a6261e545d8d131c604f0)) + + + # [0.6.2](https://github.com/hyperium/tonic/compare/v0.6.1...v0.6.2) (2021-12-07) diff --git a/examples/helloworld-tutorial.md b/examples/helloworld-tutorial.md index 8442dad2d..e6930fe4c 100644 --- a/examples/helloworld-tutorial.md +++ b/examples/helloworld-tutorial.md @@ -112,12 +112,12 @@ name = "helloworld-client" path = "src/client.rs" [dependencies] -tonic = "0.6" -prost = "0.9" +tonic = "0.7" +prost = "0.10" tokio = { version = "1.0", features = ["macros", "rt-multi-thread"] } [build-dependencies] -tonic-build = "0.6" +tonic-build = "0.7" ``` 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 a6f14db11..9b619d73c 100644 --- a/examples/routeguide-tutorial.md +++ b/examples/routeguide-tutorial.md @@ -174,8 +174,8 @@ Edit `Cargo.toml` and add all the dependencies we'll need for this example: ```toml [dependencies] -tonic = "0.6" -prost = "0.9" +tonic = "0.7" +prost = "0.10" futures-core = "0.3" futures-util = "0.3" tokio = { version = "1.0", features = ["rt-multi-thread", "macros", "sync", "time"] } @@ -187,7 +187,7 @@ serde_json = "1.0" rand = "0.7" [build-dependencies] -tonic-build = "0.6" +tonic-build = "0.7" ``` Create a `build.rs` file at the root of your crate: diff --git a/tonic-build/Cargo.toml b/tonic-build/Cargo.toml index 91754a7ed..214bd57a3 100644 --- a/tonic-build/Cargo.toml +++ b/tonic-build/Cargo.toml @@ -4,7 +4,7 @@ categories = ["network-programming", "asynchronous"] description = """ Codegen module of `tonic` gRPC implementation. """ -documentation = "https://docs.rs/tonic-build/0.6.2/tonic_build/" +documentation = "https://docs.rs/tonic-build/0.7.0/tonic_build/" edition = "2018" homepage = "https://github.com/hyperium/tonic" keywords = ["rpc", "grpc", "async", "codegen", "protobuf"] @@ -12,7 +12,7 @@ license = "MIT" name = "tonic-build" readme = "README.md" repository = "https://github.com/hyperium/tonic" -version = "0.6.2" +version = "0.7.0" [dependencies] prettyplease = {version = "0.1"} diff --git a/tonic-build/src/lib.rs b/tonic-build/src/lib.rs index 385051419..56f05d0e5 100644 --- a/tonic-build/src/lib.rs +++ b/tonic-build/src/lib.rs @@ -62,7 +62,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.6.2")] +#![doc(html_root_url = "https://docs.rs/tonic-build/0.7.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 d0dc757b0..39f9b30e2 100644 --- a/tonic-health/Cargo.toml +++ b/tonic-health/Cargo.toml @@ -24,10 +24,10 @@ bytes = "1.0" prost = "0.10" tokio = {version = "1.0", features = ["sync"]} tokio-stream = "0.1" -tonic = {version = "0.6", path = "../tonic", features = ["codegen", "prost"]} +tonic = {version = "0.7", path = "../tonic", features = ["codegen", "prost"]} [dev-dependencies] tokio = {version = "1.0", features = ["rt-multi-thread", "macros"]} [build-dependencies] -tonic-build = {version = "0.6", path = "../tonic-build", features = ["prost"]} +tonic-build = {version = "0.7", path = "../tonic-build", features = ["prost"]} diff --git a/tonic-reflection/Cargo.toml b/tonic-reflection/Cargo.toml index cbc965c14..daa010961 100644 --- a/tonic-reflection/Cargo.toml +++ b/tonic-reflection/Cargo.toml @@ -22,10 +22,10 @@ prost = "0.10" prost-types = "0.10" tokio = {version = "1.0", features = ["sync"]} tokio-stream = {version = "0.1", features = ["net"]} -tonic = {version = "0.6", path = "../tonic", features = ["codegen", "prost"]} +tonic = {version = "0.7", path = "../tonic", features = ["codegen", "prost"]} [build-dependencies] -tonic-build = {version = "0.6", path = "../tonic-build", features = ["transport", "prost"]} +tonic-build = {version = "0.7", path = "../tonic-build", features = ["transport", "prost"]} [dev-dependencies] futures = "0.3" diff --git a/tonic-web/Cargo.toml b/tonic-web/Cargo.toml index 35acf4e06..0c097d169 100644 --- a/tonic-web/Cargo.toml +++ b/tonic-web/Cargo.toml @@ -22,7 +22,7 @@ http = "0.2" http-body = "0.4" hyper = "0.14" pin-project = "1" -tonic = {version = "0.6", path = "../tonic", default-features = false, features = ["transport"]} +tonic = {version = "0.7", path = "../tonic", default-features = false, features = ["transport"]} tower-service = "0.3" tracing = "0.1" diff --git a/tonic/Cargo.toml b/tonic/Cargo.toml index 652f10a33..92ba4d453 100644 --- a/tonic/Cargo.toml +++ b/tonic/Cargo.toml @@ -7,20 +7,20 @@ name = "tonic" # - Cargo.toml # - README.md # - Update CHANGELOG.md. -# - Create "v0.6.x" git tag. +# - Create "v0.7.x" git tag. authors = ["Lucio Franco "] categories = ["web-programming", "network-programming", "asynchronous"] description = """ A gRPC over HTTP/2 implementation focused on high performance, interoperability, and flexibility. """ -documentation = "https://docs.rs/tonic/0.6.2/tonic/" +documentation = "https://docs.rs/tonic/0.7.0/tonic/" edition = "2018" homepage = "https://github.com/hyperium/tonic" keywords = ["rpc", "grpc", "async", "futures", "protobuf"] license = "MIT" readme = "../README.md" repository = "https://github.com/hyperium/tonic" -version = "0.6.2" +version = "0.7.0" [features] codegen = ["async-trait"] diff --git a/tonic/src/lib.rs b/tonic/src/lib.rs index cb5c332b4..c53f2601b 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.6.2")] +#![doc(html_root_url = "https://docs.rs/tonic/0.7.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))]