Skip to content

Commit 047326a

Browse files
committed
Bump tonic codegen crate
1 parent 878b017 commit 047326a

File tree

4 files changed

+16
-5
lines changed

4 files changed

+16
-5
lines changed

arrow-flight/Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ bytes = { version = "1", default-features = false }
4444
futures = { version = "0.3", default-features = false, features = ["alloc"] }
4545
once_cell = { version = "1", optional = true }
4646
paste = { version = "1.0" , optional = true }
47-
prost = { version = "0.13.1", default-features = false, features = ["prost-derive"] }
47+
prost = { version = "0.13.5", default-features = false, features = ["prost-derive"] }
4848
# For Timestamp type
49-
prost-types = { version = "0.13.1", default-features = false }
49+
prost-types = { version = "0.13.5", default-features = false }
5050
tokio = { version = "1.0", default-features = false, features = ["macros", "rt", "rt-multi-thread"], optional = true }
5151
tonic = { version = "0.13.0", default-features = false, features = ["transport", "codegen", "prost"] }
5252

@@ -74,6 +74,7 @@ http = "1.1.0"
7474
http-body = "1.0.0"
7575
hyper-util = "0.1"
7676
pin-project-lite = "0.2"
77+
rustls = { version = "0.23", default-features = false, features = ["ring"] }
7778
tempfile = "3.3"
7879
tracing-log = { version = "0.2" }
7980
tracing-subscriber = { version = "0.3.1", default-features = false, features = ["ansi", "env-filter", "fmt"] }

arrow-flight/examples/flight_sql_server.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -813,7 +813,7 @@ mod tests {
813813
async fn bind_tcp() -> (TcpIncoming, SocketAddr) {
814814
let listener = TcpListener::bind("0.0.0.0:0").await.unwrap();
815815
let addr = listener.local_addr().unwrap();
816-
let incoming = TcpIncoming::from_listener(listener, true, None).unwrap();
816+
let incoming = TcpIncoming::from(listener);
817817
(incoming, addr)
818818
}
819819

@@ -917,6 +917,9 @@ mod tests {
917917

918918
let svc = FlightServiceServer::new(FlightSqlServiceImpl {});
919919

920+
// Set dafault crypto provider to use
921+
// See: https://docs.rs/rustls/latest/rustls/crypto/struct.CryptoProvider.html#using-the-per-process-default-cryptoprovider
922+
rustls::crypto::ring::default_provider();
920923
let serve_future = Server::builder()
921924
.tls_config(tls_config)
922925
.unwrap()
@@ -965,6 +968,11 @@ mod tests {
965968
#[tokio::test]
966969
async fn test_select() {
967970
test_all_clients(|mut client| async move {
971+
// rustls_provider_example::provider().into())
972+
// let client_provider = rustls::ClientConfig::builder().build().unwrap();
973+
// rustls::crypto::CryptoProvider::install_default(rustls::crypto::CryptoProvider::from_c)
974+
// .unwrap();
975+
// println!("default installed");
968976
auth_client(&mut client).await;
969977

970978
let mut stmt = client.prepare("select 1;".to_string(), None).await.unwrap();

arrow-flight/gen/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ publish = false
3333
# Pin specific version of the tonic-build dependencies to avoid auto-generated
3434
# (and checked in) arrow.flight.protocol.rs from changing
3535
prost-build = { version = "=0.13.5", default-features = false }
36-
tonic-build = { version = "=0.12.3", default-features = false, features = ["transport", "prost"] }
36+
tonic-build = { version = "=0.13.0", default-features = false, features = ["transport", "prost"] }

arrow-flight/src/arrow.flight.protocol.rs

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)