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.2.0 to 2.3.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.3.0</h2> <!-- raw HTML omitted --> <pre><code>No known vulnerabilities found </code></pre> <!-- raw HTML omitted --> <h2>[2.3.0]</h2> <h3>Enhancements</h3> <ul> <li><a href="a2d36b8c34"><code>a2d36b8c3</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/12181">#12181</a> by <a href="https://www.github.com/tauri-apps/tauri/../../bastiankistner"><code>@bastiankistner</code></a>) Add an option to change the default background throttling policy (currently for WebKit only).</li> </ul> <!-- raw HTML omitted --> <pre><code>> @tauri-apps/api@2.3.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>.3.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.4s[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.18.3/x64/bin/node /opt/hostedtoolcache/node/20.18.3/x64/bin/npm npm info using npm@10.8.2 npm info using node@v20.18.3 npm silly config load:file:/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/npmrc npm silly config load:file:/tmp/cde6886dbee94df8b0f32d4d1d016777/.npmrc npm silly config load:file:/home/runner/work/_temp/.npmrc npm silly config load:file:/opt/hostedtoolcache/node/20.18.3/x64/etc/npmrc npm verbose title npm publish tauri-apps-api-2.3.0.tgz npm verbose argv "publish" "--ignore-scripts" "tauri-apps-api-2.3.0.tgz" "--access" "public" "--loglevel" "silly" "--no-git-checks" npm verbose logfile logs-max:10 dir:/home/runner/.npm/_logs/2025-02-26T16_09_54_529Z- npm verbose logfile /home/runner/.npm/_logs/2025-02-26T16_09_54_529Z-debug-0.log npm verbose publish [ 'tauri-apps-api-2.3.0.tgz' ] npm silly logfile done cleaning log files npm notice npm notice 📦 <code>@tauri-apps/api</code><a href="https://github.com/2"><code>@2</code></a>.3.0 npm notice Tarball Contents npm notice 86.9kB CHANGELOG.md </tr></table> </code></pre></p> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="7d618f12d8"><code>7d618f1</code></a> apply version updates (<a href="https://redirect.github.com/tauri-apps/tauri/issues/12518">#12518</a>)</li> <li><a href="385a41dea2"><code>385a41d</code></a> enhance(windows): disable our in-client resizing for undecorated window with ...</li> <li><a href="955832e56b"><code>955832e</code></a> ci: Build win-arm64 cli with rustls (<a href="https://redirect.github.com/tauri-apps/tauri/issues/12813">#12813</a>)</li> <li><a href="c116dfcdee"><code>c116dfc</code></a> fix(cli): Hide <code>updater</code> bundle target in help output (<a href="https://redirect.github.com/tauri-apps/tauri/issues/12801">#12801</a>)</li> <li><a href="d6520a21ce"><code>d6520a2</code></a> chore(deps): wry@0.50 muda@0.16 tray-icon@0.20 windows@0.60 webview2-com@0.36...</li> <li><a href="ab81adb71b"><code>ab81adb</code></a> docs: improve documentation around incognito and data store (<a href="https://redirect.github.com/tauri-apps/tauri/issues/12806">#12806</a>)</li> <li><a href="6e417c9435"><code>6e417c9</code></a> fix(linux): Add missing RPM signature (<a href="https://redirect.github.com/tauri-apps/tauri/issues/12786">#12786</a>)</li> <li><a href="ddc469367a"><code>ddc4693</code></a> style: fix Vite and React branding (<a href="https://redirect.github.com/tauri-apps/tauri/issues/12768">#12768</a>)</li> <li><a href="d7b998fe71"><code>d7b998f</code></a> fix(tauri): deprecate <code>Manager::unmanage</code> to fix <code>use-after-free</code> (<a href="https://redirect.github.com/tauri-apps/tauri/issues/12723">#12723</a>)</li> <li><a href="d9a07e66af"><code>d9a07e6</code></a> chore(deps): update dependency globals to v16 (<a href="https://redirect.github.com/tauri-apps/tauri/issues/12750">#12750</a>)</li> <li>Additional commits viewable in <a href="https://github.com/tauri-apps/tauri/compare/@tauri-apps/api-v2.2.0...@tauri-apps/api-v2.3.0">compare view</a></li> </ul> </details> <br /> Updates `@tauri-apps/cli` from 2.2.7 to 2.3.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.3.1</h2> <h2>[2.3.1]</h2> <h3>Dependencies</h3> <ul> <li>Upgraded to <code>tauri-cli@2.3.1</code></li> </ul> <h2><code>@tauri-apps/cli</code> v2.3.0</h2> <h2>[2.3.0]</h2> <h3>Enhancements</h3> <ul> <li><a href="a2d36b8c34"><code>a2d36b8c3</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/12181">#12181</a> by <a href="https://www.github.com/tauri-apps/tauri/../../bastiankistner"><code>@bastiankistner</code></a>) Add an option to change the default background throttling policy (currently for WebKit only).</li> </ul> <h3>Dependencies</h3> <ul> <li>Upgraded to <code>tauri-cli@2.3.0</code></li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="cab7f76d01"><code>cab7f76</code></a> apply version updates (<a href="https://redirect.github.com/tauri-apps/tauri/issues/12826">#12826</a>)</li> <li><a href="e103e87f15"><code>e103e87</code></a> fix(windows): ensure APIs exist before using it (<a href="https://redirect.github.com/tauri-apps/tauri/issues/12848">#12848</a>)</li> <li><a href="bca02967a9"><code>bca0296</code></a> docs: Update wording from <a href="https://redirect.github.com/tauri-apps/tauri/issues/12830">#12830</a> (<a href="https://redirect.github.com/tauri-apps/tauri/issues/12839">#12839</a>)</li> <li><a href="887db0813f"><code>887db08</code></a> chore(deps): update js dependencies (<a href="https://redirect.github.com/tauri-apps/tauri/issues/12832">#12832</a>)</li> <li><a href="4f26dcf309"><code>4f26dcf</code></a> fix(deps): os webview not gated in wry feature (<a href="https://redirect.github.com/tauri-apps/tauri/issues/12833">#12833</a>)</li> <li><a href="4bffc326ea"><code>4bffc32</code></a> docs: update <code>WebViewBuilder::with_asynchronous_custom_protocol</code> with platfor...</li> <li><a href="b859dc43fc"><code>b859dc4</code></a> chore(deps): update rust crate resvg to 0.45.0 (<a href="https://redirect.github.com/tauri-apps/tauri/issues/12825">#12825</a>)</li> <li><a href="9332132239"><code>9332132</code></a> chore(deps): update dependency eslint-config-prettier to v10.0.2 (<a href="https://redirect.github.com/tauri-apps/tauri/issues/12822">#12822</a>)</li> <li><a href="22e9bf74a4"><code>22e9bf7</code></a> fix(cli/ios): Configure initial view controller for the launch screen on iOS ...</li> <li><a href="b495fe0fdc"><code>b495fe0</code></a> ci: install corepack in docker (<a href="https://redirect.github.com/tauri-apps/tauri/issues/12824">#12824</a>)</li> <li>Additional commits viewable in <a href="https://github.com/tauri-apps/tauri/compare/@tauri-apps/cli-v2.2.7...@tauri-apps/cli-v2.3.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> Co-authored-by: Thomas Eizinger <thomas@eizinger.io>
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.