From d06b8a124586a798e7b34ad441b560fd79653ddf Mon Sep 17 00:00:00 2001 From: teodordelibasic-db Date: Fri, 6 Feb 2026 13:33:02 +0000 Subject: [PATCH] Initial commit Signed-off-by: teodordelibasic-db --- examples/proto/batch/Cargo.toml | 9 ++++----- examples/proto/single/Cargo.toml | 9 ++++----- ffi/Cargo.toml | 4 ++-- jni/Cargo.toml | 10 +++++----- sdk/Cargo.toml | 17 +++++++++-------- sdk/build.rs | 2 +- tests/Cargo.toml | 17 +++++++++-------- tests/build.rs | 2 +- tools/generate_files/Cargo.toml | 7 ++++--- tools/generate_files/src/generate.rs | 2 +- 10 files changed, 40 insertions(+), 39 deletions(-) diff --git a/examples/proto/batch/Cargo.toml b/examples/proto/batch/Cargo.toml index e614f2e..c8b9b07 100644 --- a/examples/proto/batch/Cargo.toml +++ b/examples/proto/batch/Cargo.toml @@ -6,12 +6,11 @@ publish = false [dependencies] databricks-zerobus-ingest-sdk = { path = "../../../sdk" } -tonic-build = "0.13.1" -prost = "0.13.3" -prost-build = "0.12" -prost-reflect = "0.14.2" +tonic-prost-build = "0.14" +prost = "0.14" +prost-reflect = "0.16" tokio = { version = "1.0", features = ["macros", "rt-multi-thread"] } tokio-stream = "0.1.16" -tonic = { version = "0.12.3", features = ["tls"] } +tonic = "0.14" tracing = "0.1.41" chrono = "0.4" diff --git a/examples/proto/single/Cargo.toml b/examples/proto/single/Cargo.toml index c1291ec..02f2153 100644 --- a/examples/proto/single/Cargo.toml +++ b/examples/proto/single/Cargo.toml @@ -6,12 +6,11 @@ publish = false [dependencies] databricks-zerobus-ingest-sdk = { path = "../../../sdk" } -tonic-build = "0.13.1" -prost = "0.13.3" -prost-build = "0.12" -prost-reflect = "0.14.2" +tonic-prost-build = "0.14" +prost = "0.14" +prost-reflect = "0.16" tokio = { version = "1.0", features = ["macros", "rt-multi-thread"] } tokio-stream = "0.1.16" -tonic = { version = "0.12.3", features = ["tls"] } +tonic = "0.14" tracing = "0.1.41" chrono = "0.4" diff --git a/ffi/Cargo.toml b/ffi/Cargo.toml index e49c7e6..b79cff8 100644 --- a/ffi/Cargo.toml +++ b/ffi/Cargo.toml @@ -16,8 +16,8 @@ databricks-zerobus-ingest-sdk = { path = "../sdk" } # FFI helpers tokio = { version = "1.42", features = ["rt", "rt-multi-thread"] } once_cell = "1.19" -prost = "0.13.3" -prost-types = "0.13.3" +prost = "0.14" +prost-types = "0.14" async-trait = "0.1" libc = "0.2" diff --git a/jni/Cargo.toml b/jni/Cargo.toml index 74794d0..791f766 100644 --- a/jni/Cargo.toml +++ b/jni/Cargo.toml @@ -17,15 +17,15 @@ name = "zerobus_jni" databricks-zerobus-ingest-sdk = { path = "../sdk", features = ["arrow-flight"] } jni = "0.21" tokio = { version = "1.42", features = ["rt-multi-thread", "sync"] } -prost = "0.13" -prost-types = "0.13" +prost = "0.14" +prost-types = "0.14" thiserror = "1.0" tracing = "0.1" # Arrow dependencies (re-exported from SDK) -arrow-array = "56.2.0" -arrow-schema = "56.2.0" -arrow-ipc = { version = "56.2.0", features = ["lz4", "zstd"] } +arrow-array = "57" +arrow-schema = "57" +arrow-ipc = { version = "57", features = ["lz4", "zstd"] } [features] default = [] diff --git a/sdk/Cargo.toml b/sdk/Cargo.toml index 33eee61..d8d770f 100644 --- a/sdk/Cargo.toml +++ b/sdk/Cargo.toml @@ -14,8 +14,8 @@ documentation = "https://docs.rs/databricks-zerobus-ingest-sdk" [dependencies] async-trait = "0.1" -prost = "0.13.3" -prost-types = "0.13.3" +prost = "0.14" +prost-types = "0.14" reqwest = { version = "0.12", features = ["json", "rustls-tls"], default-features = false } serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" @@ -24,19 +24,20 @@ tokio = { version = "1.42.0", features = ["macros", "rt-multi-thread", "fs", "sy tokio-retry = "0.3" tokio-stream = "0.1.16" tokio-util = { version = "0.7.17", features = ["rt"] } -tonic = { version = "0.13", features = ["tls-native-roots", "transport"] } +tonic = { version = "0.14", features = ["tls-native-roots", "transport"] } +tonic-prost = "0.14" tracing = "0.1.41" smallvec = "1.15.1" # Arrow Flight dependencies -arrow-flight = { version = "56.2.0", default-features = false, optional = true } -arrow-array = { version = "56.2.0", default-features = false, optional = true } -arrow-schema = { version = "56.2.0", default-features = false, optional = true } -arrow-ipc = { version = "56.2.0", default-features = false, optional = true, features = ["lz4","zstd"] } +arrow-flight = { version = "57", default-features = false, optional = true } +arrow-array = { version = "57", default-features = false, optional = true } +arrow-schema = { version = "57", default-features = false, optional = true } +arrow-ipc = { version = "57", default-features = false, optional = true, features = ["lz4","zstd"] } futures = { version = "0.3", optional = true } [build-dependencies] -tonic-build = "0.13" +tonic-prost-build = "0.14" protoc-bin-vendored = "3.0.0" [features] diff --git a/sdk/build.rs b/sdk/build.rs index 54001c7..9588468 100644 --- a/sdk/build.rs +++ b/sdk/build.rs @@ -1,5 +1,5 @@ fn main() { std::env::set_var("PROTOC", protoc_bin_vendored::protoc_bin_path().unwrap()); - tonic_build::compile_protos("zerobus_service.proto") + tonic_prost_build::compile_protos("zerobus_service.proto") .unwrap_or_else(|e| panic!("Failed to compile protos {:?}", e)); } diff --git a/tests/Cargo.toml b/tests/Cargo.toml index e00f53a..9104b88 100644 --- a/tests/Cargo.toml +++ b/tests/Cargo.toml @@ -10,24 +10,25 @@ path = "src/rust_tests.rs" [dependencies] async-trait = "0.1" -prost = "0.13.3" -prost-reflect = "0.14" -prost-types = "0.13.3" +prost = "0.14" +prost-reflect = "0.16" +prost-types = "0.14" tokio = { version = "1.42.0", features = ["macros", "rt-multi-thread", "sync", "time"] } tokio-stream = { version = "0.1.16", features = ["net"] } -tonic = { version = "0.13", features = ["tls-native-roots", "transport"] } +tonic = { version = "0.14", features = ["tls-native-roots", "transport"] } +tonic-prost = "0.14" tracing = "0.1.41" tracing-subscriber = { version = "0.3", features = ["env-filter"] } databricks-zerobus-ingest-sdk = { path = "../sdk", features = ["testing", "arrow-flight"] } # Arrow Flight test dependencies -arrow-flight = { version = "56.2.0", default-features = false } -arrow-array = { version = "56.2.0", default-features = false } -arrow-schema = { version = "56.2.0", default-features = false } +arrow-flight = { version = "57", default-features = false } +arrow-array = { version = "57", default-features = false } +arrow-schema = { version = "57", default-features = false } futures = "0.3" serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" [build-dependencies] -tonic-build = "0.13" +tonic-prost-build = "0.14" protoc-bin-vendored = "3.0.0" diff --git a/tests/build.rs b/tests/build.rs index 7f2aa60..8456e2b 100644 --- a/tests/build.rs +++ b/tests/build.rs @@ -1,5 +1,5 @@ fn main() -> Result<(), Box> { - tonic_build::configure() + tonic_prost_build::configure() .build_server(true) .build_client(false) .compile_protos(&["../sdk/zerobus_service.proto"], &["../sdk"])?; diff --git a/tools/generate_files/Cargo.toml b/tools/generate_files/Cargo.toml index 89ac2b0..5112b82 100644 --- a/tools/generate_files/Cargo.toml +++ b/tools/generate_files/Cargo.toml @@ -14,10 +14,11 @@ serde = { version = "1", features = ["derive"] } serde_json = "1.0" tokio = { version = "1", features = ["macros", "rt-multi-thread"] } urlencoding = "2" -tonic-build = "0.12.3" +tonic-prost-build = "0.14" tempfile = "3.21.0" -prost = "0.12" -tonic = "0.12" +prost = "0.14" +tonic = "0.14" +tonic-prost = "0.14" [build-dependencies] protoc-bin-vendored = "3" \ No newline at end of file diff --git a/tools/generate_files/src/generate.rs b/tools/generate_files/src/generate.rs index ac91802..8a49df1 100644 --- a/tools/generate_files/src/generate.rs +++ b/tools/generate_files/src/generate.rs @@ -437,7 +437,7 @@ pub fn generate_rust_and_descriptor( .context("bad filename")?; let desc_file = output_dir.join(format!("{}.descriptor", file_name)); - tonic_build::configure() + tonic_prost_build::configure() .out_dir(output_dir) .file_descriptor_set_path(&desc_file) .compile_protos(