Skip to content

Commit 9ee4ee3

Browse files
committed
chore: update iroh from 0.33.0 to 0.34.0
1 parent df24532 commit 9ee4ee3

File tree

5 files changed

+79
-34
lines changed

5 files changed

+79
-34
lines changed

Cargo.lock

+69-28
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ humansize = "2"
6262
hyper = "1"
6363
hyper-util = "0.1.10"
6464
image = { version = "0.25.5", default-features=false, features = ["gif", "jpeg", "ico", "png", "pnm", "webp", "bmp"] }
65-
iroh-gossip = { version = "0.33", default-features = false, features = ["net"] }
66-
iroh = { version = "0.33", default-features = false }
65+
iroh-gossip = { version = "0.34", default-features = false, features = ["net"] }
66+
iroh = { version = "0.34", default-features = false }
6767
kamadak-exif = "0.6.1"
6868
libc = { workspace = true }
6969
mail-builder = { version = "0.4.2", default-features = false }

deny.toml

+1-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ ignore = [
1010
# Unmaintained instant
1111
"RUSTSEC-2024-0384",
1212

13-
# Unmaintained backoff
14-
"RUSTSEC-2025-0012",
15-
1613
# Unmaintained paste
1714
"RUSTSEC-2024-0436",
1815
]
@@ -35,6 +32,7 @@ skip = [
3532
{ name = "http", version = "0.2.12" },
3633
{ name = "loom", version = "0.5.6" },
3734
{ name = "netlink-packet-route", version = "0.17.1" },
35+
{ name = "netwatch", version = "0.3.0" },
3836
{ name = "nix", version = "0.26.4" },
3937
{ name = "nix", version = "0.27.1" },
4038
{ name = "rand_chacha", version = "0.3.1" },

src/imex/transfer.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ impl BackupProvider {
9595
pub async fn prepare(context: &Context) -> Result<Self> {
9696
let relay_mode = RelayMode::Disabled;
9797
let endpoint = Endpoint::builder()
98+
.tls_x509() // For compatibility with iroh <0.34.0
9899
.alpns(vec![BACKUP_ALPN.to_vec()])
99100
.relay_mode(relay_mode)
100101
.bind()
@@ -301,7 +302,11 @@ pub async fn get_backup2(
301302
) -> Result<()> {
302303
let relay_mode = RelayMode::Disabled;
303304

304-
let endpoint = Endpoint::builder().relay_mode(relay_mode).bind().await?;
305+
let endpoint = Endpoint::builder()
306+
.tls_x509() // For compatibility with iroh <0.34.0
307+
.relay_mode(relay_mode)
308+
.bind()
309+
.await?;
305310

306311
let conn = endpoint.connect(node_addr, BACKUP_ALPN).await?;
307312
let (mut send_stream, mut recv_stream) = conn.open_bi().await?;

src/peer_channels.rs

+1
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ impl Context {
253253
};
254254

255255
let endpoint = Endpoint::builder()
256+
.tls_x509() // For compatibility with iroh <0.34.0
256257
.secret_key(secret_key)
257258
.alpns(vec![GOSSIP_ALPN.to_vec()])
258259
.relay_mode(relay_mode)

0 commit comments

Comments
 (0)