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!: bump tonic to 0.12 for hyper 1.0 ecosystem #57

Merged
merged 2 commits into from
Jul 10, 2024
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
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Breaking changes

* Update to **tonic** 0.12
* Update to **prost** 0.13

## 0.7.2 (2024-04-22)

### Fixed
Expand Down
4 changes: 2 additions & 2 deletions ginepro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ readme = "../README.md"
[dependencies]
anyhow = "1"
async-trait = "0.1"
http = "0.2"
http = "1"
thiserror = "1"
tokio = { version = "1", features = ["full"] }
tonic = { version = ">=0.10,<0.12", features = ["tls"] }
tonic = { version = "0.12", features = ["tls"] }
tower = { version = "0.4", default-features = false, features = ["discover"] }
tracing = "0.1"
trust-dns-resolver = "0.23"
Expand Down
6 changes: 3 additions & 3 deletions shared_proto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ edition = "2021"
publish = false

[dependencies]
prost = "0.12"
tonic = "0.11"
prost = "0.13"
tonic = "0.12"

[build-dependencies]
tonic-build = "0.11"
tonic-build = "0.12"
6 changes: 3 additions & 3 deletions tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ publish = false
ginepro = { path = "../ginepro" }

futures = "0.3"
hyper = "0.14"
hyper = "1"
openssl = "0.10"
tokio = { version = "1", features = ["full"] }
tokio-stream = { version = "0.1", features = ["net"] }
tonic = { version = "0.11", features = ["tls"] }
tonic = { version = "0.12", features = ["tls"] }
tower-layer = "0.3"
tower-service = "0.3"
tracing = { version = "0.1", features = ["attributes", "log"] }
Expand All @@ -22,4 +22,4 @@ tracing = { version = "0.1", features = ["attributes", "log"] }
anyhow = "1"
async-trait = "0.1"
shared-proto = { path = "../shared_proto" }
tonic-health = "0.11"
tonic-health = "0.12"
15 changes: 8 additions & 7 deletions tests/src/test_server.rs
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
use futures::future::FutureExt;
use hyper::{Body, Request, Response};
use hyper::{Request, Response};
use std::{
convert::Infallible,
time::{Duration, Instant},
};
use tokio::net::{TcpListener, TcpStream};
use tokio_stream::wrappers::TcpListenerStream;
use tonic::server::NamedService;
use tonic::{
body::BoxBody,
transport::{
server::{Router, Routes, Server},
server::{Router, Server},
ServerTlsConfig,
},
};
use tonic::{server::NamedService, service::Routes};
use tower_layer::Layer;
use tower_service::Service;

Expand Down Expand Up @@ -45,7 +45,7 @@ impl TestServer {
tls: Option<ServerTlsConfig>,
) -> Self
where
S: Service<Request<Body>, Response = Response<BoxBody>, Error = Infallible>
S: Service<Request<BoxBody>, Response = Response<BoxBody>, Error = Infallible>
+ NamedService
+ Clone
+ Send
Expand Down Expand Up @@ -86,9 +86,10 @@ impl TestServer {
pub async fn start_with_router<L, T>(router: Router<L>, address: T) -> TestServer
where
L: Layer<Routes> + Send + 'static,
L::Service: Service<Request<Body>, Response = Response<BoxBody>> + Clone + Send + 'static,
<<L as Layer<Routes>>::Service as Service<Request<Body>>>::Future: Send + 'static,
<<L as Layer<Routes>>::Service as Service<Request<Body>>>::Error:
L::Service:
Service<Request<BoxBody>, Response = Response<BoxBody>> + Clone + Send + 'static,
<<L as Layer<Routes>>::Service as Service<Request<BoxBody>>>::Future: Send + 'static,
<<L as Layer<Routes>>::Service as Service<Request<BoxBody>>>::Error:
Into<Box<dyn std::error::Error + Send + Sync>> + Send,
T: Into<Option<String>>,
{
Expand Down
Loading