Skip to content

Commit 2eeca95

Browse files
authored
chore: release v0.12.0 (#1740)
* chore: prepare v0.12.0 release * add changelog * fix version links * update changelog * update changelog to include prost update
1 parent 3df62fe commit 2eeca95

File tree

15 files changed

+67
-28
lines changed

15 files changed

+67
-28
lines changed

CHANGELOG.md

+39
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,42 @@
1+
# [v0.12.0](https://github.com/hyperium/tonic/compare/v0.11.0...v0.12.0) (2024-06-20)
2+
3+
This breaking release updates tonic to the hyper `1.0` ecosystem and also updates
4+
to prost `v0.13.0`.
5+
6+
### Features
7+
8+
* **build:** Custom codecs for generated code ([#1599](https://github.com/hyperium/tonic/issues/1599)) ([18a2b30](https://github.com/hyperium/tonic/commit/18a2b30922460be02829706cf9dd0cd1ec6a19c1))
9+
* **channel:** Make channel feature additive ([#1574](https://github.com/hyperium/tonic/issues/1574)) ([b947e1a](https://github.com/hyperium/tonic/commit/b947e1ac0727ceb0a0267a30854ada4ba18931db))
10+
* **codec:** Make error when not utf8 value in compression encoding ([#1768](https://github.com/hyperium/tonic/issues/1768)) ([f8e1f87](https://github.com/hyperium/tonic/commit/f8e1f87eb862676147fd6215b58c9090d259104d))
11+
* Implement http_body::Body::size_hint for custom body ([#1713](https://github.com/hyperium/tonic/issues/1713)) ([9728c01](https://github.com/hyperium/tonic/commit/9728c01132bd64dca046675198edc751c4547966))
12+
* Make boxed function public ([#1754](https://github.com/hyperium/tonic/issues/1754)) ([2cc868f](https://github.com/hyperium/tonic/commit/2cc868f80b20379d6635ac182f523b4971d016b7))
13+
* Relax GrpcMethod lifetime ([#1598](https://github.com/hyperium/tonic/issues/1598)) ([68bf17d](https://github.com/hyperium/tonic/commit/68bf17d67ad71af44c34d565566c3dd58ea3ab87))
14+
* **tls:** Add ability to add multiple ca certificates ([#1724](https://github.com/hyperium/tonic/issues/1724)) ([3457f92](https://github.com/hyperium/tonic/commit/3457f9203226f88524b31bf5d64ce6e5ec7c993c))
15+
* **tls:** Use rustls_pki_types::CertificateDer to describe DER encoded certificate ([#1707](https://github.com/hyperium/tonic/issues/1707)) ([96a8cbc](https://github.com/hyperium/tonic/commit/96a8cbc04d0cad6d30d2944dba6b32aac8975f91))
16+
* **tls:** Remove tls roots implicit configuration ([#1731](https://github.com/hyperium/tonic/issues/1731)) ([de73617](https://github.com/hyperium/tonic/commit/de736171f20ec5d485c26ee5eda4a9ccf5fc75e5))
17+
* **transport:** Make service router independent from transport ([#1572](https://github.com/hyperium/tonic/issues/1572)) ([da48235](https://github.com/hyperium/tonic/commit/da482359933f52e84c0263b28a5a83ab1efe6c33))
18+
* **transport:** Make transport server and channel independent ([#1630](https://github.com/hyperium/tonic/issues/1630)) ([654289f](https://github.com/hyperium/tonic/commit/654289fdc24f56d6845ec0ceb233deb46b640fac))
19+
* **transport:** Rename reexported axum body ([#1752](https://github.com/hyperium/tonic/issues/1752)) ([5d7bfc2](https://github.com/hyperium/tonic/commit/5d7bfc22c590982463f2d93464b0a7fb90e17083))
20+
* Use http::Extensions directly ([#1710](https://github.com/hyperium/tonic/issues/1710)) ([ed95d27](https://github.com/hyperium/tonic/commit/ed95d2762146f001970b74941f3bad77b7560426))
21+
22+
### Bug Fixes
23+
24+
* **tonic:** flush accumulated ready messages when status received ([#1756](https://github.com/hyperium/tonic/issues/1756)) ([d312dcc](https://github.com/hyperium/tonic/commit/d312dcc0ec362cb12f6e54072622761d7466a650)), closes [#1423](https://github.com/hyperium/tonic/issues/1423)
25+
26+
### BREAKING CHANGES
27+
28+
* `tonic` and crates updated to hyper 1.0 (#1670)
29+
* `tonic` and crates updated to prost 0.13 (#1779)
30+
* `tonic_reflection::server` is updated to use the generated
31+
`tonic_reflection::pb::v1` code.
32+
* Make compression encoding configuration more malleable (#1757)
33+
34+
35+
[v1.8.8]: https://github.com/fullstorydev/grpcurl/releases/tag/v1.8.8
36+
[proto]: https://github.com/grpc/grpc/blob/master/src/proto/grpc/reflection/v1/reflection.proto
37+
[grpcurl]: https://github.com/fullstorydev/grpcurl
38+
39+
140
# [0.11.0](https://github.com/hyperium/tonic/compare/v0.10.2...v0.11.0) (2024-02-08)
241

342
BREAKING CHANGES:

examples/helloworld-tutorial.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,12 @@ name = "helloworld-client"
112112
path = "src/client.rs"
113113

114114
[dependencies]
115-
tonic = "0.11"
115+
tonic = "0.12"
116116
prost = "0.12"
117117
tokio = { version = "1.0", features = ["macros", "rt-multi-thread"] }
118118

119119
[build-dependencies]
120-
tonic-build = "0.11"
120+
tonic-build = "0.12"
121121
```
122122

123123
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:

examples/routeguide-tutorial.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ Edit `Cargo.toml` and add all the dependencies we'll need for this example:
174174

175175
```toml
176176
[dependencies]
177-
tonic = "0.11"
177+
tonic = "0.12"
178178
prost = "0.12"
179179
tokio = { version = "1.0", features = ["rt-multi-thread", "macros", "sync", "time"] }
180180
tokio-stream = "0.1"
@@ -185,7 +185,7 @@ serde_json = "1.0"
185185
rand = "0.8"
186186

187187
[build-dependencies]
188-
tonic-build = "0.11"
188+
tonic-build = "0.12"
189189
```
190190

191191
Create a `build.rs` file at the root of your crate:

tonic-build/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ categories = ["network-programming", "asynchronous"]
44
description = """
55
Codegen module of `tonic` gRPC implementation.
66
"""
7-
documentation = "https://docs.rs/tonic-build/0.11.0"
7+
documentation = "https://docs.rs/tonic-build/0.12.0"
88
edition = "2021"
99
homepage = "https://github.com/hyperium/tonic"
1010
keywords = ["rpc", "grpc", "async", "codegen", "protobuf"]
1111
license = "MIT"
1212
name = "tonic-build"
1313
readme = "README.md"
1414
repository = "https://github.com/hyperium/tonic"
15-
version = "0.11.0"
15+
version = "0.12.0"
1616

1717
[dependencies]
1818
prettyplease = { version = "0.2" }

tonic-build/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
html_logo_url = "https://raw.githubusercontent.com/tokio-rs/website/master/public/img/icons/tonic.svg"
7171
)]
7272
#![deny(rustdoc::broken_intra_doc_links)]
73-
#![doc(html_root_url = "https://docs.rs/tonic-build/0.11.0")]
73+
#![doc(html_root_url = "https://docs.rs/tonic-build/0.12.0")]
7474
#![doc(issue_tracker_base_url = "https://github.com/hyperium/tonic/issues/")]
7575
#![doc(test(no_crate_inject, attr(deny(rust_2018_idioms))))]
7676
#![cfg_attr(docsrs, feature(doc_auto_cfg))]

tonic-health/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ categories = ["network-programming", "asynchronous"]
44
description = """
55
Health Checking module of `tonic` gRPC implementation.
66
"""
7-
documentation = "https://docs.rs/tonic-health/0.11.0"
7+
documentation = "https://docs.rs/tonic-health/0.12.0"
88
edition = "2021"
99
homepage = "https://github.com/hyperium/tonic"
1010
keywords = ["rpc", "grpc", "async", "healthcheck"]
1111
license = "MIT"
1212
name = "tonic-health"
1313
readme = "README.md"
1414
repository = "https://github.com/hyperium/tonic"
15-
version = "0.11.0"
15+
version = "0.12.0"
1616

1717
[features]
1818
default = ["transport"]
@@ -23,7 +23,7 @@ async-stream = "0.3"
2323
prost = "0.13"
2424
tokio = {version = "1.0", features = ["sync"]}
2525
tokio-stream = "0.1"
26-
tonic = { version = "0.11", path = "../tonic", default-features = false, features = ["codegen", "prost"] }
26+
tonic = { version = "0.12", path = "../tonic", default-features = false, features = ["codegen", "prost"] }
2727

2828
[dev-dependencies]
2929
tokio = {version = "1.0", features = ["rt-multi-thread", "macros"]}

tonic-health/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
html_logo_url = "https://raw.githubusercontent.com/tokio-rs/website/master/public/img/icons/tonic.svg"
1717
)]
1818
#![deny(rustdoc::broken_intra_doc_links)]
19-
#![doc(html_root_url = "https://docs.rs/tonic-health/0.11.0")]
19+
#![doc(html_root_url = "https://docs.rs/tonic-health/0.12.0")]
2020
#![doc(issue_tracker_base_url = "https://github.com/hyperium/tonic/issues/")]
2121
#![doc(test(no_crate_inject, attr(deny(rust_2018_idioms))))]
2222
#![cfg_attr(docsrs, feature(doc_auto_cfg))]

tonic-reflection/Cargo.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ Server Reflection module of `tonic` gRPC implementation.
99
"""
1010
edition = "2021"
1111
homepage = "https://github.com/hyperium/tonic"
12-
documentation = "https://docs.rs/tonic-reflection/0.11.0"
12+
documentation = "https://docs.rs/tonic-reflection/0.12.0"
1313
keywords = ["rpc", "grpc", "async", "reflection"]
1414
license = "MIT"
1515
name = "tonic-reflection"
1616
readme = "README.md"
1717
repository = "https://github.com/hyperium/tonic"
18-
version = "0.11.0"
18+
version = "0.12.0"
1919

2020
[package.metadata.docs.rs]
2121
all-features = true
@@ -30,7 +30,7 @@ prost = "0.13"
3030
prost-types = {version = "0.13", optional = true}
3131
tokio = { version = "1.0", features = ["sync", "rt"], optional = true }
3232
tokio-stream = {version = "0.1", features = ["net"], optional = true }
33-
tonic = { version = "0.11", path = "../tonic", default-features = false, features = ["codegen", "prost"] }
33+
tonic = { version = "0.12", path = "../tonic", default-features = false, features = ["codegen", "prost"] }
3434

3535
[dev-dependencies]
36-
tonic = { version = "0.11", path = "../tonic", default-features = false, features = ["transport"] }
36+
tonic = { version = "0.12", path = "../tonic", default-features = false, features = ["transport"] }

tonic-reflection/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
html_logo_url = "https://github.com/hyperium/tonic/raw/master/.github/assets/tonic-docs.png"
1111
)]
1212
#![deny(rustdoc::broken_intra_doc_links)]
13-
#![doc(html_root_url = "https://docs.rs/tonic-reflection/0.11.0")]
13+
#![doc(html_root_url = "https://docs.rs/tonic-reflection/0.12.0")]
1414
#![doc(issue_tracker_base_url = "https://github.com/hyperium/tonic/issues/")]
1515
#![doc(test(no_crate_inject, attr(deny(rust_2018_idioms))))]
1616
#![cfg_attr(docsrs, feature(doc_auto_cfg))]

tonic-types/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ categories = ["web-programming", "network-programming", "asynchronous"]
77
description = """
88
A collection of useful protobuf types that can be used with `tonic`.
99
"""
10-
documentation = "https://docs.rs/tonic-types/0.11.0"
10+
documentation = "https://docs.rs/tonic-types/0.12.0"
1111
edition = "2021"
1212
homepage = "https://github.com/hyperium/tonic"
1313
keywords = ["rpc", "grpc", "protobuf"]
1414
license = "MIT"
1515
name = "tonic-types"
1616
readme = "README.md"
1717
repository = "https://github.com/hyperium/tonic"
18-
version = "0.11.0"
18+
version = "0.12.0"
1919

2020
[dependencies]
2121
prost = "0.13"
2222
prost-types = "0.13"
23-
tonic = {version = "0.11", path = "../tonic", default-features = false}
23+
tonic = { version = "0.12", path = "../tonic", default-features = false }

tonic-types/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
html_logo_url = "https://raw.githubusercontent.com/tokio-rs/website/master/public/img/icons/tonic.svg"
151151
)]
152152
#![deny(rustdoc::broken_intra_doc_links)]
153-
#![doc(html_root_url = "https://docs.rs/tonic-types/0.11.0")]
153+
#![doc(html_root_url = "https://docs.rs/tonic-types/0.12.0")]
154154
#![doc(issue_tracker_base_url = "https://github.com/hyperium/tonic/issues/")]
155155

156156
mod generated {

tonic-web/Cargo.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ categories = ["network-programming", "asynchronous"]
44
description = """
55
grpc-web protocol translation for tonic services.
66
"""
7-
documentation = "https://docs.rs/tonic-web/0.11.0"
7+
documentation = "https://docs.rs/tonic-web/0.12.0"
88
edition = "2021"
99
homepage = "https://github.com/hyperium/tonic"
1010
keywords = ["rpc", "grpc", "grpc-web"]
1111
license = "MIT"
1212
name = "tonic-web"
1313
readme = "README.md"
1414
repository = "https://github.com/hyperium/tonic"
15-
version = "0.11.0"
15+
version = "0.12.0"
1616

1717
[dependencies]
1818
base64 = "0.22"
@@ -22,11 +22,11 @@ http = "1"
2222
http-body = "1"
2323
http-body-util = "0.1"
2424
pin-project = "1"
25-
tonic = {version = "0.11", path = "../tonic", default-features = false}
25+
tonic = { version = "0.12", path = "../tonic", default-features = false }
2626
tower-service = "0.3"
2727
tower-layer = "0.3"
2828
tower-http = { version = "0.5", features = ["cors"] }
2929
tracing = "0.1"
3030

3131
[dev-dependencies]
32-
tokio = {version = "1", features = ["macros", "rt"]}
32+
tokio = { version = "1", features = ["macros", "rt"] }

tonic-web/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
rust_2018_idioms,
9595
unreachable_pub
9696
)]
97-
#![doc(html_root_url = "https://docs.rs/tonic-web/0.11.0")]
97+
#![doc(html_root_url = "https://docs.rs/tonic-web/0.12.0")]
9898
#![doc(issue_tracker_base_url = "https://github.com/hyperium/tonic/issues/")]
9999

100100
pub use call::GrpcWebCall;

tonic/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ categories = ["web-programming", "network-programming", "asynchronous"]
1313
description = """
1414
A gRPC over HTTP/2 implementation focused on high performance, interoperability, and flexibility.
1515
"""
16-
documentation = "https://docs.rs/tonic/0.11.0"
16+
documentation = "https://docs.rs/tonic/0.12.0"
1717
edition = "2021"
1818
homepage = "https://github.com/hyperium/tonic"
1919
keywords = ["rpc", "grpc", "async", "futures", "protobuf"]
2020
license = "MIT"
2121
readme = "../README.md"
2222
repository = "https://github.com/hyperium/tonic"
23-
version = "0.11.0"
23+
version = "0.12.0"
2424

2525
[features]
2626
codegen = ["dep:async-trait"]

tonic/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
#![doc(
8989
html_logo_url = "https://raw.githubusercontent.com/tokio-rs/website/master/public/img/icons/tonic.svg"
9090
)]
91-
#![doc(html_root_url = "https://docs.rs/tonic/0.11.0")]
91+
#![doc(html_root_url = "https://docs.rs/tonic/0.12.0")]
9292
#![doc(issue_tracker_base_url = "https://github.com/hyperium/tonic/issues/")]
9393
#![doc(test(no_crate_inject, attr(deny(rust_2018_idioms))))]
9494
#![cfg_attr(docsrs, feature(doc_auto_cfg))]

0 commit comments

Comments
 (0)