Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.4.10 to 6.0.6. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/vitejs/vite/releases">vite's releases</a>.</em></p> <blockquote> <h2>v6.0.6</h2> <p>Please refer to <a href="https://github.com/vitejs/vite/blob/v6.0.6/packages/vite/CHANGELOG.md">CHANGELOG.md</a> for details.</p> <h2>v6.0.5</h2> <p>Please refer to <a href="https://github.com/vitejs/vite/blob/v6.0.5/packages/vite/CHANGELOG.md">CHANGELOG.md</a> for details.</p> <h2>v6.0.4</h2> <p>Please refer to <a href="https://github.com/vitejs/vite/blob/v6.0.4/packages/vite/CHANGELOG.md">CHANGELOG.md</a> for details.</p> <h2>v6.0.3</h2> <p>Please refer to <a href="https://github.com/vitejs/vite/blob/v6.0.3/packages/vite/CHANGELOG.md">CHANGELOG.md</a> for details.</p> <h2>v6.0.2</h2> <p>Please refer to <a href="https://github.com/vitejs/vite/blob/v6.0.2/packages/vite/CHANGELOG.md">CHANGELOG.md</a> for details.</p> <h2>create-vite@6.0.1</h2> <p>Please refer to <a href="https://github.com/vitejs/vite/blob/create-vite@6.0.1/packages/create-vite/CHANGELOG.md">CHANGELOG.md</a> for details.</p> <h2>v6.0.1</h2> <p>Please refer to <a href="https://github.com/vitejs/vite/blob/v6.0.1/packages/vite/CHANGELOG.md">CHANGELOG.md</a> for details.</p> <h2>create-vite@6.0.0</h2> <p>Please refer to <a href="https://github.com/vitejs/vite/blob/create-vite@6.0.0/packages/create-vite/CHANGELOG.md">CHANGELOG.md</a> for details.</p> <h2>plugin-legacy@6.0.0</h2> <p>Please refer to <a href="https://github.com/vitejs/vite/blob/plugin-legacy@6.0.0/packages/plugin-legacy/CHANGELOG.md">CHANGELOG.md</a> for details.</p> <h2>v6.0.0</h2> <p>Please refer to <a href="https://github.com/vitejs/vite/blob/v6.0.0/packages/vite/CHANGELOG.md">CHANGELOG.md</a> for details.</p> <h2>v6.0.0-beta.10</h2> <p>Please refer to <a href="https://github.com/vitejs/vite/blob/v6.0.0-beta.10/packages/vite/CHANGELOG.md">CHANGELOG.md</a> for details.</p> <h2>v6.0.0-beta.9</h2> <p>Please refer to <a href="https://github.com/vitejs/vite/blob/v6.0.0-beta.9/packages/vite/CHANGELOG.md">CHANGELOG.md</a> for details.</p> <h2>v6.0.0-beta.8</h2> <p>Please refer to <a href="https://github.com/vitejs/vite/blob/v6.0.0-beta.8/packages/vite/CHANGELOG.md">CHANGELOG.md</a> for details.</p> <h2>v6.0.0-beta.7</h2> <p>Please refer to <a href="https://github.com/vitejs/vite/blob/v6.0.0-beta.7/packages/vite/CHANGELOG.md">CHANGELOG.md</a> for details.</p> <h2>v6.0.0-beta.6</h2> <p>Please refer to <a href="https://github.com/vitejs/vite/blob/v6.0.0-beta.6/packages/vite/CHANGELOG.md">CHANGELOG.md</a> for details.</p> <h2>v6.0.0-beta.5</h2> <p>Please refer to <a href="https://github.com/vitejs/vite/blob/v6.0.0-beta.5/packages/vite/CHANGELOG.md">CHANGELOG.md</a> for details.</p> <h2>v6.0.0-beta.4</h2> <p>Please refer to <a href="https://github.com/vitejs/vite/blob/v6.0.0-beta.4/packages/vite/CHANGELOG.md">CHANGELOG.md</a> for details.</p> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md">vite's changelog</a>.</em></p> <blockquote> <h2><!-- raw HTML omitted -->6.0.6 (2024-12-26)<!-- raw HTML omitted --></h2> <ul> <li>fix: replace runner-side path normalization with <code>fetchModule</code>-side resolve (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18361">#18361</a>) (<a href="9f10261e76">9f10261</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/18361">#18361</a></li> <li>fix(css): resolve style tags in HTML files correctly for lightningcss (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/19001">#19001</a>) (<a href="afff05c032">afff05c</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/19001">#19001</a></li> <li>fix(css): show correct error when unknown placeholder is used for CSS modules pattern in lightningcs (<a href="9290d85b5d">9290d85</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/19070">#19070</a></li> <li>fix(resolve): handle package.json with UTF-8 BOM (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/19000">#19000</a>) (<a href="902567ac53">902567a</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/19000">#19000</a></li> <li>fix(ssrTransform): preserve line offset when transforming imports (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/19004">#19004</a>) (<a href="1aa434e801">1aa434e</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/19004">#19004</a></li> <li>chore: fix typo in comment (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/19067">#19067</a>) (<a href="eb06ec30bb">eb06ec3</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/19067">#19067</a></li> <li>chore: update comment about <code>build.target</code> (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/19047">#19047</a>) (<a href="0e9e81f622">0e9e81f</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/19047">#19047</a></li> <li>revert: unpin esbuild version (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/19043">#19043</a>) (<a href="8bfe247511">8bfe247</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/19043">#19043</a></li> <li>test(ssr): test virtual module with query (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/19044">#19044</a>) (<a href="a1f4b46896">a1f4b46</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/19044">#19044</a></li> </ul> <h2><!-- raw HTML omitted -->6.0.5 (2024-12-20)<!-- raw HTML omitted --></h2> <ul> <li>fix: esbuild regression (pin to 0.24.0) (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/19027">#19027</a>) (<a href="4359e0d5b3">4359e0d</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/19027">#19027</a></li> </ul> <h2><!-- raw HTML omitted -->6.0.4 (2024-12-19)<!-- raw HTML omitted --></h2> <ul> <li>fix: <code>this.resolve</code> skipSelf should not skip for different <code>id</code> or <code>import</code> (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18903">#18903</a>) (<a href="472732057c">4727320</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/18903">#18903</a></li> <li>fix: fallback terser to main thread when function options are used (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18987">#18987</a>) (<a href="12b612d8be">12b612d</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/18987">#18987</a></li> <li>fix: merge client and ssr values for <code>pluginContainer.getModuleInfo</code> (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18895">#18895</a>) (<a href="258cdd637d">258cdd6</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/18895">#18895</a></li> <li>fix(css): escape double quotes in <code>url()</code> when lightningcss is used (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18997">#18997</a>) (<a href="3734f8099e">3734f80</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/18997">#18997</a></li> <li>fix(css): root relative import in sass modern API on Windows (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18945">#18945</a>) (<a href="c4b532cc90">c4b532c</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/18945">#18945</a></li> <li>fix(css): skip non css in custom sass importer (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18970">#18970</a>) (<a href="21680bdf9c">21680bd</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/18970">#18970</a></li> <li>fix(deps): update all non-major dependencies (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18967">#18967</a>) (<a href="d88d0004a8">d88d000</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/18967">#18967</a></li> <li>fix(deps): update all non-major dependencies (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18996">#18996</a>) (<a href="2b4f115129">2b4f115</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/18996">#18996</a></li> <li>fix(optimizer): keep NODE_ENV as-is when keepProcessEnv is <code>true</code> (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18899">#18899</a>) (<a href="8a6bb4e11d">8a6bb4e</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/18899">#18899</a></li> <li>fix(ssr): recreate ssrCompatModuleRunner on restart (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18973">#18973</a>) (<a href="7d6dd5d1d6">7d6dd5d</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/18973">#18973</a></li> <li>chore: better validation error message for dts build (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18948">#18948</a>) (<a href="63b82f1e29">63b82f1</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/18948">#18948</a></li> <li>chore(deps): update all non-major dependencies (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18916">#18916</a>) (<a href="ef7a6a35e6">ef7a6a3</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/18916">#18916</a></li> <li>chore(deps): update dependency <code>@rollup/plugin-node-resolve</code> to v16 (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18968">#18968</a>) (<a href="62fad6d79f">62fad6d</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/18968">#18968</a></li> <li>refactor: make internal invoke event to use the same interface with <code>handleInvoke</code> (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18902">#18902</a>) (<a href="27f691b0c7">27f691b</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/18902">#18902</a></li> <li>refactor: simplify manifest plugin code (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18890">#18890</a>) (<a href="1bfe21b944">1bfe21b</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/18890">#18890</a></li> <li>test: test <code>ModuleRunnerTransport</code> <code>invoke</code> API (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18865">#18865</a>) (<a href="e5f5301924">e5f5301</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/18865">#18865</a></li> <li>test: test output hash changes (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18898">#18898</a>) (<a href="bfbb130fcc">bfbb130</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/18898">#18898</a></li> </ul> <h2><!-- raw HTML omitted -->6.0.3 (2024-12-05)<!-- raw HTML omitted --></h2> <ul> <li>fix: handle postcss load unhandled rejections (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18886">#18886</a>) (<a href="d5fb653c15">d5fb653</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/18886">#18886</a></li> <li>fix: make handleInvoke interface compatible with invoke (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18876">#18876</a>) (<a href="a1dd396da8">a1dd396</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/18876">#18876</a></li> <li>fix: make result interfaces for <code>ModuleRunnerTransport#invoke</code> more explicit (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18851">#18851</a>) (<a href="a75fc3193d">a75fc31</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/18851">#18851</a></li> <li>fix: merge <code>environments.ssr.resolve</code> with root <code>ssr</code> config (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18857">#18857</a>) (<a href="310433106e">3104331</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/18857">#18857</a></li> <li>fix: no permission to create vite config file (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18844">#18844</a>) (<a href="ff47778004">ff47778</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/18844">#18844</a></li> <li>fix: remove CSS import in CJS correctly in some cases (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18885">#18885</a>) (<a href="690a36ffdb">690a36f</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/18885">#18885</a></li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="5c2b4a089a"><code>5c2b4a0</code></a> release: v6.0.6</li> <li><a href="9290d85b5d"><code>9290d85</code></a> fix(css): show correct error when unknown placeholder is used for CSS modules...</li> <li><a href="afff05c032"><code>afff05c</code></a> fix(css): resolve style tags in HTML files correctly for lightningcss (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/19001">#19001</a>)</li> <li><a href="eb06ec30bb"><code>eb06ec3</code></a> chore: fix typo in comment (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/19067">#19067</a>)</li> <li><a href="1aa434e801"><code>1aa434e</code></a> fix(ssrTransform): preserve line offset when transforming imports (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/19004">#19004</a>)</li> <li><a href="902567ac53"><code>902567a</code></a> fix(resolve): handle package.json with UTF-8 BOM (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/19000">#19000</a>)</li> <li><a href="9f10261e76"><code>9f10261</code></a> fix: replace runner-side path normalization with <code>fetchModule</code>-side resolve (...</li> <li><a href="8bfe247511"><code>8bfe247</code></a> revert: unpin esbuild version (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/19043">#19043</a>)</li> <li><a href="0e9e81f622"><code>0e9e81f</code></a> chore: update comment about <code>build.target</code> (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/19047">#19047</a>)</li> <li><a href="a1f4b46896"><code>a1f4b46</code></a> test(ssr): test virtual module with query (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/19044">#19044</a>)</li> <li>Additional commits viewable in <a href="https://github.com/vitejs/vite/commits/v6.0.6/packages/vite">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 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.