Files
firezone/rust
dependabot[bot] bc1a3df82b build(deps): bump react-router from 7.6.3 to 7.7.0 in /rust/gui-client in the react group (#9934)
Bumps the react group in /rust/gui-client with 1 update:
[react-router](https://github.com/remix-run/react-router/tree/HEAD/packages/react-router).

Updates `react-router` from 7.6.3 to 7.7.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/remix-run/react-router/releases">react-router's
releases</a>.</em></p>
<blockquote>
<h2>v7.7.0</h2>
<p>See the changelog for release notes: <a
href="https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v770">https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v770</a></p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/remix-run/react-router/blob/main/packages/react-router/CHANGELOG.md">react-router's
changelog</a>.</em></p>
<blockquote>
<h2>7.7.0</h2>
<h3>Minor Changes</h3>
<ul>
<li>
<p>Add unstable RSC support (<a
href="https://redirect.github.com/remix-run/react-router/pull/13700">#13700</a>)</p>
<p>For more information, see the <a
href="https://reactrouter.com/start/rsc/installation">RSC
documentation</a>.</p>
</li>
</ul>
<h3>Patch Changes</h3>
<ul>
<li>
<p>Handle <code>InvalidCharacterError</code> when validating cookie
signature (<a
href="https://redirect.github.com/remix-run/react-router/pull/13847">#13847</a>)</p>
</li>
<li>
<p>Pass a copy of <code>searchParams</code> to the
<code>setSearchParams</code> callback function to avoid muations of the
internal <code>searchParams</code> instance. This was an issue when
navigations were blocked because the internal instance be out of sync
with <code>useLocation().search</code>. (<a
href="https://redirect.github.com/remix-run/react-router/pull/12784">#12784</a>)</p>
</li>
<li>
<p>Support invalid <code>Date</code> in <code>turbo-stream</code> v2
fork (<a
href="https://redirect.github.com/remix-run/react-router/pull/13684">#13684</a>)</p>
</li>
<li>
<p>In Framework Mode, clear critical CSS in development after initial
render (<a
href="https://redirect.github.com/remix-run/react-router/pull/13872">#13872</a>)</p>
</li>
<li>
<p>Strip search parameters from <code>patchRoutesOnNavigation</code>
<code>path</code> param for fetcher calls (<a
href="https://redirect.github.com/remix-run/react-router/pull/13911">#13911</a>)</p>
</li>
<li>
<p>Skip scroll restoration on useRevalidator() calls because they're not
new locations (<a
href="https://redirect.github.com/remix-run/react-router/pull/13671">#13671</a>)</p>
</li>
<li>
<p>Support unencoded UTF-8 routes in prerender config with
<code>ssr</code> set to <code>false</code> (<a
href="https://redirect.github.com/remix-run/react-router/pull/13699">#13699</a>)</p>
</li>
<li>
<p>Do not throw if the url hash is not a valid URI component (<a
href="https://redirect.github.com/remix-run/react-router/pull/13247">#13247</a>)</p>
</li>
<li>
<p>Fix a regression in <code>createRoutesStub</code> introduced with the
middleware feature. (<a
href="https://redirect.github.com/remix-run/react-router/pull/13946">#13946</a>)</p>
<p>As part of that work we altered the signature to align with the new
middleware APIs without making it backwards compatible with the prior
<code>AppLoadContext</code> API. This permitted
<code>createRoutesStub</code> to work if you were opting into middleware
and the updated <code>context</code> typings, but broke
<code>createRoutesStub</code> for users not yet opting into
middleware.</p>
<p>We've reverted this change and re-implemented it in such a way that
both sets of users can leverage it.</p>
<pre lang="tsx"><code>// If you have not opted into middleware, the old
API should work again
let context: AppLoadContext = {
  /*...*/
};
let Stub = createRoutesStub(routes, context);
<p>// If you have opted into middleware, you should now pass an
instantiated <code>unstable_routerContextProvider</code> instead of a
<code>getContext</code> factory function.<br />
let context = new unstable_RouterContextProvider();<br />
context.set(SomeContext, someValue);<br />
let Stub = createRoutesStub(routes, context);<br />
</code></pre></p>
<p>⚠️ This may be a breaking bug for if you have adopted the unstable
Middleware feature and are using <code>createRoutesStub</code> with the
updated API.</p>
</li>
<li>
<p>Remove <code>Content-Length</code> header from Single Fetch responses
(<a
href="https://redirect.github.com/remix-run/react-router/pull/13902">#13902</a>)</p>
</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="63f0cd3277"><code>63f0cd3</code></a>
chore: Update version for release (<a
href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router/issues/14015">#14015</a>)</li>
<li><a
href="b7753cf289"><code>b7753cf</code></a>
chore: Update version for release (pre) (<a
href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router/issues/14008">#14008</a>)</li>
<li><a
href="7150677675"><code>7150677</code></a>
Inject client route component props during RSC render (<a
href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router/issues/14007">#14007</a>)</li>
<li><a
href="216222bacd"><code>216222b</code></a>
chore: Update version for release (pre) (<a
href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router/issues/13999">#13999</a>)</li>
<li><a
href="b6c5168400"><code>b6c5168</code></a>
Remove leftover critical CSS on hydration mismatch (<a
href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router/issues/13995">#13995</a>)</li>
<li><a
href="7204a2963b"><code>7204a29</code></a>
chore: Update version for release (pre) (<a
href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router/issues/13980">#13980</a>)</li>
<li><a
href="b76ed3dabc"><code>b76ed3d</code></a>
fix(rsc): handle <code>ErrorResponse</code> in resource routes (<a
href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router/issues/13966">#13966</a>)</li>
<li><a
href="b3337fc38a"><code>b3337fc</code></a>
always include additional route patches in payload to aid in SPA /
&quot;lazy&quot; dis...</li>
<li><a
href="3f0526b5e2"><code>3f0526b</code></a>
fix(rsc): remove manual error bubbling (<a
href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router/issues/13973">#13973</a>)</li>
<li><a
href="1b459f580d"><code>1b459f5</code></a>
fix(rsc): support <code>unstable_getContext</code> in
<code>RSCHydratedRouter</code> (<a
href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router/issues/13960">#13960</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/remix-run/react-router/commits/react-router@7.7.0/packages/react-router">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=react-router&package-manager=npm_and_yarn&previous-version=7.6.3&new-version=7.7.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 <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-21 10:12:59 +00:00
..
2023-05-10 07:58:32 -07:00

Rust development guide

Firezone uses Rust for all data plane components. This directory contains the Linux and Windows clients, and low-level networking implementations related to STUN/TURN.

We target the last stable release of Rust using rust-toolchain.toml. If you are using rustup, that is automatically handled for you. Otherwise, ensure you have the latest stable version of Rust installed.

Reading Client logs

The Client logs are written as JSONL for machine-readability.

To make them more human-friendly, pipe them through jq like this:

cd path/to/logs  # e.g. `$HOME/.cache/dev.firezone.client/data/logs` on Linux
cat *.log | jq -r '"\(.time) \(.severity) \(.message)"'

Resulting in, e.g.

2024-04-01T18:25:47.237661392Z INFO started log
2024-04-01T18:25:47.238193266Z INFO GIT_VERSION = 1.0.0-pre.11-35-gcc0d43531
2024-04-01T18:25:48.295243016Z INFO No token / actor_name on disk, starting in signed-out state
2024-04-01T18:25:48.295360641Z INFO null

Benchmarking on Linux

The recommended way for benchmarking any of the Rust components is Linux' perf utility. For example, to attach to a running application, do:

  1. Ensure the binary you are profiling is compiled with the release profile.
  2. sudo perf record -g --freq 10000 --pid $(pgrep <your-binary>).
  3. Run the speed test or whatever load-inducing task you want to measure.
  4. sudo perf script > profile.perf
  5. Open profiler.firefox.com and load profile.perf

Instead of attaching to a process with --pid, you can also specify the path to executable directly. That is useful if you want to capture perf data for a test or a micro-benchmark.