Bumps the cargo group in /rust with 1 update: [tauri-plugin-shell](https://github.com/tauri-apps/plugins-workspace). Updates `tauri-plugin-shell` from 2.2.0 to 2.2.1 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/tauri-apps/plugins-workspace/releases">tauri-plugin-shell's releases</a>.</em></p> <blockquote> <h2>opener-js v2.2.1</h2> <h2>[2.2.1]</h2> <ul> <li><a href="18dffc9dfe"><code>18dffc9d</code></a> (<a href="https://redirect.github.com/tauri-apps/plugins-workspace/pull/2189">#2189</a> by <a href="https://github.com/tauri-apps/plugins-workspace/../../lucasfernog"><code>@lucasfernog</code></a>) Fix usage on iOS.</li> </ul> <!-- raw HTML omitted --> <pre><code>npm warn publish npm auto-corrected some errors in your package.json when publishing. Please run "npm pkg fix" to address these errors. npm warn publish errors corrected: npm warn publish "repository" was changed from a string to an object npm warn publish "repository.url" was normalized to "git+https://github.com/tauri-apps/plugins-workspace.git" npm notice npm notice 📦 @tauri-apps/plugin-opener@2.2.1 npm notice Tarball Contents npm notice 888B LICENSE.spdx npm notice 3.9kB README.md npm notice 2.8kB dist-js/index.cjs npm notice 1.8kB dist-js/index.d.ts npm notice 2.7kB dist-js/index.js npm notice 11B dist-js/init.d.ts npm notice 729B package.json npm notice Tarball Details npm notice name: @tauri-apps/plugin-opener npm notice version: 2.2.1 npm notice filename: tauri-apps-plugin-opener-2.2.1.tgz npm notice package size: 3.3 kB npm notice unpacked size: 12.8 kB npm notice shasum: cf0d74f683171d0cb31657baa417ad7b75cef4c0 npm notice integrity: sha512-zloo4xzBqeh36[...]S65GLVkeXTHPg== npm notice total files: 7 npm notice npm notice Publishing to https://registry.npmjs.org/ with tag latest and public access npm notice publish Signed provenance statement with source and build information from GitHub Actions npm notice publish Provenance statement published to transparency log: https://search.sigstore.dev/?logIndex=154516065 + @tauri-apps/plugin-opener@2.2.1 </code></pre> <!-- raw HTML omitted --> <h2>opener v2.2.1</h2> <h2>[2.2.1]</h2> <ul> <li><a href="18dffc9dfe"><code>18dffc9d</code></a> (<a href="https://redirect.github.com/tauri-apps/plugins-workspace/pull/2189">#2189</a> by <a href="https://github.com/tauri-apps/plugins-workspace/../../lucasfernog"><code>@lucasfernog</code></a>) Fix usage on iOS.</li> </ul> <!-- raw HTML omitted --> <pre><code></tr></table> </code></pre> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="b40a02c525"><code>b40a02c</code></a> publish new versions (<a href="https://redirect.github.com/tauri-apps/plugins-workspace/issues/2477">#2477</a>)</li> <li><a href="a1b3fa27f1"><code>a1b3fa2</code></a> fix: Re-export api structs (<a href="https://redirect.github.com/tauri-apps/plugins-workspace/issues/2515">#2515</a>)</li> <li><a href="e54cfcb261"><code>e54cfcb</code></a> fix(updater): should be <code>log::debug</code> not <code>println</code> (<a href="https://redirect.github.com/tauri-apps/plugins-workspace/issues/2514">#2514</a>)</li> <li><a href="22ba197b80"><code>22ba197</code></a> chore(deps): update eslint monorepo to v9.22.0 (<a href="https://redirect.github.com/tauri-apps/plugins-workspace/issues/2508">#2508</a>)</li> <li><a href="77520a3587"><code>77520a3</code></a> chore(deps): update dependency rollup to v4.35.0 (<a href="https://redirect.github.com/tauri-apps/plugins-workspace/issues/2511">#2511</a>)</li> <li><a href="dbc5fe120a"><code>dbc5fe1</code></a> chore(deps): update dependency eslint-config-prettier to v10.1.1 (<a href="https://redirect.github.com/tauri-apps/plugins-workspace/issues/2503">#2503</a>)</li> <li><a href="faefcc9fd8"><code>faefcc9</code></a> feat(updater): add <code>configure_client</code> to <code>UpdaterBuilder</code> (<a href="https://redirect.github.com/tauri-apps/plugins-workspace/issues/2430">#2430</a>)</li> <li><a href="ac60d589ec"><code>ac60d58</code></a> feat(updater): improve tracing and error logging (<a href="https://redirect.github.com/tauri-apps/plugins-workspace/issues/2513">#2513</a>)</li> <li><a href="cb38f54f4a"><code>cb38f54</code></a> HTTP add stream support (<a href="https://redirect.github.com/tauri-apps/plugins-workspace/issues/2479">#2479</a>)</li> <li><a href="d37bbdef8d"><code>d37bbde</code></a> fix(clipboard-manager): Wayland support (<a href="https://redirect.github.com/tauri-apps/plugins-workspace/issues/2507">#2507</a>)</li> <li>Additional commits viewable in <a href="https://github.com/tauri-apps/plugins-workspace/compare/os-v2.2.0...os-v2.2.1">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 <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 You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/firezone/firezone/network/alerts). </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.