Bump tonic version from 0.13.0 to 0.14.0#88
Draft
teodordelibasic-db wants to merge 1 commit intomainfrom
Draft
Conversation
Signed-off-by: teodordelibasic-db <teodor.delibasic@databricks.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Bump tonic to 0.14, prost to 0.14, arrow to 57, and related dependencies across the workspace.
Dependency Changes
tonictonic-prosttonic-buildtonic-prost-buildprostprost-typesprost-reflectprost-buildarrow-flightarrow-arrayarrow-schemaarrow-ipcFiles Changed
Cargo.toml dependency bumps (8 files):
sdk/Cargo.toml- tonic, prost, arrow-*, added tonic-prost, replaced tonic-build with tonic-prost-buildtests/Cargo.toml- same as sdk, plus prost-reflect bumpffi/Cargo.toml- prost, prost-typesjni/Cargo.toml- prost, prost-types, arrow-*examples/proto/single/Cargo.toml- tonic, prost, prost-reflect, replaced tonic-build/prost-build with tonic-prost-build, removed nonexistenttlsfeatureexamples/proto/batch/Cargo.toml- same as singletools/generate_files/Cargo.toml- tonic, prost, replaced tonic-build with tonic-prost-build, added tonic-prostBuild scripts and source (3 files):
sdk/build.rs-tonic_build::compile_protos()totonic_prost_build::compile_protos()tests/build.rs-tonic_build::configure()totonic_prost_build::configure()tools/generate_files/src/generate.rs-tonic_build::configure()totonic_prost_build::configure()No arrow-flight API changes were needed. All core APIs (
FlightClient,FlightDataEncoderBuilder,FlightError::Tonic,FlightServiceServer,PutResult,IpcWriteOptions) are unchanged between arrow-flight 56 and 57.Breaking Changes for SDK Clients
Required Dependency Updates
Clients must update their own dependencies to match:
prostprost-typestonicarrow-flightarrow-arrayarrow-schemaarrow-ipcMixing versions will result in "two different versions of crate" type errors at compile time.
prost 0.13 to 0.14
Debugremoved as supertrait ofMessage. Code with generic bounds likeT: prost::Messagethat previously relied on the implicitDebugbound must now useT: prost::Message + Debugexplicitly.EqandHashare now auto-derived on generated message types when all fields support them. Any manualimpl Eqorimpl Hashfor SDK-generated protobuf types will conflict and must be removed.Vec<Box<T>>is nowVec<T>for repeated fields marked as boxed. Code indexing into these fields may need adjustment.tonic 0.13 to 0.14
Statusinternals are now boxed. Code that destructures or pattern-matches ontonic::Statusfields may need updates.Status::Display. Log output and error messages involvingtonic::Statuswill contain more detail, which may affect log parsing or error string matching.tlsfeature removed. Clients enablingtonic/tlsmust switch to a specific backend:tls-native-roots,tls-ring,tls-aws-lc, ortls-webpki-roots.tonic-prostis a new runtime dependency. Projects with their own.protocodegen needtonic-prost(runtime) andtonic-prost-build(build-time) instead oftonic-build.arrow 56 to 57
DataTypedisplay formatting changed forRunEndEncoded,Map,ListView,LargeListView, andUniontypes. Code that parses or comparesDisplayoutput of these types will need updates.Arraytrait markedunsafeto implement (as of 57.3.0). CustomArrayimplementations must addunsafe.prost-reflect 0.14 to 0.16
prost-reflectdirectly alongside the SDK. The 0.16 release updates its internal prost dependency to 0.14 -- no API changes beyond that.