Bumps [uuid](https://github.com/uuid-rs/uuid) from 1.4.1 to 1.5.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/uuid-rs/uuid/releases">uuid's releases</a>.</em></p> <blockquote> <h2>1.5.0</h2> <h2>What's Changed</h2> <ul> <li>Add impl From<!-- raw HTML omitted --> for String under the std feature flag by <a href="https://github.com/brahms116"><code>@brahms116</code></a> in <a href="https://redirect.github.com/uuid-rs/uuid/pull/700">uuid-rs/uuid#700</a></li> <li>Remove dead link to templates by <a href="https://github.com/KodrAus"><code>@KodrAus</code></a> in <a href="https://redirect.github.com/uuid-rs/uuid/pull/704">uuid-rs/uuid#704</a></li> <li>make ClockSequence wrap correctly by <a href="https://github.com/fef1312"><code>@fef1312</code></a> in <a href="https://redirect.github.com/uuid-rs/uuid/pull/705">uuid-rs/uuid#705</a></li> <li>Track MSRV in Cargo.toml by <a href="https://github.com/KodrAus"><code>@KodrAus</code></a> in <a href="https://redirect.github.com/uuid-rs/uuid/pull/706">uuid-rs/uuid#706</a></li> <li>Support converting between Uuid and vec by <a href="https://github.com/KodrAus"><code>@KodrAus</code></a> in <a href="https://redirect.github.com/uuid-rs/uuid/pull/703">uuid-rs/uuid#703</a></li> <li>Replace MIPS with Miri and add clippy to CI by <a href="https://github.com/KodrAus"><code>@KodrAus</code></a> in <a href="https://redirect.github.com/uuid-rs/uuid/pull/712">uuid-rs/uuid#712</a></li> <li>Added <code>bytemuck</code> support by <a href="https://github.com/John-Toohey"><code>@John-Toohey</code></a> in <a href="https://redirect.github.com/uuid-rs/uuid/pull/711">uuid-rs/uuid#711</a></li> <li>Prepare for 1.5.0 release by <a href="https://github.com/KodrAus"><code>@KodrAus</code></a> in <a href="https://redirect.github.com/uuid-rs/uuid/pull/713">uuid-rs/uuid#713</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/brahms116"><code>@brahms116</code></a> made their first contribution in <a href="https://redirect.github.com/uuid-rs/uuid/pull/700">uuid-rs/uuid#700</a></li> <li><a href="https://github.com/fef1312"><code>@fef1312</code></a> made their first contribution in <a href="https://redirect.github.com/uuid-rs/uuid/pull/705">uuid-rs/uuid#705</a></li> <li><a href="https://github.com/John-Toohey"><code>@John-Toohey</code></a> made their first contribution in <a href="https://redirect.github.com/uuid-rs/uuid/pull/711">uuid-rs/uuid#711</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/uuid-rs/uuid/compare/1.4.1...1.5.0">https://github.com/uuid-rs/uuid/compare/1.4.1...1.5.0</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="e68b0108fa"><code>e68b010</code></a> Merge pull request <a href="https://redirect.github.com/uuid-rs/uuid/issues/713">#713</a> from uuid-rs/cargo/1.5.0</li> <li><a href="b1cc27a118"><code>b1cc27a</code></a> prepare for 1.5.0 release</li> <li><a href="b8ebdee9b0"><code>b8ebdee</code></a> Merge pull request <a href="https://redirect.github.com/uuid-rs/uuid/issues/711">#711</a> from John-Toohey/bytemuck</li> <li><a href="2dad70d3c7"><code>2dad70d</code></a> Added the <code>bytemuck</code> optional dependency to <code>lib.rs</code> documentation</li> <li><a href="bcf2b58997"><code>bcf2b58</code></a> Added Bytemuck to .github/workflows/ci.yml::env::DEP_FEATURES</li> <li><a href="a8d2e1d4bf"><code>a8d2e1d</code></a> Merge pull request <a href="https://redirect.github.com/uuid-rs/uuid/issues/712">#712</a> from uuid-rs/ci/miri-clippy</li> <li><a href="0c5b2dfebd"><code>0c5b2df</code></a> fix up a clippy warning</li> <li><a href="1d4bd6e5b2"><code>1d4bd6e</code></a> Merge pull request <a href="https://redirect.github.com/uuid-rs/uuid/issues/703">#703</a> from uuid-rs/feat/convert-to-vec</li> <li><a href="52b3fbc04a"><code>52b3fbc</code></a> replace MIPS with Miri and add clippy to CI</li> <li><a href="3833d095c1"><code>3833d09</code></a> Make the bytemuck dependency look more like the other dependencies</li> <li>Additional commits viewable in <a href="https://github.com/uuid-rs/uuid/compare/1.4.1...1.5.0">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 </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
relay
This crate houses a minimalistic STUN & TURN server.
Features
We aim to support the following feature set:
- STUN binding requests
- TURN allocate requests
- TURN refresh requests
- TURN channel bind requests
- TURN channel data requests
Relaying of data through other means such as DATA frames is not supported.
Building
You can build the server using: cargo build --release --bin relay
Running
For an up-to-date documentation on the available configurations options and a detailed help text, run cargo run --bin relay -- --help.
All command-line options can be overridden using environment variables.
Those variables are listed in the --help output at the bottom of each command.
The relay listens on port 3478.
This is the standard port for STUN/TURN and not configurable.
Additionally, the relay needs to have access to the port range 49152 - 65535 for the allocations.
Portal connection
When given a portal endpoint, the relay will connect to it and wait for an init message before commencing relay operations.
Design
The relay is designed in a sans-IO fashion, meaning the core components do not cause side effects but operate as pure, synchronous state machines. They take in data and emit commands: wake me at this point in time, send these bytes to this peer, etc.
This allows us to very easily unit-test all kinds of scenarios because all inputs are simple values.
The main server runs in a single task and spawns one additional task for each allocation. Incoming data that needs to be relayed is forwarded to the main task where it gets authenticated and relayed on success.