Bumps the tauri group in /rust with 4 updates: [tauri](https://github.com/tauri-apps/tauri), [tauri-build](https://github.com/tauri-apps/tauri), [tauri-runtime](https://github.com/tauri-apps/tauri) and [tauri-utils](https://github.com/tauri-apps/tauri). Updates `tauri` from 2.4.0 to 2.4.1 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/tauri-apps/tauri/releases">tauri's releases</a>.</em></p> <blockquote> <h2>tauri-runtime-wry v2.4.1</h2> <!-- raw HTML omitted --> <pre><code>Updating git repository `https://github.com/tauri-apps/schemars.git` Updating crates.io index warning: Patch `schemars_derive v0.8.21 (https://github.com/tauri-apps/schemars.git?branch=feat%2Fpreserve-description-newlines#c30f9848)` was not used in the crate graph. Check that the patched package version and available features are compatible with the dependency requirements. If the patch has a different version from what is locked in the Cargo.lock file, run `cargo update` to use the new version. This may also occur with an optional dependency that is not enabled. Locking 1015 packages to latest compatible versions Adding apple-codesign v0.27.0 (available: v0.29.0) Adding axum v0.7.9 (available: v0.8.1) Adding colored v2.2.0 (available: v3.0.0) Adding ctor v0.2.9 (available: v0.4.0) Adding getrandom v0.2.15 (available: v0.3.1) Adding html5ever v0.26.0 (available: v0.29.1) Adding itertools v0.13.0 (available: v0.14.0) Adding json-patch v3.0.1 (available: v4.0.0) Adding minisign v0.7.3 (available: v0.7.9) Adding oxc_allocator v0.36.0 (available: v0.53.0) Adding oxc_ast v0.36.0 (available: v0.53.0) Adding oxc_parser v0.36.0 (available: v0.53.0) Adding oxc_span v0.36.0 (available: v0.53.0) Adding proc-macro-crate v2.0.0 (available: v2.0.2) Adding rand v0.8.5 (available: v0.9.0) Adding serialize-to-javascript v0.1.1 (available: v0.1.2) Adding serialize-to-javascript-impl v0.1.1 (available: v0.1.2) Adding tauri-utils v1.6.0 (available: v1.6.2) Adding tiny_http v0.11.0 (available: v0.12.0) Adding x509-certificate v0.23.1 (available: v0.24.0) Fetching advisory database from `https://github.com/RustSec/advisory-db.git` Loaded 734 security advisories (from /home/runner/.cargo/advisory-db) Updating crates.io index Scanning Cargo.lock for vulnerabilities (1040 crate dependencies) Crate: atk Version: 0.18.2 Warning: unmaintained Title: gtk-rs GTK3 bindings - no longer maintained Date: 2024-03-04 ID: RUSTSEC-2024-0413 URL: https://rustsec.org/advisories/RUSTSEC-2024-0413 Dependency tree: atk 0.18.2 └── gtk 0.18.2 ├── wry 0.50.1 │ └── tauri-runtime-wry 2.4.1 │ └── tauri 2.3.1 </tr></table> </code></pre> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="b154826881"><code>b154826</code></a> apply version updates (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13060">#13060</a>)</li> <li><a href="dade232592"><code>dade232</code></a> chore: change bumps to patches</li> <li><a href="aa6b4d4edf"><code>aa6b4d4</code></a> fix(cli): preserve null when merging patches (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13120">#13120</a>)</li> <li><a href="794af778e4"><code>794af77</code></a> fix(cli): merge config based on the first one (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13117">#13117</a>)</li> <li><a href="4e22ae29d3"><code>4e22ae2</code></a> chore(deps-dev): bump vite from 6.2.3 to 6.2.4 (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13111">#13111</a>)</li> <li><a href="4ae14bf2f2"><code>4ae14bf</code></a> fix: suppress deprecated warning in tray icon codegen (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13093">#13093</a>)</li> <li><a href="f805061d11"><code>f805061</code></a> feat(cli): allow for toml and json5 files in --config arg (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13079">#13079</a>)</li> <li><a href="30beb6fee7"><code>30beb6f</code></a> fix(cli): <code>tauri info</code> can't find the latest version for rust crates (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13096">#13096</a>)</li> <li><a href="22c7a877e3"><code>22c7a87</code></a> chore(deps): update dependency rollup to v4.38.0 (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13094">#13094</a>)</li> <li><a href="2138bbc212"><code>2138bbc</code></a> fix(nsis): in wrong language if <code>SpanishInternational</code> is included (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13087">#13087</a>)</li> <li>Additional commits viewable in <a href="https://github.com/tauri-apps/tauri/compare/tauri-v2.4.0...tauri-v2.4.1">compare view</a></li> </ul> </details> <br /> Updates `tauri-build` from 2.1.0 to 2.1.1 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/tauri-apps/tauri/releases">tauri-build's releases</a>.</em></p> <blockquote> <h2>tauri-build v2.1.1</h2> <!-- raw HTML omitted --> <pre><code>Updating git repository `https://github.com/tauri-apps/schemars.git` Updating crates.io index warning: Patch `schemars_derive v0.8.21 (https://github.com/tauri-apps/schemars.git?branch=feat%2Fpreserve-description-newlines#c30f9848)` was not used in the crate graph. Check that the patched package version and available features are compatible with the dependency requirements. If the patch has a different version from what is locked in the Cargo.lock file, run `cargo update` to use the new version. This may also occur with an optional dependency that is not enabled. Locking 1021 packages to latest compatible versions Adding apple-codesign v0.27.0 (available: v0.29.0) Adding axum v0.7.9 (available: v0.8.3) Adding colored v2.2.0 (available: v3.0.0) Adding ctor v0.2.9 (available: v0.4.1) Adding getrandom v0.2.15 (available: v0.3.2) Adding html5ever v0.26.0 (available: v0.30.0) Adding itertools v0.13.0 (available: v0.14.0) Adding json-patch v3.0.1 (available: v4.0.0) Adding minisign v0.7.3 (available: v0.7.9) Adding oxc_allocator v0.36.0 (available: v0.61.2) Adding oxc_ast v0.36.0 (available: v0.61.2) Adding oxc_parser v0.36.0 (available: v0.61.2) Adding oxc_span v0.36.0 (available: v0.61.2) Adding proc-macro-crate v2.0.0 (available: v2.0.2) Adding rand v0.8.5 (available: v0.9.0) Adding rpm v0.16.0 (available: v0.17.0) Adding serialize-to-javascript v0.1.1 (available: v0.1.2) Adding serialize-to-javascript-impl v0.1.1 (available: v0.1.2) Adding tauri-utils v1.6.0 (available: v1.6.2) Adding tiny_http v0.11.0 (available: v0.12.0) Adding webview2-com v0.36.0 (available: v0.37.0) Adding windows v0.60.0 (available: v0.61.1) Adding x509-certificate v0.23.1 (available: v0.24.0) Fetching advisory database from `https://github.com/RustSec/advisory-db.git` Loaded 748 security advisories (from /home/runner/.cargo/advisory-db) Updating crates.io index Scanning Cargo.lock for vulnerabilities (1046 crate dependencies) Crate: atk Version: 0.18.2 Warning: unmaintained Title: gtk-rs GTK3 bindings - no longer maintained Date: 2024-03-04 ID: RUSTSEC-2024-0413 URL: https://rustsec.org/advisories/RUSTSEC-2024-0413 Dependency tree: atk 0.18.2 └── gtk 0.18.2 </tr></table> </code></pre> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="b154826881"><code>b154826</code></a> apply version updates (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13060">#13060</a>)</li> <li><a href="dade232592"><code>dade232</code></a> chore: change bumps to patches</li> <li><a href="aa6b4d4edf"><code>aa6b4d4</code></a> fix(cli): preserve null when merging patches (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13120">#13120</a>)</li> <li><a href="794af778e4"><code>794af77</code></a> fix(cli): merge config based on the first one (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13117">#13117</a>)</li> <li><a href="4e22ae29d3"><code>4e22ae2</code></a> chore(deps-dev): bump vite from 6.2.3 to 6.2.4 (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13111">#13111</a>)</li> <li><a href="4ae14bf2f2"><code>4ae14bf</code></a> fix: suppress deprecated warning in tray icon codegen (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13093">#13093</a>)</li> <li><a href="f805061d11"><code>f805061</code></a> feat(cli): allow for toml and json5 files in --config arg (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13079">#13079</a>)</li> <li><a href="30beb6fee7"><code>30beb6f</code></a> fix(cli): <code>tauri info</code> can't find the latest version for rust crates (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13096">#13096</a>)</li> <li><a href="22c7a877e3"><code>22c7a87</code></a> chore(deps): update dependency rollup to v4.38.0 (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13094">#13094</a>)</li> <li><a href="2138bbc212"><code>2138bbc</code></a> fix(nsis): in wrong language if <code>SpanishInternational</code> is included (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13087">#13087</a>)</li> <li>Additional commits viewable in <a href="https://github.com/tauri-apps/tauri/compare/tauri-build-v2.1.0...tauri-build-v2.1.1">compare view</a></li> </ul> </details> <br /> Updates `tauri-runtime` from 2.5.0 to 2.5.1 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/tauri-apps/tauri/releases">tauri-runtime's releases</a>.</em></p> <blockquote> <h2>tauri-runtime v2.5.1</h2> <!-- raw HTML omitted --> <pre><code>Updating git repository `https://github.com/tauri-apps/schemars.git` Updating crates.io index warning: Patch `schemars_derive v0.8.21 (https://github.com/tauri-apps/schemars.git?branch=feat%2Fpreserve-description-newlines#c30f9848)` was not used in the crate graph. Check that the patched package version and available features are compatible with the dependency requirements. If the patch has a different version from what is locked in the Cargo.lock file, run `cargo update` to use the new version. This may also occur with an optional dependency that is not enabled. Locking 1021 packages to latest compatible versions Adding apple-codesign v0.27.0 (available: v0.29.0) Adding axum v0.7.9 (available: v0.8.3) Adding colored v2.2.0 (available: v3.0.0) Adding ctor v0.2.9 (available: v0.4.1) Adding getrandom v0.2.15 (available: v0.3.2) Adding html5ever v0.26.0 (available: v0.30.0) Adding itertools v0.13.0 (available: v0.14.0) Adding json-patch v3.0.1 (available: v4.0.0) Adding minisign v0.7.3 (available: v0.7.9) Adding oxc_allocator v0.36.0 (available: v0.61.2) Adding oxc_ast v0.36.0 (available: v0.61.2) Adding oxc_parser v0.36.0 (available: v0.61.2) Adding oxc_span v0.36.0 (available: v0.61.2) Adding proc-macro-crate v2.0.0 (available: v2.0.2) Adding rand v0.8.5 (available: v0.9.0) Adding rpm v0.16.0 (available: v0.17.0) Adding serialize-to-javascript v0.1.1 (available: v0.1.2) Adding serialize-to-javascript-impl v0.1.1 (available: v0.1.2) Adding tauri-utils v1.6.0 (available: v1.6.2) Adding tiny_http v0.11.0 (available: v0.12.0) Adding webview2-com v0.36.0 (available: v0.37.0) Adding windows v0.60.0 (available: v0.61.1) Adding x509-certificate v0.23.1 (available: v0.24.0) Fetching advisory database from `https://github.com/RustSec/advisory-db.git` Loaded 748 security advisories (from /home/runner/.cargo/advisory-db) Updating crates.io index Scanning Cargo.lock for vulnerabilities (1046 crate dependencies) Crate: atk Version: 0.18.2 Warning: unmaintained Title: gtk-rs GTK3 bindings - no longer maintained Date: 2024-03-04 ID: RUSTSEC-2024-0413 URL: https://rustsec.org/advisories/RUSTSEC-2024-0413 Dependency tree: atk 0.18.2 └── gtk 0.18.2 </tr></table> </code></pre> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="b154826881"><code>b154826</code></a> apply version updates (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13060">#13060</a>)</li> <li><a href="dade232592"><code>dade232</code></a> chore: change bumps to patches</li> <li><a href="aa6b4d4edf"><code>aa6b4d4</code></a> fix(cli): preserve null when merging patches (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13120">#13120</a>)</li> <li><a href="794af778e4"><code>794af77</code></a> fix(cli): merge config based on the first one (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13117">#13117</a>)</li> <li><a href="4e22ae29d3"><code>4e22ae2</code></a> chore(deps-dev): bump vite from 6.2.3 to 6.2.4 (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13111">#13111</a>)</li> <li><a href="4ae14bf2f2"><code>4ae14bf</code></a> fix: suppress deprecated warning in tray icon codegen (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13093">#13093</a>)</li> <li><a href="f805061d11"><code>f805061</code></a> feat(cli): allow for toml and json5 files in --config arg (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13079">#13079</a>)</li> <li><a href="30beb6fee7"><code>30beb6f</code></a> fix(cli): <code>tauri info</code> can't find the latest version for rust crates (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13096">#13096</a>)</li> <li><a href="22c7a877e3"><code>22c7a87</code></a> chore(deps): update dependency rollup to v4.38.0 (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13094">#13094</a>)</li> <li><a href="2138bbc212"><code>2138bbc</code></a> fix(nsis): in wrong language if <code>SpanishInternational</code> is included (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13087">#13087</a>)</li> <li>Additional commits viewable in <a href="https://github.com/tauri-apps/tauri/compare/tauri-runtime-v2.5.0...tauri-runtime-v2.5.1">compare view</a></li> </ul> </details> <br /> Updates `tauri-utils` from 2.3.0 to 2.3.1 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/tauri-apps/tauri/releases">tauri-utils's releases</a>.</em></p> <blockquote> <h2>tauri-utils v2.3.1</h2> <!-- raw HTML omitted --> <pre><code>Updating git repository `https://github.com/tauri-apps/schemars.git` Updating crates.io index warning: Patch `schemars_derive v0.8.21 (https://github.com/tauri-apps/schemars.git?branch=feat%2Fpreserve-description-newlines#c30f9848)` was not used in the crate graph. Check that the patched package version and available features are compatible with the dependency requirements. If the patch has a different version from what is locked in the Cargo.lock file, run `cargo update` to use the new version. This may also occur with an optional dependency that is not enabled. Locking 1021 packages to latest compatible versions Adding apple-codesign v0.27.0 (available: v0.29.0) Adding axum v0.7.9 (available: v0.8.3) Adding colored v2.2.0 (available: v3.0.0) Adding ctor v0.2.9 (available: v0.4.1) Adding getrandom v0.2.15 (available: v0.3.2) Adding html5ever v0.26.0 (available: v0.30.0) Adding itertools v0.13.0 (available: v0.14.0) Adding json-patch v3.0.1 (available: v4.0.0) Adding minisign v0.7.3 (available: v0.7.9) Adding oxc_allocator v0.36.0 (available: v0.61.2) Adding oxc_ast v0.36.0 (available: v0.61.2) Adding oxc_parser v0.36.0 (available: v0.61.2) Adding oxc_span v0.36.0 (available: v0.61.2) Adding proc-macro-crate v2.0.0 (available: v2.0.2) Adding rand v0.8.5 (available: v0.9.0) Adding rpm v0.16.0 (available: v0.17.0) Adding serialize-to-javascript v0.1.1 (available: v0.1.2) Adding serialize-to-javascript-impl v0.1.1 (available: v0.1.2) Adding tauri-utils v1.6.0 (available: v1.6.2) Adding tiny_http v0.11.0 (available: v0.12.0) Adding webview2-com v0.36.0 (available: v0.37.0) Adding windows v0.60.0 (available: v0.61.1) Adding x509-certificate v0.23.1 (available: v0.24.0) Fetching advisory database from `https://github.com/RustSec/advisory-db.git` Loaded 748 security advisories (from /home/runner/.cargo/advisory-db) Updating crates.io index Scanning Cargo.lock for vulnerabilities (1046 crate dependencies) Crate: atk Version: 0.18.2 Warning: unmaintained Title: gtk-rs GTK3 bindings - no longer maintained Date: 2024-03-04 ID: RUSTSEC-2024-0413 URL: https://rustsec.org/advisories/RUSTSEC-2024-0413 Dependency tree: atk 0.18.2 └── gtk 0.18.2 </tr></table> </code></pre> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="b154826881"><code>b154826</code></a> apply version updates (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13060">#13060</a>)</li> <li><a href="dade232592"><code>dade232</code></a> chore: change bumps to patches</li> <li><a href="aa6b4d4edf"><code>aa6b4d4</code></a> fix(cli): preserve null when merging patches (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13120">#13120</a>)</li> <li><a href="794af778e4"><code>794af77</code></a> fix(cli): merge config based on the first one (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13117">#13117</a>)</li> <li><a href="4e22ae29d3"><code>4e22ae2</code></a> chore(deps-dev): bump vite from 6.2.3 to 6.2.4 (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13111">#13111</a>)</li> <li><a href="4ae14bf2f2"><code>4ae14bf</code></a> fix: suppress deprecated warning in tray icon codegen (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13093">#13093</a>)</li> <li><a href="f805061d11"><code>f805061</code></a> feat(cli): allow for toml and json5 files in --config arg (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13079">#13079</a>)</li> <li><a href="30beb6fee7"><code>30beb6f</code></a> fix(cli): <code>tauri info</code> can't find the latest version for rust crates (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13096">#13096</a>)</li> <li><a href="22c7a877e3"><code>22c7a87</code></a> chore(deps): update dependency rollup to v4.38.0 (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13094">#13094</a>)</li> <li><a href="2138bbc212"><code>2138bbc</code></a> fix(nsis): in wrong language if <code>SpanishInternational</code> is included (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13087">#13087</a>)</li> <li>Additional commits viewable in <a href="https://github.com/tauri-apps/tauri/compare/tauri-utils-v2.3.0...tauri-utils-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>
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.