Bumps [tauri-runtime](https://github.com/tauri-apps/tauri) from 0.14.4 to 0.14.5. <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 v0.14.5</h2> <p>Updating crates.io index Locking 595 packages to latest compatible versions Adding addr2line v0.22.0 (latest: v0.24.1) Adding atk v0.15.1 (latest: v0.18.0) Adding atk-sys v0.15.1 (latest: v0.18.0) Adding base64 v0.13.1 (latest: v0.22.1) Adding base64 v0.21.7 (latest: v0.22.1) Adding bit-set v0.5.3 (latest: v0.8.0) Adding bit-vec v0.6.3 (latest: v0.8.0) Adding bitflags v1.3.2 (latest: v2.6.0) Adding cairo-rs v0.15.12 (latest: v0.20.1) Adding cairo-sys-rs v0.15.1 (latest: v0.20.0) Adding cargo_toml v0.15.3 (latest: v0.20.4) Adding cfb v0.7.3 (latest: v0.10.0) Adding cfg-expr v0.9.1 (latest: v0.16.0) Adding cfg-expr v0.15.8 (latest: v0.16.0) Adding cfg_aliases v0.1.1 (latest: v0.2.1) Adding clap v3.2.25 (latest: v4.5.16) Adding clap_lex v0.2.4 (latest: v0.7.2) Adding cocoa v0.24.1 (latest: v0.26.0) Adding cocoa-foundation v0.1.2 (latest: v0.2.0) Adding convert_case v0.4.0 (latest: v0.6.0) Adding core-foundation v0.9.4 (latest: v0.10.0) Adding core-graphics v0.22.3 (latest: v0.24.0) Adding core-graphics v0.23.2 (latest: v0.24.0) Adding core-graphics-types v0.1.3 (latest: v0.2.0) Adding cssparser v0.27.2 (latest: v0.34.0) Adding derive_more v0.99.18 (latest: v1.0.0) Adding env_logger v0.8.4 (latest: v0.11.5) Adding fixedbitset v0.4.2 (latest: v0.5.7) Adding fluent-uri v0.1.4 (latest: v0.2.0) Adding foreign-types v0.3.2 (latest: v0.5.0) Adding foreign-types-shared v0.1.1 (latest: v0.3.1) Adding freetype-sys v0.20.1 (latest: v0.22.0) Adding gdk v0.15.4 (latest: v0.18.0) Adding gdk-pixbuf v0.15.11 (latest: v0.20.1) Adding gdk-pixbuf-sys v0.15.10 (latest: v0.20.1) Adding gdk-sys v0.15.1 (latest: v0.18.0) Adding gdkwayland-sys v0.15.3 (latest: v0.18.0) Adding gdkx11-sys v0.15.1 (latest: v0.18.0) Adding generator v0.7.5 (latest: v0.8.2) Adding generic-array v0.14.7 (latest: v1.1.0) Adding gethostname v0.4.3 (latest: v0.5.0) Adding getrandom v0.1.16 (latest: v0.2.15) Adding gimli v0.29.0 (latest: v0.31.0) Adding gio v0.15.12 (latest: v0.20.1) Adding gio-sys v0.15.10 (latest: v0.20.1) Adding glib v0.15.12 (latest: v0.20.1) Adding glib-macros v0.15.13 (latest: v0.20.1)</p> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="1f45808ba0"><code>1f45808</code></a> Apply Version Updates From Current Changes (v1) (<a href="https://redirect.github.com/tauri-apps/tauri/issues/10220">#10220</a>)</li> <li><a href="9082a39604"><code>9082a39</code></a> fix(cli): env_logger usage</li> <li><a href="d84ae448e5"><code>d84ae44</code></a> fix(cli): downgrade env_logger to 0.10 to satisfy MSRV, fix CI</li> <li><a href="3e1c28b90c"><code>3e1c28b</code></a> chore(deps) Update dependency <code>@types/node</code> to v20.16.1 (<a href="https://redirect.github.com/tauri-apps/tauri/issues/10722">#10722</a>)</li> <li><a href="2b61447dfc"><code>2b61447</code></a> chore(deps) Update Rust crate proc-macro2 to v1.0.86 (<a href="https://redirect.github.com/tauri-apps/tauri/issues/10621">#10621</a>)</li> <li><a href="0469b6b078"><code>0469b6b</code></a> chore(deps) Update Tauri API Definitions (1.x) (<a href="https://redirect.github.com/tauri-apps/tauri/issues/10622">#10622</a>)</li> <li><a href="3b841f28bb"><code>3b841f2</code></a> chore(deps) Update Tauri CLI (1.x) (<a href="https://redirect.github.com/tauri-apps/tauri/issues/10628">#10628</a>)</li> <li><a href="c3a90e5c27"><code>c3a90e5</code></a> fix(tauri-runtime-wry): ensure tray is created when event loop ready (<a href="https://redirect.github.com/tauri-apps/tauri/issues/10611">#10611</a>)</li> <li><a href="937849f28c"><code>937849f</code></a> refactor(tauri-runtime-wry): Arc instead of Rc, closes <a href="https://redirect.github.com/tauri-apps/tauri/issues/9775">#9775</a> (<a href="https://redirect.github.com/tauri-apps/tauri/issues/10587">#10587</a>)</li> <li><a href="48a7415c21"><code>48a7415</code></a> chore(deps): update serialize-to-javascript to 0.1.2 (<a href="https://redirect.github.com/tauri-apps/tauri/issues/10594">#10594</a>)</li> <li>Additional commits viewable in <a href="https://github.com/tauri-apps/tauri/compare/tauri-runtime-v0.14.4...tauri-runtime-v0.14.5">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> Co-authored-by: Reactor Scram <ReactorScram@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
benchprofile. 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.