Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Prepare 0.8 release #1044

Merged
merged 4 commits into from
Jul 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ jobs:
run: rustup component add rustfmt
- name: Install cargo-hack
run: cargo install cargo-hack
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: Swatinem/rust-cache@v1
- name: Check fmt
run: cargo fmt -- --check
Expand Down Expand Up @@ -59,6 +63,10 @@ jobs:
rust-version: ${{ matrix.rust }}
- name: Install rustfmt
run: rustup component add rustfmt
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: Swatinem/rust-cache@v1
- uses: actions/checkout@master
- name: Run tests
Expand All @@ -82,6 +90,10 @@ jobs:
- name: Install rustfmt
run: rustup component add rustfmt
- uses: actions/checkout@master
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: Swatinem/rust-cache@v1
- name: Run interop tests
run: ./interop/test.sh
Expand Down
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# [v0.8.0](https://github.com/hyperium/tonic/compare/v0.7.2...v0.8.0) (2022-07-29)


### Features

* Add `Grpc::with_origin` for clients ([#1017](https://github.com/hyperium/tonic/issues/1017)) ([10f6d2f](https://github.com/hyperium/tonic/commit/10f6d2f1a9fa3969599ebd674f7be27f4f458754))
* **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))
* **build:** Better support for custom codecs ([#999](https://github.com/hyperium/tonic/issues/999)) ([de2e4ac](https://github.com/hyperium/tonic/commit/de2e4ac077c076736dc451f3415ea7da1a61a560))
* Decouple `NamedService` from the `transport` feature ([#969](https://github.com/hyperium/tonic/issues/969)) ([feae96c](https://github.com/hyperium/tonic/commit/feae96c5be1247af368e6ce665c8df757d298e35))
* reflection: Export server types.
* reflection: Add `with_service_name`.

### BREAKING CHANGES

* **build:** `CODEC_PATH` moved from const to fn
* **tonic** Remove codegen depedency on `compression` feature.

# [v0.7.2](https://github.com/hyperium/tonic/compare/v0.7.1...v0.7.2) (2022-05-04)


Expand Down
4 changes: 2 additions & 2 deletions examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ path = "src/json-codec/server.rs"
[dependencies]
async-stream = "0.3"
futures = { version = "0.3", default-features = false, features = ["alloc"] }
prost = "0.10"
prost = "0.11"
tokio = { version = "1.0", features = [ "rt-multi-thread", "time", "fs", "macros", "net",] }
tokio-stream = { version = "0.1", features = ["net"] }
tonic = { path = "../tonic", features = ["tls", "gzip"] }
Expand All @@ -212,7 +212,7 @@ tracing-attributes = "0.1"
tracing-futures = "0.2"
tracing-subscriber = { version = "0.3", features = ["tracing-log"] }
# Required for wellknown types
prost-types = "0.10"
prost-types = "0.11"
# Hyper example
http = "0.2"
http-body = "0.4.2"
Expand Down
6 changes: 3 additions & 3 deletions examples/helloworld-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,12 @@ name = "helloworld-client"
path = "src/client.rs"

[dependencies]
tonic = "0.7"
prost = "0.10"
tonic = "0.8"
prost = "0.11"
tokio = { version = "1.0", features = ["macros", "rt-multi-thread"] }

[build-dependencies]
tonic-build = "0.7"
tonic-build = "0.8"
```

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:
Expand Down
6 changes: 3 additions & 3 deletions examples/routeguide-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ Edit `Cargo.toml` and add all the dependencies we'll need for this example:

```toml
[dependencies]
tonic = "0.7"
prost = "0.10"
tonic = "0.8"
prost = "0.11"
futures-core = "0.3"
futures-util = "0.3"
tokio = { version = "1.0", features = ["rt-multi-thread", "macros", "sync", "time"] }
Expand All @@ -187,7 +187,7 @@ serde_json = "1.0"
rand = "0.7"

[build-dependencies]
tonic-build = "0.7"
tonic-build = "0.8"
```

Create a `build.rs` file at the root of your crate:
Expand Down
4 changes: 2 additions & 2 deletions interop/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ futures-util = "0.3"
http = "0.2"
http-body = "0.4.2"
hyper = "0.14"
prost = "0.10"
prost-derive = "0.10"
prost = "0.11"
prost-derive = "0.11"
tokio = {version = "1.0", features = ["rt-multi-thread", "time", "macros", "fs"]}
tokio-stream = "0.1"
tonic = {path = "../tonic", features = ["tls"]}
Expand Down
2 changes: 1 addition & 1 deletion tests/ambiguous_methods/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ version = "0.1.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
prost = "0.10"
prost = "0.11"
tonic = {path = "../../tonic"}

[build-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion tests/compression/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ http = "0.2"
http-body = "0.4"
hyper = "0.14.3"
pin-project = "1.0"
prost = "0.10"
prost = "0.11"
tokio = {version = "1.0", features = ["macros", "rt-multi-thread", "net"]}
tokio-stream = {version = "0.1.5", features = ["net"]}
tonic = {path = "../../tonic", features = ["gzip"]}
Expand Down
4 changes: 2 additions & 2 deletions tests/extern_path/my_application/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ version = "0.1.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
prost = "0.10"
prost-types = "0.10"
prost = "0.11"
prost-types = "0.11"
tonic = {path = "../../../tonic"}
uuid = {package = "uuid1", path = "../uuid"}

Expand Down
4 changes: 2 additions & 2 deletions tests/extern_path/uuid/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ version = "0.1.0"

[dependencies]
bytes = "1.0"
prost = "0.10"
prost = "0.11"
[build-dependencies]
prost-build = "0.10"
prost-build = "0.11"
2 changes: 1 addition & 1 deletion tests/included_service/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ version = "0.1.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
prost = "0.10"
prost = "0.11"
tonic = {path = "../../tonic"}

[build-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ version = "0.1.0"
[dependencies]
bytes = "1.0"
futures-util = "0.3"
prost = "0.10"
prost = "0.11"
tokio = {version = "1.0", features = ["macros", "rt-multi-thread", "net"]}
tonic = {path = "../../tonic"}

Expand Down
2 changes: 1 addition & 1 deletion tests/root-crate-path/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ publish = false
version = "0.1.0"

[dependencies]
prost = "0.10"
prost = "0.11"
tonic = {path = "../../tonic"}

[build_dependencies]
Expand Down
2 changes: 1 addition & 1 deletion tests/same_name/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ version = "0.1.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
prost = "0.10"
prost = "0.11"
tonic = {path = "../../tonic"}

[build-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion tests/service_named_service/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ version = "0.1.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
prost = "0.10"
prost = "0.11"
tonic = {path = "../../tonic"}

[build-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion tests/stream_conflict/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ license = "MIT"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
prost = "0.10"
prost = "0.11"
tonic = { path = "../../tonic" }

[build-dependencies]
Expand Down
4 changes: 2 additions & 2 deletions tests/wellknown-compiled/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ version = "0.1.0"
doctest = false

[dependencies]
prost = "0.10"
prost = "0.11"
tonic = {path = "../../tonic"}

[build-dependencies]
prost-build = "0.10"
prost-build = "0.11"
tonic-build = {path = "../../tonic-build"}
4 changes: 2 additions & 2 deletions tests/wellknown/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ version = "0.1.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
prost = "0.10"
prost-types = "0.10"
prost = "0.11"
prost-types = "0.11"
tonic = {path = "../../tonic"}

[build-dependencies]
Expand Down
4 changes: 2 additions & 2 deletions tonic-build/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ license = "MIT"
name = "tonic-build"
readme = "README.md"
repository = "https://github.com/hyperium/tonic"
version = "0.7.2"
version = "0.8.0"

[dependencies]
prettyplease = {version = "0.1"}
proc-macro2 = "1.0"
prost-build = {version = "0.10", optional = true}
prost-build = {version = "0.11", optional = true}
quote = "1.0"
syn = "1.0"

Expand Down
2 changes: 1 addition & 1 deletion tonic-build/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.7.2")]
#![doc(html_root_url = "https://docs.rs/tonic-build/0.8.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))]
Expand Down
10 changes: 5 additions & 5 deletions tonic-health/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ categories = ["network-programming", "asynchronous"]
description = """
Health Checking module of `tonic` gRPC implementation.
"""
documentation = "https://docs.rs/tonic-health/0.6.0/tonic-health/"
documentation = "https://docs.rs/tonic-health/0.7.0/tonic-health/"
edition = "2018"
homepage = "https://github.com/hyperium/tonic"
keywords = ["rpc", "grpc", "async", "healthcheck"]
license = "MIT"
name = "tonic-health"
readme = "README.md"
repository = "https://github.com/hyperium/tonic"
version = "0.6.0"
version = "0.7.0"

[features]
default = ["transport"]
Expand All @@ -21,13 +21,13 @@ transport = ["tonic/transport", "tonic-build/transport"]
[dependencies]
async-stream = "0.3"
bytes = "1.0"
prost = "0.10"
prost = "0.11"
tokio = {version = "1.0", features = ["sync"]}
tokio-stream = "0.1"
tonic = {version = "0.7", path = "../tonic", features = ["codegen", "prost"]}
tonic = {version = "0.8", path = "../tonic", features = ["codegen", "prost"]}

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

[build-dependencies]
tonic-build = {version = "0.7", path = "../tonic-build", features = ["prost"]}
tonic-build = {version = "0.8", path = "../tonic-build", features = ["prost"]}
12 changes: 6 additions & 6 deletions tonic-reflection/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,24 @@ Server Reflection module of `tonic` gRPC implementation.
"""
edition = "2018"
homepage = "https://github.com/hyperium/tonic"
documentation = "https://docs.rs/tonic-reflection/0.4.0/tonic-reflection/"
documentation = "https://docs.rs/tonic-reflection/0.5.0/tonic-reflection/"
keywords = ["rpc", "grpc", "async", "reflection"]
license = "MIT"
name = "tonic-reflection"
readme = "README.md"
repository = "https://github.com/hyperium/tonic"
version = "0.4.0"
version = "0.5.0"

[dependencies]
bytes = "1.0"
prost = "0.10"
prost-types = "0.10"
prost = "0.11"
prost-types = "0.11"
tokio = {version = "1.0", features = ["sync"]}
tokio-stream = {version = "0.1", features = ["net"]}
tonic = {version = "0.7", path = "../tonic", features = ["codegen", "prost"]}
tonic = {version = "0.8", path = "../tonic", features = ["codegen", "prost"]}

[build-dependencies]
tonic-build = {version = "0.7", path = "../tonic-build", features = ["transport", "prost"]}
tonic-build = {version = "0.8", path = "../tonic-build", features = ["transport", "prost"]}

[dev-dependencies]
futures = "0.3"
Expand Down
8 changes: 4 additions & 4 deletions tonic-types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ license = "MIT"
name = "tonic-types"
readme = "../README.md"
repository = "https://github.com/hyperium/tonic"
version = "0.5.0"
version = "0.6.0"

[dependencies]
prost = "0.10"
prost-types = "0.10"
prost = "0.11"
prost-types = "0.11"

[build-dependencies]
prost-build = "0.10"
prost-build = "0.11"
2 changes: 1 addition & 1 deletion tonic-types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.5.0")]
#![doc(html_root_url = "https://docs.rs/tonic-types/0.6.0")]
#![doc(issue_tracker_base_url = "https://github.com/hyperium/tonic/issues/")]

mod pb {
Expand Down
2 changes: 1 addition & 1 deletion tonic-web/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ http = "0.2"
http-body = "0.4"
hyper = "0.14"
pin-project = "1"
tonic = {version = "0.7", path = "../tonic", default-features = false, features = ["transport"]}
tonic = {version = "0.8", path = "../tonic", default-features = false, features = ["transport"]}
tower-service = "0.3"
tracing = "0.1"

Expand Down
2 changes: 1 addition & 1 deletion tonic-web/tests/integration/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ license = "MIT"
base64 = "0.13"
bytes = "1.0"
hyper = "0.14"
prost = "0.10"
prost = "0.11"
tokio = { version = "1", features = ["macros", "rt", "net"] }
tokio-stream = { version = "0.1", features = ["net"] }
tonic = { path = "../../../tonic" }
Expand Down
8 changes: 4 additions & 4 deletions tonic/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ 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.7.2/tonic/"
documentation = "https://docs.rs/tonic/0.8.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.7.2"
version = "0.8.0"

[features]
codegen = ["async-trait"]
Expand Down Expand Up @@ -67,8 +67,8 @@ tower-layer = "0.3"
tower-service = "0.3"

# prost
prost-derive = {version = "0.10", optional = true}
prost1 = {package = "prost", version = "0.10", optional = true}
prost-derive = {version = "0.11", optional = true}
prost1 = {package = "prost", version = "0.11", optional = true}

# codegen
async-trait = {version = "0.1.13", optional = true}
Expand Down
Loading