Bumps the tauri group in /rust/gui-client with 2 updates: [@tauri-apps/api](https://github.com/tauri-apps/tauri) and [@tauri-apps/cli](https://github.com/tauri-apps/tauri). Updates `@tauri-apps/api` from 2.6.0 to 2.7.0 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/tauri-apps/tauri/releases"><code>@tauri-apps/api</code>'s releases</a>.</em></p> <blockquote> <h2><code>@tauri-apps/api</code> v2.7.0</h2> <!-- raw HTML omitted --> <pre><code>No known vulnerabilities found </code></pre> <!-- raw HTML omitted --> <h2>[2.7.0]</h2> <h3>New Features</h3> <ul> <li><a href="232265c70e"><code>232265c70</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/13209">#13209</a> by <a href="https://www.github.com/tauri-apps/tauri/../../kandrelczyk"><code>@kandrelczyk</code></a>) Added <code>getBundleType</code> to the app module.</li> </ul> <h3>Enhancements</h3> <ul> <li><a href="96391467e9"><code>96391467e</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/13783">#13783</a> by <a href="https://www.github.com/tauri-apps/tauri/../../JosephBrooksbank"><code>@JosephBrooksbank</code></a>) Allow events emitted with <code>emit</code> to be handled correctly by <code>listen</code> callbacks when in a mocked environment</li> </ul> <h3>Bug Fixes</h3> <ul> <li><a href="152d971bcd"><code>152d971bc</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/13744">#13744</a> by <a href="https://www.github.com/tauri-apps/tauri/../../Legend-Master"><code>@Legend-Master</code></a>) Expose <code>unregisterCallback</code>, <code>runCallback</code>, <code>callbacks</code> in <code>mockIPC</code></li> <li><a href="b821796add"><code>b821796ad</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/13810">#13810</a> by <a href="https://www.github.com/tauri-apps/tauri/../../asdolo"><code>@asdolo</code></a>) Add missing <code>trafficLightPosition</code> TypeScript type definition</li> </ul> <!-- raw HTML omitted --> <pre><code>> @tauri-apps/api@2.7.0 npm-publish /home/runner/work/tauri/tauri/packages/api > pnpm build && cd ./dist && pnpm publish --access public --loglevel silly --no-git-checks <p>> <code>@tauri-apps/api</code><a href="https://github.com/2"><code>@2</code></a>.7.0 build /home/runner/work/tauri/tauri/packages/api > rollup -c --configPlugin typescript</p> <p>[36m [1m./src/app.ts, ./src/core.ts, ./src/dpi.ts, ./src/event.ts, ./src/image.ts, ./src/index.ts, ./src/menu.ts, ./src/mocks.ts, ./src/path.ts, ./src/tray.ts, ./src/webview.ts, ./src/webviewWindow.ts, ./src/window.ts[22m → [1m./dist, ./dist[22m...[39m [32mcreated [1m./dist, ./dist[22m in [1m1.5s[22m[39m [36m [1msrc/index.ts[22m → [1m../../crates/tauri/scripts/bundle.global.js[22m...[39m [32mcreated [1m../../crates/tauri/scripts/bundle.global.js[22m in [1m1.8s[22m[39m npm verbose cli /opt/hostedtoolcache/node/20.19.3/x64/bin/node /opt/hostedtoolcache/node/20.19.3/x64/bin/npm npm info using npm@10.8.2 npm info using node@v20.19.3 npm silly config load:file:/opt/hostedtoolcache/node/20.19.3/x64/lib/node_modules/npm/npmrc npm silly config load:file:/tmp/2aa98b41aabaf31df3a84589911580aa/.npmrc npm silly config load:file:/home/runner/work/_temp/.npmrc npm silly config load:file:/opt/hostedtoolcache/node/20.19.3/x64/etc/npmrc npm verbose title npm publish tauri-apps-api-2.7.0.tgz </tr></table> </code></pre></p> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="96439c2c42"><code>96439c2</code></a> chore(deps): Update <code>@eslint/plugin-kit</code> to fix pnpm audit</li> <li><a href="ab97f36b64"><code>ab97f36</code></a> apply version updates (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13751">#13751</a>)</li> <li><a href="6a4451bcd9"><code>6a4451b</code></a> fix(windows): isolation pattern create iframe loop (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13849">#13849</a>)</li> <li><a href="56277e4722"><code>56277e4</code></a> chore(deps): update napi to v3 (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13852">#13852</a>)</li> <li><a href="7a6fd5b75d"><code>7a6fd5b</code></a> fix(bundler): Move AppRun to mirror (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13863">#13863</a>)</li> <li><a href="7f3c989111"><code>7f3c989</code></a> feat(tauri): add <code>plugin_boxed</code> methods (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13837">#13837</a>)</li> <li><a href="bda8304107"><code>bda8304</code></a> fix(cli): error out when migrating from v2 alpha (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13833">#13833</a>)</li> <li><a href="fb9d9c7fd1"><code>fb9d9c7</code></a> chore(readme): Update discord invite (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13836">#13836</a>)</li> <li><a href="8263b412c6"><code>8263b41</code></a> chore(deps): update dependency rollup to v4.45.1 (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13831">#13831</a>)</li> <li><a href="3025d90951"><code>3025d90</code></a> feat: expose some window props from runtime-wry (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13822">#13822</a>)</li> <li>Additional commits viewable in <a href="https://github.com/tauri-apps/tauri/compare/@tauri-apps/api-v2.6.0...@tauri-apps/api-v2.7.0">compare view</a></li> </ul> </details> <br /> Updates `@tauri-apps/cli` from 2.6.2 to 2.7.1 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/tauri-apps/tauri/releases"><code>@tauri-apps/cli</code>'s releases</a>.</em></p> <blockquote> <h2><code>@tauri-apps/cli</code> v2.7.1</h2> <h2>[2.7.1]</h2> <h3>Dependencies</h3> <ul> <li>Upgraded to <code>tauri-cli@2.7.1</code></li> </ul> <h2><code>@tauri-apps/cli</code> v2.7.0</h2> <h2>[2.7.0]</h2> <h3>New Features</h3> <ul> <li><a href="33d079392a"><code>33d079392</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/13811">#13811</a> by <a href="https://www.github.com/tauri-apps/tauri/../../mhbagheri-99"><code>@mhbagheri-99</code></a>) Allow runner configuration to be an object with cmd, cwd, and args properties. The runner can now be configured as <code>{ "cmd": "my_runner", "cwd": "/path", "args": ["--quiet"] }</code> while maintaining backwards compatibility with the existing string format.</li> </ul> <h3>Enhancements</h3> <ul> <li><a href="232265c70e"><code>232265c70</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/13209">#13209</a> by <a href="https://www.github.com/tauri-apps/tauri/../../kandrelczyk"><code>@kandrelczyk</code></a>) Binaries are patched before bundling to add the type of a bundle they will placed in. This information will be used during update process to select the correct target.</li> </ul> <h3>Bug Fixes</h3> <ul> <li><a href="916aeaa486"><code>916aeaa48</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/13781">#13781</a> by <a href="https://www.github.com/tauri-apps/tauri/../../lucasfernog"><code>@lucasfernog</code></a>) Fixes Android dev and build commands reading <code>tauri.ios.conf.json</code> instead of <code>tauri.android.conf.json</code> to merge platform-specific configuration.</li> <li><a href="0f248b111f"><code>0f248b111</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/13799">#13799</a> by <a href="https://www.github.com/tauri-apps/tauri/../../lucasfernog"><code>@lucasfernog</code></a>) Install iOS dependencies when needed.</li> <li><a href="7a6fd5b75d"><code>7a6fd5b75</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/13863">#13863</a> by <a href="https://www.github.com/tauri-apps/tauri/../../FabianLars"><code>@FabianLars</code></a>) The AppImage bundler now pulls the AppRun binaries from our GitHub mirror, fixing 404 errors.</li> <li><a href="bda8304107"><code>bda830410</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/13833">#13833</a> by <a href="https://www.github.com/tauri-apps/tauri/../../Legend-Master"><code>@Legend-Master</code></a>) Fail with an error when trying to migrate from v2 alpha</li> <li><a href="bda8304107"><code>bda830410</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/13833">#13833</a> by <a href="https://www.github.com/tauri-apps/tauri/../../Legend-Master"><code>@Legend-Master</code></a>) Use v2 stable instead of v2-rc when migrating from v2-beta</li> </ul> <h3>Dependencies</h3> <ul> <li>Upgraded to <code>tauri-cli@2.7.0</code></li> </ul> <h2><code>@tauri-apps/cli</code> v2.6.3</h2> <h2>[2.6.3]</h2> <h3>Bug Fixes</h3> <ul> <li><a href="916aeaa486"><code>916aeaa48</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/13781">#13781</a> by <a href="https://www.github.com/tauri-apps/tauri/../../lucasfernog"><code>@lucasfernog</code></a>) Fixes Android dev and build commands reading <code>tauri.ios.conf.json</code> instead of <code>tauri.android.conf.json</code> to merge platform-specific configuration.</li> <li><a href="0f248b111f"><code>0f248b111</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/13799">#13799</a> by <a href="https://www.github.com/tauri-apps/tauri/../../lucasfernog"><code>@lucasfernog</code></a>) Install iOS dependencies when needed.</li> <li><a href="7a6fd5b75d"><code>7a6fd5b75</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/13863">#13863</a> by <a href="https://www.github.com/tauri-apps/tauri/../../FabianLars"><code>@FabianLars</code></a>) The AppImage bundler now pulls the AppRun binaries from our GitHub mirror, fixing 404 errors.</li> <li><a href="bda8304107"><code>bda830410</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/13833">#13833</a> by <a href="https://www.github.com/tauri-apps/tauri/../../Legend-Master"><code>@Legend-Master</code></a>) Fail with an error when trying to migrate from v2 alpha</li> <li><a href="bda8304107"><code>bda830410</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/13833">#13833</a> by <a href="https://www.github.com/tauri-apps/tauri/../../Legend-Master"><code>@Legend-Master</code></a>) Use v2 stable instead of v2-rc when migrating from v2-beta</li> </ul> <h3>Dependencies</h3> <ul> <li>Upgraded to <code>tauri-cli@2.7.0</code></li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="fd63f229d5"><code>fd63f22</code></a> apply version updates (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13871">#13871</a>)</li> <li><a href="af95fb6014"><code>af95fb6</code></a> fix: sign main binary after patching with bundle info (fix <a href="https://redirect.github.com/tauri-apps/tauri/issues/13868">#13868</a>) (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13870">#13870</a>)</li> <li><a href="65bb24b9ae"><code>65bb24b</code></a> fix(cli): fix metadata version</li> <li><a href="332ec355a1"><code>332ec35</code></a> fix(cli): add default triplets to napi targets config</li> <li><a href="2c46b1873e"><code>2c46b18</code></a> chore(deps): update dependency eslint-config-prettier to v10.1.8 (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13855">#13855</a>)</li> <li><a href="96439c2c42"><code>96439c2</code></a> chore(deps): Update <code>@eslint/plugin-kit</code> to fix pnpm audit</li> <li><a href="ab97f36b64"><code>ab97f36</code></a> apply version updates (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13751">#13751</a>)</li> <li><a href="6a4451bcd9"><code>6a4451b</code></a> fix(windows): isolation pattern create iframe loop (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13849">#13849</a>)</li> <li><a href="56277e4722"><code>56277e4</code></a> chore(deps): update napi to v3 (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13852">#13852</a>)</li> <li><a href="7a6fd5b75d"><code>7a6fd5b</code></a> fix(bundler): Move AppRun to mirror (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13863">#13863</a>)</li> <li>Additional commits viewable in <a href="https://github.com/tauri-apps/tauri/compare/@tauri-apps/cli-v2.6.2...@tauri-apps/cli-v2.7.1">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 <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>
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:
- Ensure the binary you are profiling is compiled with the
releaseprofile. sudo perf record -g --freq 10000 --pid $(pgrep <your-binary>).- Run the speed test or whatever load-inducing task you want to measure.
sudo perf script > profile.perf- 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.