Skip to content

Commit ec359ba

Browse files
committed
chore: Prepare 0.8 release (#1044)
1 parent 2a7c610 commit ec359ba

File tree

29 files changed

+84
-55
lines changed

29 files changed

+84
-55
lines changed

.github/workflows/CI.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ jobs:
2626
run: rustup component add rustfmt
2727
- name: Install cargo-hack
2828
run: cargo install cargo-hack
29+
- name: Install Protoc
30+
uses: arduino/setup-protoc@v1
31+
with:
32+
repo-token: ${{ secrets.GITHUB_TOKEN }}
2933
- uses: Swatinem/rust-cache@v1
3034
- name: Check fmt
3135
run: cargo fmt -- --check
@@ -59,6 +63,10 @@ jobs:
5963
rust-version: ${{ matrix.rust }}
6064
- name: Install rustfmt
6165
run: rustup component add rustfmt
66+
- name: Install Protoc
67+
uses: arduino/setup-protoc@v1
68+
with:
69+
repo-token: ${{ secrets.GITHUB_TOKEN }}
6270
- uses: Swatinem/rust-cache@v1
6371
- uses: actions/checkout@master
6472
- name: Run tests
@@ -82,6 +90,10 @@ jobs:
8290
- name: Install rustfmt
8391
run: rustup component add rustfmt
8492
- uses: actions/checkout@master
93+
- name: Install Protoc
94+
uses: arduino/setup-protoc@v1
95+
with:
96+
repo-token: ${{ secrets.GITHUB_TOKEN }}
8597
- uses: Swatinem/rust-cache@v1
8698
- name: Run interop tests
8799
run: ./interop/test.sh

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
# [v0.8.0](https://github.com/hyperium/tonic/compare/v0.7.2...v0.8.0) (2022-07-29)
2+
3+
4+
### Features
5+
6+
* Add `Grpc::with_origin` for clients ([#1017](https://github.com/hyperium/tonic/issues/1017)) ([10f6d2f](https://github.com/hyperium/tonic/commit/10f6d2f1a9fa3969599ebd674f7be27f4f458754))
7+
* **build:** Add option to emit rerun-if-changed instructions ([#1021](https://github.com/hyperium/tonic/issues/1021)) ([1d2083a](https://github.com/hyperium/tonic/commit/1d2083a1a690edcb3f95343edfe229339c4257b7))
8+
* **build:** Better support for custom codecs ([#999](https://github.com/hyperium/tonic/issues/999)) ([de2e4ac](https://github.com/hyperium/tonic/commit/de2e4ac077c076736dc451f3415ea7da1a61a560))
9+
* Decouple `NamedService` from the `transport` feature ([#969](https://github.com/hyperium/tonic/issues/969)) ([feae96c](https://github.com/hyperium/tonic/commit/feae96c5be1247af368e6ce665c8df757d298e35))
10+
* reflection: Export server types.
11+
* reflection: Add `with_service_name`.
12+
13+
### BREAKING CHANGES
14+
15+
* **build:** `CODEC_PATH` moved from const to fn
16+
* **tonic** Remove codegen depedency on `compression` feature.
17+
118
# [v0.7.2](https://github.com/hyperium/tonic/compare/v0.7.1...v0.7.2) (2022-05-04)
219

320

examples/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ path = "src/json-codec/server.rs"
197197
[dependencies]
198198
async-stream = "0.3"
199199
futures = { version = "0.3", default-features = false, features = ["alloc"] }
200-
prost = "0.10"
200+
prost = "0.11"
201201
tokio = { version = "1.0", features = [ "rt-multi-thread", "time", "fs", "macros", "net",] }
202202
tokio-stream = { version = "0.1", features = ["net"] }
203203
tonic = { path = "../tonic", features = ["tls", "gzip"] }
@@ -212,7 +212,7 @@ tracing-attributes = "0.1"
212212
tracing-futures = "0.2"
213213
tracing-subscriber = { version = "0.3", features = ["tracing-log"] }
214214
# Required for wellknown types
215-
prost-types = "0.10"
215+
prost-types = "0.11"
216216
# Hyper example
217217
http = "0.2"
218218
http-body = "0.4.2"

examples/helloworld-tutorial.md

Lines changed: 3 additions & 3 deletions
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.7"
116-
prost = "0.10"
115+
tonic = "0.8"
116+
prost = "0.11"
117117
tokio = { version = "1.0", features = ["macros", "rt-multi-thread"] }
118118

119119
[build-dependencies]
120-
tonic-build = "0.7"
120+
tonic-build = "0.8"
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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ Edit `Cargo.toml` and add all the dependencies we'll need for this example:
174174

175175
```toml
176176
[dependencies]
177-
tonic = "0.7"
178-
prost = "0.10"
177+
tonic = "0.8"
178+
prost = "0.11"
179179
futures-core = "0.3"
180180
futures-util = "0.3"
181181
tokio = { version = "1.0", features = ["rt-multi-thread", "macros", "sync", "time"] }
@@ -187,7 +187,7 @@ serde_json = "1.0"
187187
rand = "0.7"
188188

189189
[build-dependencies]
190-
tonic-build = "0.7"
190+
tonic-build = "0.8"
191191
```
192192

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

interop/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ futures-util = "0.3"
2424
http = "0.2"
2525
http-body = "0.4.2"
2626
hyper = "0.14"
27-
prost = "0.10"
28-
prost-derive = "0.10"
27+
prost = "0.11"
28+
prost-derive = "0.11"
2929
tokio = {version = "1.0", features = ["rt-multi-thread", "time", "macros", "fs"]}
3030
tokio-stream = "0.1"
3131
tonic = {path = "../tonic", features = ["tls"]}

tests/ambiguous_methods/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ version = "0.1.0"
99
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1010

1111
[dependencies]
12-
prost = "0.10"
12+
prost = "0.11"
1313
tonic = {path = "../../tonic"}
1414

1515
[build-dependencies]

tests/compression/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ http = "0.2"
1313
http-body = "0.4"
1414
hyper = "0.14.3"
1515
pin-project = "1.0"
16-
prost = "0.10"
16+
prost = "0.11"
1717
tokio = {version = "1.0", features = ["macros", "rt-multi-thread", "net"]}
1818
tokio-stream = {version = "0.1.5", features = ["net"]}
1919
tonic = {path = "../../tonic", features = ["gzip"]}

tests/extern_path/my_application/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ version = "0.1.0"
99
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1010

1111
[dependencies]
12-
prost = "0.10"
13-
prost-types = "0.10"
12+
prost = "0.11"
13+
prost-types = "0.11"
1414
tonic = {path = "../../../tonic"}
1515
uuid = {package = "uuid1", path = "../uuid"}
1616

tests/extern_path/uuid/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ version = "0.1.0"
1010

1111
[dependencies]
1212
bytes = "1.0"
13-
prost = "0.10"
13+
prost = "0.11"
1414
[build-dependencies]
15-
prost-build = "0.10"
15+
prost-build = "0.11"

0 commit comments

Comments
 (0)