Skip to content

Upgrade tonic dependencies to 0.13.0 version (try 2) #7839

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

Merged
merged 8 commits into from
Jul 16, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Update feature flags to match tonic
  • Loading branch information
alamb committed Jul 3, 2025
commit 8c46a16f400e7739fdf7d9f3b4ff83383921a702
2 changes: 1 addition & 1 deletion .github/workflows/arrow_flight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
cargo test -p arrow-flight --all-features
- name: Test --examples
run: |
cargo test -p arrow-flight --features=flight-sql,tls --examples
cargo test -p arrow-flight --features=flight-sql,tls-ring --examples

vendor:
name: Verify Vendored Code
Expand Down
16 changes: 10 additions & 6 deletions arrow-flight/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,13 @@ default = []
flight-sql = ["dep:arrow-arith", "dep:arrow-data", "dep:arrow-ord", "dep:arrow-row", "dep:arrow-select", "dep:arrow-string", "dep:once_cell", "dep:paste"]
# TODO: Remove in the next release
flight-sql-experimental = ["flight-sql"]
tls = ["tonic/tls-ring"]
tls-aws-lc= ["tonic/tls-aws-lc"]
tls-native-roots = ["tonic/tls-native-roots"]
tls-ring = ["tonic/tls-ring"]
tls-webpki-roots = ["tonic/tls-webpki-roots"]

# Enable CLI tools
cli = ["arrow-array/chrono-tz", "arrow-cast/prettyprint", "tonic/tls-webpki-roots", "dep:anyhow", "dep:clap", "dep:tracing-log", "dep:tracing-subscriber"]
cli = ["arrow-array/chrono-tz", "arrow-cast/prettyprint", "tonic/tls-webpki-roots", "dep:anyhow", "dep:clap", "dep:tracing-log", "dep:tracing-subscriber", "dep:tokio"]

[dev-dependencies]
arrow-cast = { workspace = true, features = ["prettyprint"] }
Expand All @@ -85,18 +89,18 @@ uuid = { version = "1.10.0", features = ["v4"] }

[[example]]
name = "flight_sql_server"
required-features = ["flight-sql", "tls"]
required-features = ["flight-sql", "tls-ring"]

[[bin]]
name = "flight_sql_client"
required-features = ["cli", "flight-sql", "tls"]
required-features = ["cli", "flight-sql", "tls-ring"]

[[test]]
name = "flight_sql_client"
path = "tests/flight_sql_client.rs"
required-features = ["flight-sql", "tls"]
required-features = ["flight-sql", "tls-ring"]

[[test]]
name = "flight_sql_client_cli"
path = "tests/flight_sql_client_cli.rs"
required-features = ["cli", "flight-sql", "tls"]
required-features = ["cli", "flight-sql", "tls-ring"]
7 changes: 6 additions & 1 deletion arrow-flight/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,13 @@ that demonstrate how to build a Flight server implemented with [tonic](https://d

- `flight-sql`: Support for [Apache Arrow FlightSQL], a protocol for interacting with SQL databases.

- `tls`: Enables `tls` on `tonic`
You can enable TLS using the following features (not enabled by default)
- `tls-aws-lc`: enables [tonic feature] `tls-aws-lc`
- `tls-native-roots`: enables [tonic feature] `tls-native-roots`
- `tls-ring`: enables [tonic feature] `tls-ring`
- `tls-webpki`: enables [tonic feature] `tls-webpki-roots`

[tonic feature]: https://docs.rs/tonic/latest/tonic/#feature-flags
## CLI

This crates offers a basic [Apache Arrow FlightSQL] command line interface.
Expand Down
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy