Bumps [@tauri-apps/cli](https://github.com/tauri-apps/tauri) from 2.0.4 to 2.1.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.1.0</h2> <h2>[2.1.0]</h2> <h3>New Features</h3> <ul> <li><a href="6bf917941f"><code>6bf917941</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/11322">#11322</a> by <a href="https://www.github.com/tauri-apps/tauri/../../ShaunSHamilton"><code>@ShaunSHamilton</code></a>) Add <code>tauri remove</code> to remove plugins from projects.</li> <li><a href="058c0db72f"><code>058c0db72</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/11584">#11584</a> by <a href="https://www.github.com/tauri-apps/tauri/../../amrbashir"><code>@amrbashir</code></a>) Add <code>bundle > linux > rpm > compression</code> config option to control RPM bundle compression type and level.</li> </ul> <h3>Enhancements</h3> <ul> <li><a href="1f311832ab"><code>1f311832a</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/11405">#11405</a> by <a href="https://www.github.com/tauri-apps/tauri/../../amrbashir"><code>@amrbashir</code></a>) Add more context for errors when decoding secret and public keys for signing updater artifacts.</li> <li><a href="e0d1307d3f"><code>e0d1307d3</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/11414">#11414</a> by <a href="https://www.github.com/tauri-apps/tauri/../../Czxck001"><code>@Czxck001</code></a>) Migrate the <code>$schema</code> Tauri configuration to the v2 format.</li> <li><a href="c43d5df158"><code>c43d5df15</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/11512">#11512</a> by <a href="https://www.github.com/tauri-apps/tauri/../../lucasfernog"><code>@lucasfernog</code></a>) Associate a newly created capability file with the <code>main</code> window on the <code>tauri add</code> and <code>tauri permission add</code> commands.</li> </ul> <h3>Bug Fixes</h3> <ul> <li><a href="7af01ff2ce"><code>7af01ff2c</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/11523">#11523</a> by <a href="https://www.github.com/tauri-apps/tauri/../../amrbashir"><code>@amrbashir</code></a>) Fix <code>tauri migrate</code> failing to install NPM depenencies when running from Deno.</li> <li><a href="100a4455aa"><code>100a4455a</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/11529">#11529</a> by <a href="https://www.github.com/tauri-apps/tauri/../../amrbashir"><code>@amrbashir</code></a>) Fix detecting yarn berry (v2 and higher) in various tauri cli commands.</li> <li><a href="60e86d5f6e"><code>60e86d5f6</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/11624">#11624</a> by <a href="https://www.github.com/tauri-apps/tauri/../../lucasfernog"><code>@lucasfernog</code></a>) Use the public network IP address on <code>android dev</code> by default on Windows.</li> </ul> <h3>Dependencies</h3> <ul> <li>Upgraded to <code>tauri-cli@2.1.0</code></li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="86f22f0ec9"><code>86f22f0</code></a> apply version updates (<a href="https://redirect.github.com/tauri-apps/tauri/issues/11440">#11440</a>)</li> <li><a href="3f6f07a1b8"><code>3f6f07a</code></a> chore(deps): update <code>wry</code> to <code>0.47</code> and <code>tao</code> to <code>0.30.6</code> (<a href="https://redirect.github.com/tauri-apps/tauri/issues/11627">#11627</a>)</li> <li><a href="60e86d5f6e"><code>60e86d5</code></a> fix(cli): <code>android dev</code> not working on Windows without <code>--host</code> (<a href="https://redirect.github.com/tauri-apps/tauri/issues/11624">#11624</a>)</li> <li><a href="b28435860c"><code>b284358</code></a> chore(deps) Update Rust crate thiserror to v2 (dev) (<a href="https://redirect.github.com/tauri-apps/tauri/issues/11604">#11604</a>)</li> <li><a href="229d7f8e22"><code>229d7f8</code></a> fix(core): fix child webviews on macOS and Windows treated as full webview wi...</li> <li><a href="c561786844"><code>c561786</code></a> docs: fix typos in drag&drop event.payload (<a href="https://redirect.github.com/tauri-apps/tauri/issues/11620">#11620</a>)</li> <li><a href="6bf917941f"><code>6bf9179</code></a> feat(cli): add <code>tauri remove</code> command (<a href="https://redirect.github.com/tauri-apps/tauri/issues/11322">#11322</a>)</li> <li><a href="8e8312bb82"><code>8e8312b</code></a> ci: unpin ravif (<a href="https://redirect.github.com/tauri-apps/tauri/issues/11608">#11608</a>)</li> <li><a href="f550a3f471"><code>f550a3f</code></a> chore(deps) Update Tauri Bundler (dev) (<a href="https://redirect.github.com/tauri-apps/tauri/issues/11601">#11601</a>)</li> <li><a href="4d545ab3ca"><code>4d545ab</code></a> feat: background color APIs (<a href="https://redirect.github.com/tauri-apps/tauri/issues/11486">#11486</a>)</li> <li>Additional commits viewable in <a href="https://github.com/tauri-apps/tauri/compare/@tauri-apps/cli-v2.0.4...@tauri-apps/cli-v2.1.0">compare view</a></li> </ul> </details> <br /> [](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>
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 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.