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.3.0 to 2.4.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.4.0</h2> <!-- raw HTML omitted --> <pre><code>No known vulnerabilities found </code></pre> <!-- raw HTML omitted --> <h2>[2.4.0]</h2> <h3>New Features</h3> <ul> <li><a href="d8059bad3c"><code>d8059bad3</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/12900">#12900</a> by <a href="https://www.github.com/tauri-apps/tauri/../../Simon-Laux"><code>@Simon-Laux</code></a>) add <code>AppHandle.fetch_data_store_identifiers</code> and <code>AppHandle.remove_data_store</code> (macOS and iOS only)</li> <li><a href="20c1906912"><code>20c190691</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/12821">#12821</a> by <a href="https://www.github.com/tauri-apps/tauri/../../Simon-Laux"><code>@Simon-Laux</code></a>) Added <code>WindowOptions::javascriptDisabled</code> and <code>WebviewOptions::javascriptDisabled</code>.</li> <li><a href="060de5bbdd"><code>060de5bbd</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/12837">#12837</a> by <a href="https://www.github.com/tauri-apps/tauri/../../niladrix719"><code>@niladrix719</code></a>) Added <code>getIdentifier()</code> function to get the application identifier configured in tauri.conf.json</li> <li><a href="be2e6b85fe"><code>be2e6b85f</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/12944">#12944</a> by <a href="https://www.github.com/tauri-apps/tauri/../../Simon-Laux"><code>@Simon-Laux</code></a>) Added <code>Window#isAlwaysOnTop</code> and <code>WebviewWindow#isAlwaysOnTop</code> methods.</li> <li><a href="bcdd510254"><code>bcdd51025</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/13012">#13012</a> by <a href="https://www.github.com/tauri-apps/tauri/../../lucasfernog"><code>@lucasfernog</code></a>) The <code>path</code> basename and extname APIs now accept Android content URIs, such as the paths returned by the dialog plugin.</li> </ul> <h3>Bug Fixes</h3> <ul> <li><a href="3a74dc8f34"><code>3a74dc8f3</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/12935">#12935</a> by <a href="https://www.github.com/tauri-apps/tauri/../../tk103331"><code>@tk103331</code></a>) Fix <code>Webview.close</code> always fail with command not found</li> </ul> <!-- raw HTML omitted --> <pre><code>> @tauri-apps/api@2.4.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>.4.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.9s[22m[39m npm verbose cli /opt/hostedtoolcache/node/20.19.0/x64/bin/node /opt/hostedtoolcache/node/20.19.0/x64/bin/npm npm info using npm@10.8.2 npm info using node@v20.19.0 npm silly config load:file:/opt/hostedtoolcache/node/20.19.0/x64/lib/node_modules/npm/npmrc npm silly config load:file:/tmp/72821e3a5f1577c84d7d9498bee4667c/.npmrc npm silly config load:file:/home/runner/work/_temp/.npmrc npm silly config load:file:/opt/hostedtoolcache/node/20.19.0/x64/etc/npmrc npm verbose title npm publish tauri-apps-api-2.4.0.tgz npm verbose argv "publish" "--ignore-scripts" "tauri-apps-api-2.4.0.tgz" "--access" "public" "--loglevel" "silly" "--no-git-checks" </tr></table> </code></pre></p> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="be3a79c864"><code>be3a79c</code></a> apply version updates (<a href="https://redirect.github.com/tauri-apps/tauri/issues/12856">#12856</a>)</li> <li><a href="ba42a1f553"><code>ba42a1f</code></a> chore: pin tao and wry to latest patch versions</li> <li><a href="1cd8f55eed"><code>1cd8f55</code></a> fix: don't ship global api bundle if withGlobalTauri is false (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13033">#13033</a>)</li> <li><a href="8603e42a6b"><code>8603e42</code></a> fix: channel no longer being always allowed (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13032">#13032</a>)</li> <li><a href="c32bd722d3"><code>c32bd72</code></a> prettify: Remove beta tag and alert users that tauri for android currently do...</li> <li><a href="bcdd510254"><code>bcdd510</code></a> feat(core): resolve file names from Android content URIs (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13012">#13012</a>)</li> <li><a href="71cb1e26d7"><code>71cb1e2</code></a> docs: update <code>.disable_javascript()</code> docs (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13013">#13013</a>)</li> <li><a href="b459f1d405"><code>b459f1d</code></a> docs: improve Capability docs: mention webviews (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13015">#13015</a>)</li> <li><a href="8cc0067165"><code>8cc0067</code></a> chore(deps): bump zip from 2.2.2 to 2.3.0 (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13016">#13016</a>)</li> <li><a href="f2c94aaca0"><code>f2c94aa</code></a> feat(core): add startIntentSenderForResult Android API for plugins (<a href="https://redirect.github.com/tauri-apps/tauri/issues/12682">#12682</a>)</li> <li>Additional commits viewable in <a href="https://github.com/tauri-apps/tauri/compare/@tauri-apps/api-v2.3.0...@tauri-apps/api-v2.4.0">compare view</a></li> </ul> </details> <br /> Updates `@tauri-apps/cli` from 2.3.1 to 2.4.0 <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.4.0</h2> <h2>[2.4.0]</h2> <h3>New Features</h3> <ul> <li><a href="d91bfa5cb9"><code>d91bfa5cb</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/12970">#12970</a> by <a href="https://www.github.com/tauri-apps/tauri/../../lucasfernog"><code>@lucasfernog</code></a>) Allow merging multiple configuration values on <code>tauri dev</code>, <code>tauri build</code>, <code>tauri bundle</code>, <code>tauri android dev</code>, <code>tauri android build</code>, <code>tauri ios dev</code> and <code>tauri ios build</code>.</li> <li><a href="30f5a1553d"><code>30f5a1553</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/12366">#12366</a> by <a href="https://www.github.com/tauri-apps/tauri/../../FabianLars"><code>@FabianLars</code></a>) Added <code>trafficLightPosition</code> window configuration to set the traffic light buttons position on macOS.</li> </ul> <h3>Enhancements</h3> <ul> <li><a href="f981a5ee8b"><code>f981a5ee8</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/12602">#12602</a> by <a href="https://www.github.com/tauri-apps/tauri/../../kxxt"><code>@kxxt</code></a>) Add basic support for linux riscv64 platform.</li> </ul> <h3>Bug Fixes</h3> <ul> <li><a href="0c4700e990"><code>0c4700e99</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/12985">#12985</a> by <a href="https://www.github.com/tauri-apps/tauri/../../FabianLars"><code>@FabianLars</code></a>) The cli will now accept <code>--bundles updater</code> again. It's still no-op as it has been for all v2 versions. If you want to build updater artifacts, enable <code>createUpdaterArtifacts</code> in <code>tauri.conf.json</code>.</li> <li><a href="b83921226c"><code>b83921226</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/12977">#12977</a> by <a href="https://www.github.com/tauri-apps/tauri/../../lucasfernog"><code>@lucasfernog</code></a>) Fix <code>tauri ios</code> commands using the wrong working directory with <code>bun@>1.2</code>.</li> <li><a href="f268b3dbdf"><code>f268b3dbd</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/12871">#12871</a> by <a href="https://www.github.com/tauri-apps/tauri/../../lucasfernog"><code>@lucasfernog</code></a>) Ignore parent .gitignore files on the Tauri project path detection.</li> </ul> <h3>Dependencies</h3> <ul> <li>Upgraded to <code>tauri-cli@2.4.0</code></li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="be3a79c864"><code>be3a79c</code></a> apply version updates (<a href="https://redirect.github.com/tauri-apps/tauri/issues/12856">#12856</a>)</li> <li><a href="ba42a1f553"><code>ba42a1f</code></a> chore: pin tao and wry to latest patch versions</li> <li><a href="1cd8f55eed"><code>1cd8f55</code></a> fix: don't ship global api bundle if withGlobalTauri is false (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13033">#13033</a>)</li> <li><a href="8603e42a6b"><code>8603e42</code></a> fix: channel no longer being always allowed (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13032">#13032</a>)</li> <li><a href="c32bd722d3"><code>c32bd72</code></a> prettify: Remove beta tag and alert users that tauri for android currently do...</li> <li><a href="bcdd510254"><code>bcdd510</code></a> feat(core): resolve file names from Android content URIs (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13012">#13012</a>)</li> <li><a href="71cb1e26d7"><code>71cb1e2</code></a> docs: update <code>.disable_javascript()</code> docs (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13013">#13013</a>)</li> <li><a href="b459f1d405"><code>b459f1d</code></a> docs: improve Capability docs: mention webviews (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13015">#13015</a>)</li> <li><a href="8cc0067165"><code>8cc0067</code></a> chore(deps): bump zip from 2.2.2 to 2.3.0 (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13016">#13016</a>)</li> <li><a href="f2c94aaca0"><code>f2c94aa</code></a> feat(core): add startIntentSenderForResult Android API for plugins (<a href="https://redirect.github.com/tauri-apps/tauri/issues/12682">#12682</a>)</li> <li>Additional commits viewable in <a href="https://github.com/tauri-apps/tauri/compare/@tauri-apps/cli-v2.3.1...@tauri-apps/cli-v2.4.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 <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.