chore: Prepare 0.8 release (#1044)

This commit is contained in:
Lucio Franco
2022-07-29 16:45:57 -04:00
parent 2a7c610011
commit ec359ba35f
29 changed files with 84 additions and 55 deletions
+12
View File
@@ -26,6 +26,10 @@ jobs:
run: rustup component add rustfmt run: rustup component add rustfmt
- name: Install cargo-hack - name: Install cargo-hack
run: cargo 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 - uses: Swatinem/rust-cache@v1
- name: Check fmt - name: Check fmt
run: cargo fmt -- --check run: cargo fmt -- --check
@@ -59,6 +63,10 @@ jobs:
rust-version: ${{ matrix.rust }} rust-version: ${{ matrix.rust }}
- name: Install rustfmt - name: Install rustfmt
run: rustup component add 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: Swatinem/rust-cache@v1
- uses: actions/checkout@master - uses: actions/checkout@master
- name: Run tests - name: Run tests
@@ -82,6 +90,10 @@ jobs:
- name: Install rustfmt - name: Install rustfmt
run: rustup component add rustfmt run: rustup component add rustfmt
- uses: actions/checkout@master - uses: actions/checkout@master
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: Swatinem/rust-cache@v1 - uses: Swatinem/rust-cache@v1
- name: Run interop tests - name: Run interop tests
run: ./interop/test.sh run: ./interop/test.sh
+17
View File
@@ -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) # [v0.7.2](https://github.com/hyperium/tonic/compare/v0.7.1...v0.7.2) (2022-05-04)
+2 -2
View File
@@ -197,7 +197,7 @@ path = "src/json-codec/server.rs"
[dependencies] [dependencies]
async-stream = "0.3" async-stream = "0.3"
futures = { version = "0.3", default-features = false, features = ["alloc"] } 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 = { version = "1.0", features = [ "rt-multi-thread", "time", "fs", "macros", "net",] }
tokio-stream = { version = "0.1", features = ["net"] } tokio-stream = { version = "0.1", features = ["net"] }
tonic = { path = "../tonic", features = ["tls", "gzip"] } tonic = { path = "../tonic", features = ["tls", "gzip"] }
@@ -212,7 +212,7 @@ tracing-attributes = "0.1"
tracing-futures = "0.2" tracing-futures = "0.2"
tracing-subscriber = { version = "0.3", features = ["tracing-log"] } tracing-subscriber = { version = "0.3", features = ["tracing-log"] }
# Required for wellknown types # Required for wellknown types
prost-types = "0.10" prost-types = "0.11"
# Hyper example # Hyper example
http = "0.2" http = "0.2"
http-body = "0.4.2" http-body = "0.4.2"
+3 -3
View File
@@ -112,12 +112,12 @@ name = "helloworld-client"
path = "src/client.rs" path = "src/client.rs"
[dependencies] [dependencies]
tonic = "0.7" tonic = "0.8"
prost = "0.10" prost = "0.11"
tokio = { version = "1.0", features = ["macros", "rt-multi-thread"] } tokio = { version = "1.0", features = ["macros", "rt-multi-thread"] }
[build-dependencies] [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: 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:
+3 -3
View File
@@ -174,8 +174,8 @@ Edit `Cargo.toml` and add all the dependencies we'll need for this example:
```toml ```toml
[dependencies] [dependencies]
tonic = "0.7" tonic = "0.8"
prost = "0.10" prost = "0.11"
futures-core = "0.3" futures-core = "0.3"
futures-util = "0.3" futures-util = "0.3"
tokio = { version = "1.0", features = ["rt-multi-thread", "macros", "sync", "time"] } tokio = { version = "1.0", features = ["rt-multi-thread", "macros", "sync", "time"] }
@@ -187,7 +187,7 @@ serde_json = "1.0"
rand = "0.7" rand = "0.7"
[build-dependencies] [build-dependencies]
tonic-build = "0.7" tonic-build = "0.8"
``` ```
Create a `build.rs` file at the root of your crate: Create a `build.rs` file at the root of your crate:
+2 -2
View File
@@ -24,8 +24,8 @@ futures-util = "0.3"
http = "0.2" http = "0.2"
http-body = "0.4.2" http-body = "0.4.2"
hyper = "0.14" hyper = "0.14"
prost = "0.10" prost = "0.11"
prost-derive = "0.10" prost-derive = "0.11"
tokio = {version = "1.0", features = ["rt-multi-thread", "time", "macros", "fs"]} tokio = {version = "1.0", features = ["rt-multi-thread", "time", "macros", "fs"]}
tokio-stream = "0.1" tokio-stream = "0.1"
tonic = {path = "../tonic", features = ["tls"]} tonic = {path = "../tonic", features = ["tls"]}
+1 -1
View File
@@ -9,7 +9,7 @@ version = "0.1.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
prost = "0.10" prost = "0.11"
tonic = {path = "../../tonic"} tonic = {path = "../../tonic"}
[build-dependencies] [build-dependencies]
+1 -1
View File
@@ -13,7 +13,7 @@ http = "0.2"
http-body = "0.4" http-body = "0.4"
hyper = "0.14.3" hyper = "0.14.3"
pin-project = "1.0" pin-project = "1.0"
prost = "0.10" prost = "0.11"
tokio = {version = "1.0", features = ["macros", "rt-multi-thread", "net"]} tokio = {version = "1.0", features = ["macros", "rt-multi-thread", "net"]}
tokio-stream = {version = "0.1.5", features = ["net"]} tokio-stream = {version = "0.1.5", features = ["net"]}
tonic = {path = "../../tonic", features = ["gzip"]} tonic = {path = "../../tonic", features = ["gzip"]}
+2 -2
View File
@@ -9,8 +9,8 @@ version = "0.1.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
prost = "0.10" prost = "0.11"
prost-types = "0.10" prost-types = "0.11"
tonic = {path = "../../../tonic"} tonic = {path = "../../../tonic"}
uuid = {package = "uuid1", path = "../uuid"} uuid = {package = "uuid1", path = "../uuid"}
+2 -2
View File
@@ -10,6 +10,6 @@ version = "0.1.0"
[dependencies] [dependencies]
bytes = "1.0" bytes = "1.0"
prost = "0.10" prost = "0.11"
[build-dependencies] [build-dependencies]
prost-build = "0.10" prost-build = "0.11"
+1 -1
View File
@@ -9,7 +9,7 @@ version = "0.1.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
prost = "0.10" prost = "0.11"
tonic = {path = "../../tonic"} tonic = {path = "../../tonic"}
[build-dependencies] [build-dependencies]
+1 -1
View File
@@ -11,7 +11,7 @@ version = "0.1.0"
[dependencies] [dependencies]
bytes = "1.0" bytes = "1.0"
futures-util = "0.3" futures-util = "0.3"
prost = "0.10" prost = "0.11"
tokio = {version = "1.0", features = ["macros", "rt-multi-thread", "net"]} tokio = {version = "1.0", features = ["macros", "rt-multi-thread", "net"]}
tonic = {path = "../../tonic"} tonic = {path = "../../tonic"}
+1 -1
View File
@@ -7,7 +7,7 @@ publish = false
version = "0.1.0" version = "0.1.0"
[dependencies] [dependencies]
prost = "0.10" prost = "0.11"
tonic = {path = "../../tonic"} tonic = {path = "../../tonic"}
[build_dependencies] [build_dependencies]
+1 -1
View File
@@ -9,7 +9,7 @@ version = "0.1.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
prost = "0.10" prost = "0.11"
tonic = {path = "../../tonic"} tonic = {path = "../../tonic"}
[build-dependencies] [build-dependencies]
+1 -1
View File
@@ -9,7 +9,7 @@ version = "0.1.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
prost = "0.10" prost = "0.11"
tonic = {path = "../../tonic"} tonic = {path = "../../tonic"}
[build-dependencies] [build-dependencies]
+1 -1
View File
@@ -9,7 +9,7 @@ license = "MIT"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
prost = "0.10" prost = "0.11"
tonic = { path = "../../tonic" } tonic = { path = "../../tonic" }
[build-dependencies] [build-dependencies]
+2 -2
View File
@@ -12,9 +12,9 @@ version = "0.1.0"
doctest = false doctest = false
[dependencies] [dependencies]
prost = "0.10" prost = "0.11"
tonic = {path = "../../tonic"} tonic = {path = "../../tonic"}
[build-dependencies] [build-dependencies]
prost-build = "0.10" prost-build = "0.11"
tonic-build = {path = "../../tonic-build"} tonic-build = {path = "../../tonic-build"}
+2 -2
View File
@@ -9,8 +9,8 @@ version = "0.1.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
prost = "0.10" prost = "0.11"
prost-types = "0.10" prost-types = "0.11"
tonic = {path = "../../tonic"} tonic = {path = "../../tonic"}
[build-dependencies] [build-dependencies]
+2 -2
View File
@@ -12,12 +12,12 @@ license = "MIT"
name = "tonic-build" name = "tonic-build"
readme = "README.md" readme = "README.md"
repository = "https://github.com/hyperium/tonic" repository = "https://github.com/hyperium/tonic"
version = "0.7.2" version = "0.8.0"
[dependencies] [dependencies]
prettyplease = {version = "0.1"} prettyplease = {version = "0.1"}
proc-macro2 = "1.0" proc-macro2 = "1.0"
prost-build = {version = "0.10", optional = true} prost-build = {version = "0.11", optional = true}
quote = "1.0" quote = "1.0"
syn = "1.0" syn = "1.0"
+1 -1
View File
@@ -62,7 +62,7 @@
html_logo_url = "https://raw.githubusercontent.com/tokio-rs/website/master/public/img/icons/tonic.svg" html_logo_url = "https://raw.githubusercontent.com/tokio-rs/website/master/public/img/icons/tonic.svg"
)] )]
#![deny(rustdoc::broken_intra_doc_links)] #![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(issue_tracker_base_url = "https://github.com/hyperium/tonic/issues/")]
#![doc(test(no_crate_inject, attr(deny(rust_2018_idioms))))] #![doc(test(no_crate_inject, attr(deny(rust_2018_idioms))))]
#![cfg_attr(docsrs, feature(doc_cfg))] #![cfg_attr(docsrs, feature(doc_cfg))]
+5 -5
View File
@@ -4,7 +4,7 @@ categories = ["network-programming", "asynchronous"]
description = """ description = """
Health Checking module of `tonic` gRPC implementation. 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" edition = "2018"
homepage = "https://github.com/hyperium/tonic" homepage = "https://github.com/hyperium/tonic"
keywords = ["rpc", "grpc", "async", "healthcheck"] keywords = ["rpc", "grpc", "async", "healthcheck"]
@@ -12,7 +12,7 @@ license = "MIT"
name = "tonic-health" name = "tonic-health"
readme = "README.md" readme = "README.md"
repository = "https://github.com/hyperium/tonic" repository = "https://github.com/hyperium/tonic"
version = "0.6.0" version = "0.7.0"
[features] [features]
default = ["transport"] default = ["transport"]
@@ -21,13 +21,13 @@ transport = ["tonic/transport", "tonic-build/transport"]
[dependencies] [dependencies]
async-stream = "0.3" async-stream = "0.3"
bytes = "1.0" bytes = "1.0"
prost = "0.10" prost = "0.11"
tokio = {version = "1.0", features = ["sync"]} tokio = {version = "1.0", features = ["sync"]}
tokio-stream = "0.1" tokio-stream = "0.1"
tonic = {version = "0.7", path = "../tonic", features = ["codegen", "prost"]} tonic = {version = "0.8", path = "../tonic", features = ["codegen", "prost"]}
[dev-dependencies] [dev-dependencies]
tokio = {version = "1.0", features = ["rt-multi-thread", "macros"]} tokio = {version = "1.0", features = ["rt-multi-thread", "macros"]}
[build-dependencies] [build-dependencies]
tonic-build = {version = "0.7", path = "../tonic-build", features = ["prost"]} tonic-build = {version = "0.8", path = "../tonic-build", features = ["prost"]}
+6 -6
View File
@@ -9,24 +9,24 @@ Server Reflection module of `tonic` gRPC implementation.
""" """
edition = "2018" edition = "2018"
homepage = "https://github.com/hyperium/tonic" 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"] keywords = ["rpc", "grpc", "async", "reflection"]
license = "MIT" license = "MIT"
name = "tonic-reflection" name = "tonic-reflection"
readme = "README.md" readme = "README.md"
repository = "https://github.com/hyperium/tonic" repository = "https://github.com/hyperium/tonic"
version = "0.4.0" version = "0.5.0"
[dependencies] [dependencies]
bytes = "1.0" bytes = "1.0"
prost = "0.10" prost = "0.11"
prost-types = "0.10" prost-types = "0.11"
tokio = {version = "1.0", features = ["sync"]} tokio = {version = "1.0", features = ["sync"]}
tokio-stream = {version = "0.1", features = ["net"]} 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] [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] [dev-dependencies]
futures = "0.3" futures = "0.3"
+4 -4
View File
@@ -12,11 +12,11 @@ license = "MIT"
name = "tonic-types" name = "tonic-types"
readme = "../README.md" readme = "../README.md"
repository = "https://github.com/hyperium/tonic" repository = "https://github.com/hyperium/tonic"
version = "0.5.0" version = "0.6.0"
[dependencies] [dependencies]
prost = "0.10" prost = "0.11"
prost-types = "0.10" prost-types = "0.11"
[build-dependencies] [build-dependencies]
prost-build = "0.10" prost-build = "0.11"
+1 -1
View File
@@ -10,7 +10,7 @@
html_logo_url = "https://raw.githubusercontent.com/tokio-rs/website/master/public/img/icons/tonic.svg" html_logo_url = "https://raw.githubusercontent.com/tokio-rs/website/master/public/img/icons/tonic.svg"
)] )]
#![deny(rustdoc::broken_intra_doc_links)] #![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/")] #![doc(issue_tracker_base_url = "https://github.com/hyperium/tonic/issues/")]
mod pb { mod pb {
+3 -3
View File
@@ -4,7 +4,7 @@ categories = ["network-programming", "asynchronous"]
description = """ description = """
grpc-web protocol translation for tonic services. grpc-web protocol translation for tonic services.
""" """
documentation = "https://docs.rs/tonic-web/0.3.0/tonic-web/" documentation = "https://docs.rs/tonic-web/0.4.0/tonic-web/"
edition = "2018" edition = "2018"
homepage = "https://github.com/hyperium/tonic" homepage = "https://github.com/hyperium/tonic"
keywords = ["rpc", "grpc", "grpc-web"] keywords = ["rpc", "grpc", "grpc-web"]
@@ -12,7 +12,7 @@ license = "MIT"
name = "tonic-web" name = "tonic-web"
readme = "README.md" readme = "README.md"
repository = "https://github.com/hyperium/tonic" repository = "https://github.com/hyperium/tonic"
version = "0.3.0" version = "0.4.0"
[dependencies] [dependencies]
base64 = "0.13" base64 = "0.13"
@@ -22,7 +22,7 @@ http = "0.2"
http-body = "0.4" http-body = "0.4"
hyper = "0.14" hyper = "0.14"
pin-project = "1" 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" tower-service = "0.3"
tracing = "0.1" tracing = "0.1"
+1 -1
View File
@@ -84,7 +84,7 @@
rust_2018_idioms, rust_2018_idioms,
unreachable_pub unreachable_pub
)] )]
#![doc(html_root_url = "https://docs.rs/tonic-web/0.3.0")] #![doc(html_root_url = "https://docs.rs/tonic-web/0.4.0")]
#![doc(issue_tracker_base_url = "https://github.com/hyperium/tonic/issues/")] #![doc(issue_tracker_base_url = "https://github.com/hyperium/tonic/issues/")]
pub use config::Config; pub use config::Config;
+1 -1
View File
@@ -10,7 +10,7 @@ license = "MIT"
base64 = "0.13" base64 = "0.13"
bytes = "1.0" bytes = "1.0"
hyper = "0.14" hyper = "0.14"
prost = "0.10" prost = "0.11"
tokio = { version = "1", features = ["macros", "rt", "net"] } tokio = { version = "1", features = ["macros", "rt", "net"] }
tokio-stream = { version = "0.1", features = ["net"] } tokio-stream = { version = "0.1", features = ["net"] }
tonic = { path = "../../../tonic" } tonic = { path = "../../../tonic" }
+4 -4
View File
@@ -13,14 +13,14 @@ categories = ["web-programming", "network-programming", "asynchronous"]
description = """ description = """
A gRPC over HTTP/2 implementation focused on high performance, interoperability, and flexibility. 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" edition = "2018"
homepage = "https://github.com/hyperium/tonic" homepage = "https://github.com/hyperium/tonic"
keywords = ["rpc", "grpc", "async", "futures", "protobuf"] keywords = ["rpc", "grpc", "async", "futures", "protobuf"]
license = "MIT" license = "MIT"
readme = "../README.md" readme = "../README.md"
repository = "https://github.com/hyperium/tonic" repository = "https://github.com/hyperium/tonic"
version = "0.7.2" version = "0.8.0"
[features] [features]
codegen = ["async-trait"] codegen = ["async-trait"]
@@ -67,8 +67,8 @@ tower-layer = "0.3"
tower-service = "0.3" tower-service = "0.3"
# prost # prost
prost-derive = {version = "0.10", optional = true} prost-derive = {version = "0.11", optional = true}
prost1 = {package = "prost", version = "0.10", optional = true} prost1 = {package = "prost", version = "0.11", optional = true}
# codegen # codegen
async-trait = {version = "0.1.13", optional = true} async-trait = {version = "0.1.13", optional = true}
+1 -1
View File
@@ -81,7 +81,7 @@
#![doc( #![doc(
html_logo_url = "https://raw.githubusercontent.com/tokio-rs/website/master/public/img/icons/tonic.svg" 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.7.2")] #![doc(html_root_url = "https://docs.rs/tonic/0.8.0")]
#![doc(issue_tracker_base_url = "https://github.com/hyperium/tonic/issues/")] #![doc(issue_tracker_base_url = "https://github.com/hyperium/tonic/issues/")]
#![doc(test(no_crate_inject, attr(deny(rust_2018_idioms))))] #![doc(test(no_crate_inject, attr(deny(rust_2018_idioms))))]
#![cfg_attr(docsrs, feature(doc_cfg))] #![cfg_attr(docsrs, feature(doc_cfg))]