Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: hyperium/tonic
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.7.0
Choose a base ref
...
head repository: hyperium/tonic
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.7.1
Choose a head ref
  • 5 commits
  • 6 files changed
  • 2 contributors

Commits on Apr 1, 2022

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    c097052 View commit details
  2. Verified

    This commit was signed with the committer’s verified signature.
    darinpope Darin Pope
    Copy the full SHA
    738ccba View commit details

Commits on Apr 4, 2022

  1. Copy the full SHA
    f1ca90f View commit details
  2. Copy the full SHA
    88695c0 View commit details
  3. bump tonic to 0.7.1

    LucioFranco committed Apr 4, 2022
    Copy the full SHA
    9836977 View commit details
Showing with 57 additions and 44 deletions.
  1. +7 −0 CHANGELOG.md
  2. +36 −37 interop/src/bin/client.rs
  3. +3 −3 tonic-web/README.md
  4. +5 −2 tonic/Cargo.toml
  5. +4 −2 tonic/src/lib.rs
  6. +2 −0 tonic/src/transport/mod.rs
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# [0.7.1](https://github.com/hyperium/tonic/compare/v0.7.0...v0.7.1) (2022-04-04)

### Features

* **transport:** Add `channel` feature flag ([#960](https://github.com/hyperium/tonic/issues/960)) ([f1ca90f](https://github.com/hyperium/tonic/commit/f1ca90f2882925c30f96ef60ccfd4fe39bc2c93b))


# [0.7.0](https://github.com/hyperium/tonic/compare/v0.6.2...v0.7.0) (2022-03-31)

### Breaking Changes
73 changes: 36 additions & 37 deletions interop/src/bin/client.rs
Original file line number Diff line number Diff line change
@@ -53,29 +53,29 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
let mut test_results = Vec::new();

match test_case {
Testcase::empty_unary => client::empty_unary(&mut client, &mut test_results).await,
Testcase::large_unary => client::large_unary(&mut client, &mut test_results).await,
Testcase::client_streaming => {
Testcase::EmptyUnary => client::empty_unary(&mut client, &mut test_results).await,
Testcase::LargeUnary => client::large_unary(&mut client, &mut test_results).await,
Testcase::ClientStreaming => {
client::client_streaming(&mut client, &mut test_results).await
}
Testcase::server_streaming => {
Testcase::ServerStreaming => {
client::server_streaming(&mut client, &mut test_results).await
}
Testcase::ping_pong => client::ping_pong(&mut client, &mut test_results).await,
Testcase::empty_stream => client::empty_stream(&mut client, &mut test_results).await,
Testcase::status_code_and_message => {
Testcase::PingPong => client::ping_pong(&mut client, &mut test_results).await,
Testcase::EmptyStream => client::empty_stream(&mut client, &mut test_results).await,
Testcase::StatusCodeAndMessage => {
client::status_code_and_message(&mut client, &mut test_results).await
}
Testcase::special_status_message => {
Testcase::SpecialStatusMessage => {
client::special_status_message(&mut client, &mut test_results).await
}
Testcase::unimplemented_method => {
Testcase::UnimplementedMethod => {
client::unimplemented_method(&mut client, &mut test_results).await
}
Testcase::unimplemented_service => {
Testcase::UnimplementedService => {
client::unimplemented_service(&mut unimplemented_client, &mut test_results).await
}
Testcase::custom_metadata => {
Testcase::CustomMetadata => {
client::custom_metadata(&mut client, &mut test_results).await
}
_ => unimplemented!(),
@@ -99,31 +99,30 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
}

#[derive(Debug, Copy, Clone, clap::ArgEnum)]
#[clap(rename_all = "verbatim")]
#[allow(non_camel_case_types)]
#[clap(rename_all = "snake_case")]
enum Testcase {
empty_unary,
cacheable_unary,
large_unary,
client_compressed_unary,
server_compressed_unary,
client_streaming,
client_compressed_streaming,
server_streaming,
server_compressed_streaming,
ping_pong,
empty_stream,
compute_engine_creds,
jwt_token_creds,
oauth2_auth_token,
per_rpc_creds,
custom_metadata,
status_code_and_message,
special_status_message,
unimplemented_method,
unimplemented_service,
cancel_after_begin,
cancel_after_first_response,
timeout_on_sleeping_server,
concurrent_large_unary,
EmptyUnary,
CacheableUnary,
LargeUnary,
ClientCompressedUnary,
ServerCompressedUnary,
ClientStreaming,
ClientCompressedStreaming,
ServerStreaming,
ServerCompressedStreaming,
PingPong,
EmptyStream,
ComputeEngineCreds,
JwtTokenCreds,
Oauth2AuthToken,
PerRpcCreds,
CustomMetadata,
StatusCodeAndMessage,
SpecialStatusMessage,
UnimplementedMethod,
UnimplementedService,
CancelAfterBegin,
CancelAfterFirstResponse,
TimeoutOnSleepingServer,
ConcurrentLargeUnary,
}
6 changes: 3 additions & 3 deletions tonic-web/README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# tonic-web

Enables tonic servers to handle requests from `grpc-web` clients directly,
without the need of an external proxy.
without the need of an external proxy.

## Getting Started

```toml
[dependencies]
tonic_web = "0.1"
tonic-web = "<tonic-web-version>"
```

## Enabling tonic services
@@ -35,4 +35,4 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {

See [the examples folder][example] for a server and client example.

[example]: https://github.com/hyperium/tonic/tree/master/examples/src/tower
[example]: https://github.com/hyperium/tonic/tree/master/examples/src/grpc-web
7 changes: 5 additions & 2 deletions tonic/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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.0/tonic/"
documentation = "https://docs.rs/tonic/0.7.1/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.0"
version = "0.7.1"

[features]
codegen = ["async-trait"]
@@ -33,6 +33,9 @@ tls-roots-common = ["tls"]
tls-webpki-roots = ["tls-roots-common", "webpki-roots"]
transport = [
"axum",
"channel"
]
channel = [
"h2",
"hyper",
"tokio",
6 changes: 4 additions & 2 deletions tonic/src/lib.rs
Original file line number Diff line number Diff line change
@@ -17,7 +17,9 @@
//! # Feature Flags
//!
//! - `transport`: Enables the fully featured, batteries included client and server
//! implementation based on [`hyper`], [`tower`] and [`tokio`]. Enabled by default.
//! implementation based on [`hyper`], [`tower`] and [`tokio`]. Enabled by default.
//! - `channel`: Enables just the full featured channel/client portion of the `transport`
//! feature.
//! - `codegen`: Enables all the required exports and optional dependencies required
//! for [`tonic-build`]. Enabled by default.
//! - `tls`: Enables the `rustls` based TLS options for the `transport` feature. Not
@@ -79,7 +81,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.7.0")]
#![doc(html_root_url = "https://docs.rs/tonic/0.7.1")]
#![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))]
2 changes: 2 additions & 0 deletions tonic/src/transport/mod.rs
Original file line number Diff line number Diff line change
@@ -94,6 +94,8 @@ mod service;
mod tls;

#[doc(inline)]
#[cfg(feature = "channel")]
#[cfg_attr(docsrs, doc(cfg(feature = "channel")))]
pub use self::channel::{Channel, Endpoint};
pub use self::error::Error;
#[doc(inline)]