Repository: apache/arrow-rs
Pull request #5379 (2024-02-09 13:05:45)

Update tonic-build requirement from =0.10.2 to =0.11.0
Updates the requirements on [tonic-build](https://github.com/hyperium/tonic) to permit the latest version.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/hyperium/tonic/blob/master/CHANGELOG.md">tonic-build's changelog</a>.</em></p>
<blockquote>
<h1><a href="https://github.com/hyperium/tonic/compare/v0.10.2...v0.11.0"></a> (2024-02-08)</h1>
<p>BREAKING CHANGES:</p>
<ul>
<li>Removed <code>NamedService</code> from the <code>transport</code> module, please import it via
<code>tonic::server::NamedService</code>.</li>
<li>MSRV bumped to <code>1.70</code>.</li>
</ul>
<h3>Features</h3>
<ul>
<li>Added <code>zstd</code> compression support.</li>
<li>Added connection timeout for <code>connecto_with_connector_lazy</code>.</li>
<li>Upgrade rustls to <code>v0.22</code></li>
<li>Feature gate server implementation for <code>tonic-reflection</code>.</li>
</ul>
<h1><a href="https://github.com/hyperium/tonic/compare/v0.10.1...v0.10.2">0.10.2</a> (2023-09-28)</h1>
<h3>Bug Fixes</h3>
<ul>
<li><strong>web:</strong> Client decoding incomplete buffer bug (<a href="https://redirect.github.com/hyperium/tonic/issues/1540">#1540</a>) (<a href="https://github.com/hyperium/tonic/commit/83e363ace6cbe20ccc2efbe1eb10a4236e4b8065">83e363a</a>)</li>
</ul>
<h1><a href="https://github.com/hyperium/tonic/compare/v0.10.0...v0.10.1">0.10.1</a> (2023-09-21)</h1>
<h3>Bug Fixes</h3>
<ul>
<li><strong>web:</strong> Buffer incomplete messages (<a href="https://redirect.github.com/hyperium/tonic/issues/1528">#1528</a>) (<a href="https://github.com/hyperium/tonic/commit/fe6f8d9b4953a266eb32945a67edce9558bd05b3">fe6f8d9</a>)</li>
</ul>
<h1><a href="https://github.com/hyperium/tonic/compare/v0.9.2...v0.10.0">0.10.0</a> (2023-09-08)</h1>
<h3>Bug Fixes</h3>
<ul>
<li><strong>codegen:</strong> Use stream type from codegen mod (<a href="https://redirect.github.com/hyperium/tonic/issues/1446">#1446</a>) (<a href="https://github.com/hyperium/tonic/commit/60d776b019854b6a6881d69823a36dcc18b1b4ce">60d776b</a>)</li>
<li><strong>examples:</strong> Use https scheme when using tls (<a href="https://redirect.github.com/hyperium/tonic/issues/1466">#1466</a>) (<a href="https://github.com/hyperium/tonic/commit/388b177d99e7b0a2c8d5eab1dee65c4dbb671db4">388b177</a>)</li>
<li><strong>tls:</strong> Don't use tls w/ <code>http</code> scheme (<a href="https://redirect.github.com/hyperium/tonic/issues/1454">#1454</a>) (<a href="https://github.com/hyperium/tonic/commit/95e81f51fbbc32a5cf2b94ac0d7005d56b44a8d3">95e81f5</a>)</li>
</ul>
<h3>Features</h3>
<ul>
<li><strong>build:</strong> Add optional default unimplemented stubs (<a href="https://redirect.github.com/hyperium/tonic/issues/1344">#1344</a>) (<a href="https://github.com/hyperium/tonic/commit/aff1daf65d9a0d55b92719318eba2b5a4769c4e1">aff1daf</a>)</li>
<li><strong>core:</strong> amortize many ready messages into fewer, larger buffers (<a href="https://redirect.github.com/hyperium/tonic/issues/1423">#1423</a>) (<a href="https://github.com/hyperium/tonic/commit/76eedc13d0dd891892301afa38c3dd8ae6646edf">76eedc1</a>)</li>
<li><strong>tonic-types:</strong> add ability to extract rich error details from <code>google.rpc.Status</code> (<a href="https://redirect.github.com/hyperium/tonic/issues/1430">#1430</a>) (<a href="https://github.com/hyperium/tonic/commit/5fd635a30568ff629c4197c603c45b6b94750e88">5fd635a</a>)</li>
<li><strong>transport:</strong> Add <code>Router::into_router</code> (<a href="https://redirect.github.com/hyperium/tonic/issues/1442">#1442</a>) (<a href="https://github.com/hyperium/tonic/commit/ea06a1bb30bc325c7f6d7763fe48bf8b88c1c3ed">ea06a1b</a>)</li>
<li><strong>transport:</strong> Expose TcpConnectInfo fields (<a href="https://redirect.github.com/hyperium/tonic/issues/1449">#1449</a>) (<a href="https://github.com/hyperium/tonic/commit/74b079ce752311fbe760d748804d801c385a5e7a">74b079c</a>)</li>
<li><strong>web:</strong> Add <code>GrpcWebClientService</code> (<a href="https://redirect.github.com/hyperium/tonic/issues/1472">#1472</a>) (<a href="https://github.com/hyperium/tonic/commit/dc29c17ae3ef729024e1f80c66566b09d7a01051">dc29c17</a>)</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/hyperium/tonic/commit/ea8cd3f384e953e177f20a62aa156a75676853f4"><code>ea8cd3f</code></a> chore: prepare v0.11.0 release (<a href="https://redirect.github.com/hyperium/tonic/issues/1626">#1626</a>)</li>
<li><a href="https://github.com/hyperium/tonic/commit/209fcbe5892c4c81fea060676a347ab79a60ab29"><code>209fcbe</code></a> chore(ci): fix udeps warning errors (<a href="https://redirect.github.com/hyperium/tonic/issues/1627">#1627</a>)</li>
<li><a href="https://github.com/hyperium/tonic/commit/4263f87503010497147b50c9a43ff85ee608c830"><code>4263f87</code></a> feat(tls): Implement AsMut for Certificate (<a href="https://redirect.github.com/hyperium/tonic/issues/1621">#1621</a>)</li>
<li><a href="https://github.com/hyperium/tonic/commit/23106dd76882a4ffbf2d3ac59c9c403518e429c9"><code>23106dd</code></a> chore(tls): Update to rustls 0.22.0 (<a href="https://redirect.github.com/hyperium/tonic/issues/1509">#1509</a>)</li>
<li><a href="https://github.com/hyperium/tonic/commit/2a2809b368816e03d70873d6e554621b9154bc1f"><code>2a2809b</code></a> Update Cargo.toml (<a href="https://redirect.github.com/hyperium/tonic/issues/1622">#1622</a>)</li>
<li><a href="https://github.com/hyperium/tonic/commit/42274686befb0440c038e6f53fcc68fdb3dcf51e"><code>4227468</code></a> Update helloworld-tutorial.md - Fix Clippy lints (<a href="https://redirect.github.com/hyperium/tonic/issues/1617">#1617</a>)</li>
<li><a href="https://github.com/hyperium/tonic/commit/4859a73f70ea88c37227221f3122b0ca4f81afe0"><code>4859a73</code></a> Add connection timeout to connect_with_connector_lazy (<a href="https://redirect.github.com/hyperium/tonic/issues/1619">#1619</a>)</li>
<li><a href="https://github.com/hyperium/tonic/commit/227b16934bf5e5b94e9035c43009713b01379491"><code>227b169</code></a> web: fix invalid bit header error message (<a href="https://redirect.github.com/hyperium/tonic/issues/1618">#1618</a>)</li>
<li><a href="https://github.com/hyperium/tonic/commit/c30cb783b9e5eaa4ea05003d9cacac733d135c58"><code>c30cb78</code></a> chore(reflection): Make prost-types dependency optional (<a href="https://redirect.github.com/hyperium/tonic/issues/1610">#1610</a>)</li>
<li><a href="https://github.com/hyperium/tonic/commit/f714f42414f50cdcd2cc975b279442cfae87103f"><code>f714f42</code></a> Repair rust-analyzer for tonic files (<a href="https://redirect.github.com/hyperium/tonic/issues/1604">#1604</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/hyperium/tonic/compare/v0.10.2...v0.11.0">compare view</a></li>
</ul>
</details>
<br />


Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>


Patch:
diff --git a/arrow-flight/Cargo.toml b/arrow-flight/Cargo.toml
index 1bea347c3..81940b760 100644
--- a/arrow-flight/Cargo.toml
+++ b/arrow-flight/Cargo.toml
@@ -46,7 +46,7 @@ once_cell = { version = "1", optional = true }
 paste = { version = "1.0" }
 prost = { version = "0.12.1", default-features = false, features = ["prost-derive"] }
 tokio = { version = "1.0", default-features = false, features = ["macros", "rt", "rt-multi-thread"] }
-tonic = { version = "0.10.0", default-features = false, features = ["transport", "codegen", "prost"] }
+tonic = { version = "0.11.0", default-features = false, features = ["transport", "codegen", "prost"] }
 
 # CLI-related dependencies
 anyhow = { version = "1.0", optional = true }
diff --git a/arrow-flight/gen/Cargo.toml b/arrow-flight/gen/Cargo.toml
index c0d27b948..2902b215c 100644
--- a/arrow-flight/gen/Cargo.toml
+++ b/arrow-flight/gen/Cargo.toml
@@ -34,4 +34,4 @@ publish = false
 # (and checked in) arrow.flight.protocol.rs from changing
 proc-macro2 = { version = "=1.0.78", default-features = false }
 prost-build = { version = "=0.12.3", default-features = false }
-tonic-build = { version = "=0.10.2", default-features = false, features = ["transport", "prost"] }
+tonic-build = { version = "=0.11.0", default-features = false, features = ["transport", "prost"] }


Test patch:
diff --git a/arrow-integration-testing/Cargo.toml b/arrow-integration-testing/Cargo.toml
index c29860f09..032b99f4f 100644
--- a/arrow-integration-testing/Cargo.toml
+++ b/arrow-integration-testing/Cargo.toml
@@ -46,7 +46,7 @@ prost = { version = "0.12", default-features = false }
 serde = { version = "1.0", default-features = false, features = ["rc", "derive"] }
 serde_json = { version = "1.0", default-features = false, features = ["std"] }
 tokio = { version = "1.0", default-features = false }
-tonic = { version = "0.10", default-features = false }
+tonic = { version = "0.11", default-features = false }
 tracing-subscriber = { version = "0.3.1", default-features = false, features = ["fmt"], optional = true }
 num = { version = "0.4", default-features = false, features = ["std"] }
 flate2 = { version = "1", default-features = false, features = ["rust_backend"] }