Files
firezone/rust
dependabot[bot] 7f577a4635 build(deps): Bump libc from 0.2.153 to 0.2.154 in /rust (#4894)
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.153 to 0.2.154.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/rust-lang/libc/releases">libc's
releases</a>.</em></p>
<blockquote>
<h2>0.2.154</h2>
<h2>What's Changed</h2>
<ul>
<li>Fix CI on v0.2 by <a
href="https://github.com/JohnTitor"><code>@​JohnTitor</code></a> in <a
href="https://redirect.github.com/rust-lang/libc/pull/3589">rust-lang/libc#3589</a></li>
<li>[Backport <a
href="https://redirect.github.com/rust-lang/libc/issues/3547">#3547</a>]
Add ioctl FS_IOC_{G,S}{ETVERSION,ETFLAGS} for CSKY by <a
href="https://github.com/Dirreke"><code>@​Dirreke</code></a> in <a
href="https://redirect.github.com/rust-lang/libc/pull/3572">rust-lang/libc#3572</a></li>
<li>Add Linux riscv64 HWCAP defines (libc-0.2) by <a
href="https://github.com/Xeonacid"><code>@​Xeonacid</code></a> in <a
href="https://redirect.github.com/rust-lang/libc/pull/3580">rust-lang/libc#3580</a></li>
<li>Add missing MIPS R6 FS_IOC_* definitions by <a
href="https://github.com/chenx97"><code>@​chenx97</code></a> in <a
href="https://redirect.github.com/rust-lang/libc/pull/3591">rust-lang/libc#3591</a></li>
<li>Support posix_spawn on Android by <a
href="https://github.com/pcc"><code>@​pcc</code></a> in <a
href="https://redirect.github.com/rust-lang/libc/pull/3602">rust-lang/libc#3602</a></li>
<li>[0.2] Fix libc-tests for loongarch64 by <a
href="https://github.com/heiher"><code>@​heiher</code></a> in <a
href="https://redirect.github.com/rust-lang/libc/pull/3607">rust-lang/libc#3607</a></li>
<li>visionOS Support by <a
href="https://github.com/agg23"><code>@​agg23</code></a> in <a
href="https://redirect.github.com/rust-lang/libc/pull/3568">rust-lang/libc#3568</a></li>
<li>[0.2] linux/musl: Add support for LoongArch64 by <a
href="https://github.com/heiher"><code>@​heiher</code></a> in <a
href="https://redirect.github.com/rust-lang/libc/pull/3606">rust-lang/libc#3606</a></li>
<li>v0.2: Fix c_char on AIX by <a
href="https://github.com/taiki-e"><code>@​taiki-e</code></a> in <a
href="https://redirect.github.com/rust-lang/libc/pull/3662">rust-lang/libc#3662</a></li>
<li>solarish adding SO_EXCLBIND constant. by <a
href="https://github.com/devnexen"><code>@​devnexen</code></a> in <a
href="https://redirect.github.com/rust-lang/libc/pull/3651">rust-lang/libc#3651</a></li>
<li>[0.2] Add SIG constants to espidf by <a
href="https://github.com/Tevz-Beskovnik"><code>@​Tevz-Beskovnik</code></a>
in <a
href="https://redirect.github.com/rust-lang/libc/pull/3658">rust-lang/libc#3658</a></li>
<li>add all android sysconf constants by <a
href="https://github.com/fkm3"><code>@​fkm3</code></a> in <a
href="https://redirect.github.com/rust-lang/libc/pull/3656">rust-lang/libc#3656</a></li>
<li>feat: more _PC_XXX constants for apple targets by <a
href="https://github.com/SteveLauC"><code>@​SteveLauC</code></a> in <a
href="https://redirect.github.com/rust-lang/libc/pull/3649">rust-lang/libc#3649</a></li>
<li>feat: O_EXEC/O_SEARCH for apple platforms by <a
href="https://github.com/SteveLauC"><code>@​SteveLauC</code></a> in <a
href="https://redirect.github.com/rust-lang/libc/pull/3668">rust-lang/libc#3668</a></li>
<li>[0.2] Add constant AT_MINSIGSTKSZ by <a
href="https://github.com/ur4t"><code>@​ur4t</code></a> in <a
href="https://redirect.github.com/rust-lang/libc/pull/3637">rust-lang/libc#3637</a></li>
<li>Haiku: synchronize with post R1-beta 4 changes in libc by <a
href="https://github.com/nielx"><code>@​nielx</code></a> in <a
href="https://redirect.github.com/rust-lang/libc/pull/3638">rust-lang/libc#3638</a></li>
<li>adding getentropy/getrandom to dragonflybsd. by <a
href="https://github.com/devnexen"><code>@​devnexen</code></a> in <a
href="https://redirect.github.com/rust-lang/libc/pull/3618">rust-lang/libc#3618</a></li>
<li>Move strftime, strftime_l, strptime to linux_like by <a
href="https://github.com/pcc"><code>@​pcc</code></a> in <a
href="https://redirect.github.com/rust-lang/libc/pull/3600">rust-lang/libc#3600</a></li>
<li>update crate version to 0.2.154 by <a
href="https://github.com/Dirreke"><code>@​Dirreke</code></a> in <a
href="https://redirect.github.com/rust-lang/libc/pull/3573">rust-lang/libc#3573</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/pcc"><code>@​pcc</code></a> made their
first contribution in <a
href="https://redirect.github.com/rust-lang/libc/pull/3602">rust-lang/libc#3602</a></li>
<li><a href="https://github.com/agg23"><code>@​agg23</code></a> made
their first contribution in <a
href="https://redirect.github.com/rust-lang/libc/pull/3568">rust-lang/libc#3568</a></li>
<li><a
href="https://github.com/Tevz-Beskovnik"><code>@​Tevz-Beskovnik</code></a>
made their first contribution in <a
href="https://redirect.github.com/rust-lang/libc/pull/3658">rust-lang/libc#3658</a></li>
<li><a href="https://github.com/ur4t"><code>@​ur4t</code></a> made their
first contribution in <a
href="https://redirect.github.com/rust-lang/libc/pull/3637">rust-lang/libc#3637</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/rust-lang/libc/compare/0.2.153...0.2.154">https://github.com/rust-lang/libc/compare/0.2.153...0.2.154</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="b78d6a3d27"><code>b78d6a3</code></a>
Merge pull request <a
href="https://redirect.github.com/rust-lang/libc/issues/3573">#3573</a>
from Dirreke/update-libc0.2</li>
<li><a
href="3111f6fe3f"><code>3111f6f</code></a>
Merge pull request <a
href="https://redirect.github.com/rust-lang/libc/issues/3600">#3600</a>
from pcc/strtime</li>
<li><a
href="4d836cceb6"><code>4d836cc</code></a>
Merge pull request <a
href="https://redirect.github.com/rust-lang/libc/issues/3618">#3618</a>
from devnexen/dfbsd_gtrandom</li>
<li><a
href="23a1b4c889"><code>23a1b4c</code></a>
Merge pull request <a
href="https://redirect.github.com/rust-lang/libc/issues/3638">#3638</a>
from nielx/haiku-hrev57593-0.2</li>
<li><a
href="f4ab3e77d3"><code>f4ab3e7</code></a>
Merge pull request <a
href="https://redirect.github.com/rust-lang/libc/issues/3637">#3637</a>
from ur4t/libc-0.2</li>
<li><a
href="4d6fe50954"><code>4d6fe50</code></a>
Move strftime, strftime_l, strptime to linux_like</li>
<li><a
href="e79e95f790"><code>e79e95f</code></a>
adding getentropy/getrandom to dragonflybsd.</li>
<li><a
href="82206836f7"><code>8220683</code></a>
Double quote variables in shell scripts</li>
<li><a
href="c0a693644c"><code>c0a6936</code></a>
Add constant AT_MINSIGSTKSZ introduced by glibc 2.35</li>
<li><a
href="1c7f8fcd8a"><code>1c7f8fc</code></a>
Haiku: synchronize with post R1-beta 4 changes in libc</li>
<li>Additional commits viewable in <a
href="https://github.com/rust-lang/libc/compare/0.2.153...0.2.154">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=libc&package-manager=cargo&previous-version=0.2.153&new-version=0.2.154)](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>
2024-05-08 16:14:24 +00:00
..
2023-05-10 07:58:32 -07:00

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