Files
firezone/rust/Cargo.toml
dependabot[bot] fc165f9a61 build(deps): Bump swift-bridge from 0.1.53 to 0.1.55 in /rust (#4862)
Bumps [swift-bridge](https://github.com/chinedufn/swift-bridge) from
0.1.53 to 0.1.55.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/chinedufn/swift-bridge/releases">swift-bridge's
releases</a>.</em></p>
<blockquote>
<h2>0.1.55</h2>
<ul>
<li>Fix memory leak when passing <code>Option&lt;SwiftType&gt;</code>
from Swift to Rust. <a
href="https://redirect.github.com/chinedufn/swift-bridge/issues/273">#273</a>
<ul>
<li>It is very unlikely that users were impacted by this leak
<code>Option&lt;SwiftType&gt;</code> support was introduced about 10
hours ago</li>
<li>Full explanation of the leak can be found in
87dbea3c28d4a96d9195bd3a70fdecfd85fd8f5c</li>
</ul>
<pre lang="rust"><code>#[swift_bridge::bridge]
mod ffi {
    extern &quot;Swift&quot; {
        type SomeSwiftType;
    }
<pre><code>extern &amp;quot;Rust&amp;quot; {
    // Calling with would leak memory in &amp;quot;0.1.54&amp;quot;.
    // This no longer leaks as of &amp;quot;0.1.55&amp;quot;.
    fn option_arg(arg: Option&amp;lt;SomeSwiftType&amp;gt;);
}
</code></pre>
<p>}
</code></pre></p>
</li>
</ul>
<p><a
href="https://redirect.github.com/chinedufn/swift-bridge/issues/273">#273</a>:
<a
href="https://redirect.github.com/chinedufn/swift-bridge/pull/273">chinedufn/swift-bridge#273</a></p>
<h2>0.1.54</h2>
<ul>
<li>Add support for bridging <code>Option&lt;SwiftType&gt;</code> in
Rust function arguments and returns. <a
href="https://redirect.github.com/chinedufn/swift-bridge/issues/272">#272</a>
(thanks <a
href="https://github.com/Bright-Shard"><code>@​Bright-Shard</code></a>)
<pre lang="rust"><code>#[swift_bridge::bridge]
mod ffi {
    extern &quot;Swift&quot; {
        type SomeSwiftType;
    }
<pre><code>extern &amp;quot;Rust&amp;quot; {
    fn option_arg(arg: Option&amp;lt;SomeSwiftType&amp;gt;);
    fn returns_option() -&amp;gt; Option&amp;lt;SomeSwiftType&amp;gt;;
}
</code></pre>
<p>}
</code></pre></p>
</li>
</ul>
<p><a
href="https://redirect.github.com/chinedufn/swift-bridge/issues/272">#272</a>:
<a
href="https://redirect.github.com/chinedufn/swift-bridge/pull/272">chinedufn/swift-bridge#272</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="87dbea3c28"><code>87dbea3</code></a>
Fix memory leak for <code>Option\&lt;SwiftType&gt;</code> (<a
href="https://redirect.github.com/chinedufn/swift-bridge/issues/273">#273</a>)</li>
<li><a
href="b4ba1a72a6"><code>b4ba1a7</code></a>
Use explicit pointer casting</li>
<li><a
href="9d02d8f4e8"><code>9d02d8f</code></a>
0.1.54</li>
<li><a
href="636fa27748"><code>636fa27</code></a>
Support Option&lt;OpaqueSwiftType&gt; (<a
href="https://redirect.github.com/chinedufn/swift-bridge/issues/272">#272</a>)</li>
<li><a
href="c3c950c908"><code>c3c950c</code></a>
Inline example code in book</li>
<li><a
href="75a1077f16"><code>75a1077</code></a>
Improve signature support docs (<a
href="https://redirect.github.com/chinedufn/swift-bridge/issues/267">#267</a>)</li>
<li><a
href="7fc3d3ccca"><code>7fc3d3c</code></a>
Document the ToRustStr protocol (<a
href="https://redirect.github.com/chinedufn/swift-bridge/issues/266">#266</a>)</li>
<li>See full diff in <a
href="https://github.com/chinedufn/swift-bridge/compare/0.1.53...0.1.55">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=swift-bridge&package-manager=cargo&previous-version=0.1.53&new-version=0.1.55)](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-01 14:40:29 +00:00

95 lines
3.2 KiB
TOML

[workspace]
members = [
"connlib/clients/android",
"connlib/clients/apple",
"connlib/clients/shared",
"connlib/shared",
"connlib/tunnel",
"connlib/snownet",
"gateway",
"firezone-cli-utils",
"headless-client",
"linux-client",
"snownet-tests",
"phoenix-channel",
"relay",
"gui-client/src-tauri",
"http-health-check",
"http-test-server",
"ip-packet",
]
resolver = "2"
[workspace.dependencies]
boringtun = { version = "0.6", default-features = false }
chrono = { version = "0.4", default-features = false, features = ["std", "clock", "oldtime", "serde"] }
swift-bridge = "0.1.55"
backoff = { version = "0.4", features = ["tokio"] }
tracing = { version = "0.1.40" }
tracing-subscriber = { version = "0.3.17", features = ["parking_lot"] }
secrecy = "0.8"
hickory-resolver = { git = "https://github.com/hickory-dns/hickory-dns", rev="a3669bd80f3f7b97f0c301c15f1cba6368d97b63", features = ["tokio-runtime"] }
str0m = { version = "0.5", default-features = false }
futures-bounded = "0.2.1"
domain = { version = "0.9", features = ["serde"] }
dns-lookup = "2.0"
tokio-tungstenite = "0.21"
rtnetlink = { version = "0.14.1", default-features = false, features = ["tokio_socket"] }
connlib-client-android = { path = "connlib/clients/android"}
connlib-client-apple = { path = "connlib/clients/apple"}
connlib-client-shared = { path = "connlib/clients/shared"}
firezone-gateway = { path = "gateway"}
firezone-headless-client = { path = "headless-client"}
firezone-gui-client = { path = "gui-client/src-tauri"}
firezone-cli-utils = { path = "firezone-cli-utils"}
snownet = { path = "connlib/snownet"}
firezone-relay = { path = "relay"}
connlib-shared = { path = "connlib/shared"}
firezone-tunnel = { path = "connlib/tunnel"}
phoenix-channel = { path = "phoenix-channel"}
http-health-check = { path = "http-health-check"}
ip-packet = { path = "ip-packet"}
[workspace.lints]
clippy.dbg_macro = "warn"
clippy.print_stdout = "warn"
clippy.print_stderr = "warn"
clippy.unnecessary_wraps = "warn"
clippy.unused_async = "warn"
clippy.wildcard_enum_match_arm = "warn" # Ensures we match on all combinations of `Poll`, preventing erroneous suspensions.
clippy.redundant_else = "warn"
clippy.redundant_clone = "warn"
[patch.crates-io]
boringtun = { git = "https://github.com/cloudflare/boringtun", branch = "master" }
str0m = { git = "https://github.com/firezone/str0m", branch = "main" }
ip_network_table = { git = "https://github.com/edmonds/ip_network_table", branch = "some-useful-traits" } # For `Debug` and `Clone`
[profile.release]
strip = true
# Full link-time optimization. Reduces binaries by up to 3x on some platforms.
lto = "fat"
# Increases the compiler's ability to produce smaller, optimized code
# at the expense of compilation time
codegen-units = 1
# Override build settings just for the GUI client, so we get a pdb/dwp
# Cargo ignores profile settings if they're not in the workspace's Cargo.toml
[profile.dev.package.firezone-gui-client]
debug = "full"
split-debuginfo = "packed"
strip = "none"
[profile.release.package.firezone-gui-client]
debug = "full"
split-debuginfo = "packed"
strip = "none"
# Override build settings for the relay, so we can capture flamegraphs
[profile.release.package.firezone-relay]
debug = "full"