build(deps): bump futures-bounded from 0.2.4 to 0.3.0 in /rust (#10645)

Bumps
[futures-bounded](https://github.com/thomaseizinger/rust-futures-bounded)
from 0.2.4 to 0.3.0.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/thomaseizinger/rust-futures-bounded/blob/main/CHANGELOG.md">futures-bounded's
changelog</a>.</em></p>
<blockquote>
<h2>0.3.0</h2>
<ul>
<li>Allow for multiple timer implementations.
See <a
href="https://redirect.github.com/thomaseizinger/rust-futures-bounded/pull/5">PR
5</a>.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a
href="https://github.com/thomaseizinger/rust-futures-bounded/commits">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=futures-bounded&package-manager=cargo&previous-version=0.2.4&new-version=0.3.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

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>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Thomas Eizinger <thomas@eizinger.io>
This commit is contained in:
dependabot[bot]
2025-10-22 03:55:25 +00:00
committed by GitHub
parent 08f6989391
commit c795e0da72
6 changed files with 19 additions and 15 deletions

12
rust/Cargo.lock generated
View File

@@ -2810,12 +2810,12 @@ dependencies = [
[[package]]
name = "futures-bounded"
version = "0.2.4"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "91f328e7fb845fc832912fb6a34f40cf6d1888c92f974d1893a54e97b5ff542e"
checksum = "b604752cefc5aa3ab98992a107a8bd99465d2825c1584e0b60cb6957b21e19d7"
dependencies = [
"futures-timer",
"futures-util",
"tokio",
]
[[package]]
@@ -2887,12 +2887,6 @@ version = "0.3.31"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f90f7dce0722e95104fcb095585910c0977252f286e354b5e3bd38902cd99988"
[[package]]
name = "futures-timer"
version = "3.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f288b0a4f20f9a56b5d1da57e2227c661b7b16168e2f72365f57b63326e29b24"
[[package]]
name = "futures-util"
version = "0.3.31"

View File

@@ -85,7 +85,7 @@ firezone-telemetry = { path = "telemetry" }
firezone-tunnel = { path = "connlib/tunnel" }
flume = { version = "0.11.1", features = ["async"] }
futures = { version = "0.3.31" }
futures-bounded = "0.2.1"
futures-bounded = "0.3.0"
gat-lending-iterator = "0.1.6"
glob = "0.3.3"
hex = "0.4.3"

View File

@@ -25,7 +25,7 @@ firezone-logging = { workspace = true }
firezone-telemetry = { workspace = true }
flume = { workspace = true, features = ["async"] }
futures = { workspace = true }
futures-bounded = { workspace = true }
futures-bounded = { workspace = true, features = ["tokio"] }
gat-lending-iterator = { workspace = true }
glob = { workspace = true }
hex = { workspace = true }

View File

@@ -164,7 +164,10 @@ impl Io {
reval_nameserver_interval: tokio::time::interval(RE_EVALUATE_NAMESERVER_INTERVAL),
tcp_socket_factory,
udp_socket_factory,
dns_queries: FuturesTupleSet::new(DNS_QUERY_TIMEOUT, 1000),
dns_queries: FuturesTupleSet::new(
|| futures_bounded::Delay::tokio(DNS_QUERY_TIMEOUT),
1000,
),
gso_queue: GsoQueue::new(),
tun: Device::new(),
udp_dns_server: Default::default(),
@@ -381,7 +384,8 @@ impl Io {
self.udp_socket_factory.reset();
self.sockets.rebind(self.udp_socket_factory.clone());
self.gso_queue.clear();
self.dns_queries = FuturesTupleSet::new(DNS_QUERY_TIMEOUT, 1000);
self.dns_queries =
FuturesTupleSet::new(|| futures_bounded::Delay::tokio(DNS_QUERY_TIMEOUT), 1000);
self.nameservers.evaluate();
}

View File

@@ -42,7 +42,10 @@ impl NameserverSet {
udp_socket_factory: Arc<dyn SocketFactory<UdpSocket>>,
) -> Self {
Self {
queries: FuturesTupleSet::new(DNS_TIMEOUT, MAX_DNS_SERVERS),
queries: FuturesTupleSet::new(
|| futures_bounded::Delay::tokio(DNS_TIMEOUT),
MAX_DNS_SERVERS,
),
inner,
tcp_socket_factory,
udp_socket_factory,

View File

@@ -99,7 +99,10 @@ impl Eventloop {
tunnel: Some(tunnel),
tun_device_manager,
resolver,
resolve_tasks: futures_bounded::FuturesTupleSet::new(DNS_RESOLUTION_TIMEOUT, 1000),
resolve_tasks: futures_bounded::FuturesTupleSet::new(
|| futures_bounded::Delay::tokio(DNS_RESOLUTION_TIMEOUT),
1000,
),
logged_permission_denied: false,
dns_cache: moka::future::Cache::builder()
.name("DNS queries")