chore(cargo): update iroh to 0.28.1

This commit is contained in:
link2xt
2024-11-04 19:19:35 +00:00
committed by l
parent a510d5f3c2
commit 97d2119028
3 changed files with 252 additions and 78 deletions

319
Cargo.lock generated
View File

@@ -384,6 +384,12 @@ dependencies = [
"tokio-util", "tokio-util",
] ]
[[package]]
name = "atomic-waker"
version = "1.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0"
[[package]] [[package]]
name = "attohttpc" name = "attohttpc"
version = "0.24.1" version = "0.24.1"
@@ -413,9 +419,9 @@ dependencies = [
"bytes", "bytes",
"futures-util", "futures-util",
"http 1.1.0", "http 1.1.0",
"http-body 1.0.0", "http-body",
"http-body-util", "http-body-util",
"hyper 1.5.0", "hyper",
"hyper-util", "hyper-util",
"itoa", "itoa",
"matchit", "matchit",
@@ -448,7 +454,7 @@ dependencies = [
"bytes", "bytes",
"futures-util", "futures-util",
"http 1.1.0", "http 1.1.0",
"http-body 1.0.0", "http-body",
"http-body-util", "http-body-util",
"mime", "mime",
"pin-project-lite", "pin-project-lite",
@@ -1332,7 +1338,7 @@ dependencies = [
"hickory-resolver", "hickory-resolver",
"http-body-util", "http-body-util",
"humansize", "humansize",
"hyper 1.5.0", "hyper",
"hyper-util", "hyper-util",
"image", "image",
"iroh-gossip", "iroh-gossip",
@@ -2361,6 +2367,37 @@ dependencies = [
"slab", "slab",
] ]
[[package]]
name = "genawaiter"
version = "0.99.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c86bd0361bcbde39b13475e6e36cb24c329964aa2611be285289d1e4b751c1a0"
dependencies = [
"futures-core",
"genawaiter-macro",
"genawaiter-proc-macro",
"proc-macro-hack",
]
[[package]]
name = "genawaiter-macro"
version = "0.99.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0b32dfe1fdfc0bbde1f22a5da25355514b5e450c33a6af6770884c8750aedfbc"
[[package]]
name = "genawaiter-proc-macro"
version = "0.99.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "784f84eebc366e15251c4a8c3acee82a6a6f427949776ecb88377362a9621738"
dependencies = [
"proc-macro-error",
"proc-macro-hack",
"proc-macro2",
"quote",
"syn 1.0.109",
]
[[package]] [[package]]
name = "generator" name = "generator"
version = "0.7.5" version = "0.7.5"
@@ -2474,16 +2511,16 @@ dependencies = [
[[package]] [[package]]
name = "h2" name = "h2"
version = "0.3.26" version = "0.4.6"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "81fe527a889e1532da5c525686d96d4c2e74cdd345badf8dfef9f6b39dd5f5e8" checksum = "524e8ac6999421f49a846c2d4411f337e53497d8ec55d67753beffa43c5d9205"
dependencies = [ dependencies = [
"atomic-waker",
"bytes", "bytes",
"fnv", "fnv",
"futures-core", "futures-core",
"futures-sink", "futures-sink",
"futures-util", "http 1.1.0",
"http 0.2.12",
"indexmap", "indexmap",
"slab", "slab",
"tokio", "tokio",
@@ -2666,17 +2703,6 @@ dependencies = [
"itoa", "itoa",
] ]
[[package]]
name = "http-body"
version = "0.4.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7ceab25649e9960c0311ea418d17bee82c0dcec1bd053b5f9a66e265a693bed2"
dependencies = [
"bytes",
"http 0.2.12",
"pin-project-lite",
]
[[package]] [[package]]
name = "http-body" name = "http-body"
version = "1.0.0" version = "1.0.0"
@@ -2696,7 +2722,7 @@ dependencies = [
"bytes", "bytes",
"futures-util", "futures-util",
"http 1.1.0", "http 1.1.0",
"http-body 1.0.0", "http-body",
"pin-project-lite", "pin-project-lite",
] ]
@@ -2741,30 +2767,6 @@ version = "2.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4"
[[package]]
name = "hyper"
version = "0.14.28"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bf96e135eb83a2a8ddf766e426a841d8ddd7449d5f00d34ea02b41d2f19eef80"
dependencies = [
"bytes",
"futures-channel",
"futures-core",
"futures-util",
"h2",
"http 0.2.12",
"http-body 0.4.6",
"httparse",
"httpdate",
"itoa",
"pin-project-lite",
"socket2",
"tokio",
"tower-service",
"tracing",
"want",
]
[[package]] [[package]]
name = "hyper" name = "hyper"
version = "1.5.0" version = "1.5.0"
@@ -2774,8 +2776,9 @@ dependencies = [
"bytes", "bytes",
"futures-channel", "futures-channel",
"futures-util", "futures-util",
"h2",
"http 1.1.0", "http 1.1.0",
"http-body 1.0.0", "http-body",
"httparse", "httparse",
"httpdate", "httpdate",
"itoa", "itoa",
@@ -2793,7 +2796,7 @@ checksum = "5ee4be2c948921a1a5320b629c4193916ed787a7f7f293fd3f7f5a6c9de74155"
dependencies = [ dependencies = [
"futures-util", "futures-util",
"http 1.1.0", "http 1.1.0",
"hyper 1.5.0", "hyper",
"hyper-util", "hyper-util",
"rustls", "rustls",
"rustls-pki-types", "rustls-pki-types",
@@ -2813,8 +2816,8 @@ dependencies = [
"futures-channel", "futures-channel",
"futures-util", "futures-util",
"http 1.1.0", "http 1.1.0",
"http-body 1.0.0", "http-body",
"hyper 1.5.0", "hyper",
"pin-project-lite", "pin-project-lite",
"socket2", "socket2",
"tokio", "tokio",
@@ -2872,16 +2875,18 @@ dependencies = [
[[package]] [[package]]
name = "igd-next" name = "igd-next"
version = "0.14.3" version = "0.15.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "064d90fec10d541084e7b39ead8875a5a80d9114a2b18791565253bae25f49e4" checksum = "76b0d7d4541def58a37bf8efc559683f21edce7c82f0d866c93ac21f7e098f93"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"attohttpc", "attohttpc",
"bytes", "bytes",
"futures", "futures",
"http 0.2.12", "http 1.1.0",
"hyper 0.14.28", "http-body-util",
"hyper",
"hyper-util",
"log", "log",
"rand 0.8.5", "rand 0.8.5",
"tokio", "tokio",
@@ -2973,9 +2978,9 @@ checksum = "8f518f335dce6725a761382244631d86cf0ccb2863413590b31338feb467f9c3"
[[package]] [[package]]
name = "iroh-base" name = "iroh-base"
version = "0.26.0" version = "0.28.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "973c0b3c7851fa2e8e6cf4cb81c9f4cab1373848828fafa43dfe25b123a89ff2" checksum = "1c21fd8eb71f166a172a9779c2244db992218e9a9bd929b9df6fc355d2b630c9"
dependencies = [ dependencies = [
"aead", "aead",
"anyhow", "anyhow",
@@ -2991,7 +2996,6 @@ dependencies = [
"rand 0.8.5", "rand 0.8.5",
"rand_core 0.6.4", "rand_core 0.6.4",
"serde", "serde",
"serde-error",
"ssh-key", "ssh-key",
"thiserror", "thiserror",
"ttl_cache", "ttl_cache",
@@ -3014,9 +3018,9 @@ dependencies = [
[[package]] [[package]]
name = "iroh-gossip" name = "iroh-gossip"
version = "0.26.0" version = "0.28.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b44749f361aca7cddcb357b62ef84cad1023771aee03d427c8922991fc4a9561" checksum = "c078057037f0e741c5ef285c67fd9cfdb928163dd046fb547089898bdb02990e"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"async-channel 2.3.1", "async-channel 2.3.1",
@@ -3031,10 +3035,12 @@ dependencies = [
"iroh-blake3", "iroh-blake3",
"iroh-metrics", "iroh-metrics",
"iroh-net", "iroh-net",
"iroh-router",
"postcard", "postcard",
"rand 0.8.5", "rand 0.8.5",
"rand_core 0.6.4", "rand_core 0.6.4",
"serde", "serde",
"serde-error",
"tokio", "tokio",
"tokio-util", "tokio-util",
"tracing", "tracing",
@@ -3042,14 +3048,14 @@ dependencies = [
[[package]] [[package]]
name = "iroh-metrics" name = "iroh-metrics"
version = "0.26.0" version = "0.28.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "02edfa7ca1aa89b0b9793d94671e32b79c97d61e9022f082c5eb2b95b64e90c0" checksum = "e0d40f2ee3997489d47403d204a06514ed65373d224b5b43a8ea133f543e5db1"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"erased_set", "erased_set",
"http-body-util", "http-body-util",
"hyper 1.5.0", "hyper",
"hyper-util", "hyper-util",
"once_cell", "once_cell",
"prometheus-client", "prometheus-client",
@@ -3063,9 +3069,9 @@ dependencies = [
[[package]] [[package]]
name = "iroh-net" name = "iroh-net"
version = "0.26.0" version = "0.28.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "329553be056a92eec7802e1c087eed951eec6e60f0f0740491ef16a295be4ca2" checksum = "b40e1f1f9029e198c6d05bd232d3239814b0a66ac4668978729b709aeb6a44e2"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"backoff", "backoff",
@@ -3079,6 +3085,7 @@ dependencies = [
"futures-lite 2.4.0", "futures-lite 2.4.0",
"futures-sink", "futures-sink",
"futures-util", "futures-util",
"genawaiter",
"governor", "governor",
"hex", "hex",
"hickory-proto", "hickory-proto",
@@ -3086,7 +3093,7 @@ dependencies = [
"hostname", "hostname",
"http 1.1.0", "http 1.1.0",
"http-body-util", "http-body-util",
"hyper 1.5.0", "hyper",
"hyper-util", "hyper-util",
"igd-next", "igd-next",
"iroh-base", "iroh-base",
@@ -3099,11 +3106,13 @@ dependencies = [
"netlink-packet-core", "netlink-packet-core",
"netlink-packet-route", "netlink-packet-route",
"netlink-sys", "netlink-sys",
"netwatch",
"num_enum", "num_enum",
"once_cell", "once_cell",
"parking_lot", "parking_lot",
"pin-project", "pin-project",
"pkarr", "pkarr",
"portmapper",
"postcard", "postcard",
"rand 0.8.5", "rand 0.8.5",
"rcgen", "rcgen",
@@ -3139,9 +3148,9 @@ dependencies = [
[[package]] [[package]]
name = "iroh-quinn" name = "iroh-quinn"
version = "0.11.3" version = "0.12.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4fd590a39a14cfc168efa4d894de5039d65641e62d8da4a80733018ababe3c33" checksum = "35ba75a5c57cff299d2d7ca1ddee053f66339d1756bd79ec637bcad5aa61100e"
dependencies = [ dependencies = [
"bytes", "bytes",
"iroh-quinn-proto", "iroh-quinn-proto",
@@ -3157,9 +3166,9 @@ dependencies = [
[[package]] [[package]]
name = "iroh-quinn-proto" name = "iroh-quinn-proto"
version = "0.11.6" version = "0.12.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5fd0538ff12efe3d61ea1deda2d7913f4270873a519d43e6995c6e87a1558538" checksum = "e2c869ba52683d3d067c83ab4c00a2fda18eaf13b1434d4c1352f428674d4a5d"
dependencies = [ dependencies = [
"bytes", "bytes",
"rand 0.8.5", "rand 0.8.5",
@@ -3175,9 +3184,9 @@ dependencies = [
[[package]] [[package]]
name = "iroh-quinn-udp" name = "iroh-quinn-udp"
version = "0.5.4" version = "0.5.5"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d0619b59471fdd393ac8a6c047f640171119c1c8b41f7d2927db91776dcdbc5f" checksum = "bfcfc0abc2fdf8cf18a6c72893b7cbebeac2274a3b1306c1760c48c0e10ac5e0"
dependencies = [ dependencies = [
"libc", "libc",
"once_cell", "once_cell",
@@ -3186,6 +3195,22 @@ dependencies = [
"windows-sys 0.59.0", "windows-sys 0.59.0",
] ]
[[package]]
name = "iroh-router"
version = "0.28.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c1fd18ec6325dd3f01625f12c01acff50a4374ee1ab708e7b2078885fd63ad30"
dependencies = [
"anyhow",
"futures-buffered",
"futures-lite 2.4.0",
"futures-util",
"iroh-net",
"tokio",
"tokio-util",
"tracing",
]
[[package]] [[package]]
name = "is-terminal" name = "is-terminal"
version = "0.4.12" version = "0.4.12"
@@ -3426,6 +3451,26 @@ dependencies = [
"quoted_printable", "quoted_printable",
] ]
[[package]]
name = "mainline"
version = "2.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2b751ffb57303217bcae8f490eee6044a5b40eadf6ca05ff476cad37e7b7970d"
dependencies = [
"bytes",
"crc",
"ed25519-dalek",
"flume",
"lru",
"rand 0.8.5",
"serde",
"serde_bencode",
"serde_bytes",
"sha1_smol",
"thiserror",
"tracing",
]
[[package]] [[package]]
name = "match_cfg" name = "match_cfg"
version = "0.1.0" version = "0.1.0"
@@ -3624,6 +3669,35 @@ dependencies = [
"tokio", "tokio",
] ]
[[package]]
name = "netwatch"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4a639d52c0996ac640e2a7052a5265c8f71efdbdadc83188435ffc358b7ca931"
dependencies = [
"anyhow",
"bytes",
"derive_more",
"futures-lite 2.4.0",
"futures-sink",
"futures-util",
"libc",
"netdev",
"netlink-packet-core",
"netlink-packet-route",
"netlink-sys",
"once_cell",
"rtnetlink",
"serde",
"socket2",
"thiserror",
"time 0.3.36",
"tokio",
"tracing",
"windows 0.51.1",
"wmi",
]
[[package]] [[package]]
name = "nibble_vec" name = "nibble_vec"
version = "0.1.0" version = "0.1.0"
@@ -4202,11 +4276,13 @@ checksum = "89f9e12544b00f5561253bbd3cb72a85ff3bc398483dc1bf82bdf095c774136b"
dependencies = [ dependencies = [
"bytes", "bytes",
"document-features", "document-features",
"dyn-clone",
"ed25519-dalek", "ed25519-dalek",
"flume", "flume",
"futures", "futures",
"js-sys", "js-sys",
"lru", "lru",
"mainline",
"self_cell", "self_cell",
"simple-dns", "simple-dns",
"thiserror", "thiserror",
@@ -4357,6 +4433,35 @@ version = "1.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7170ef9988bc169ba16dd36a7fa041e5c4cbeb6a35b76d4c03daded371eae7c0" checksum = "7170ef9988bc169ba16dd36a7fa041e5c4cbeb6a35b76d4c03daded371eae7c0"
[[package]]
name = "portmapper"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "93d60045fdcfe8ff6b781cf1027fdbb08ed319d93aff7da4bedc018e3bc92226"
dependencies = [
"anyhow",
"base64 0.22.1",
"bytes",
"derive_more",
"futures-lite 2.4.0",
"futures-util",
"igd-next",
"iroh-metrics",
"libc",
"netwatch",
"num_enum",
"rand 0.8.5",
"serde",
"smallvec",
"socket2",
"thiserror",
"time 0.3.36",
"tokio",
"tokio-util",
"tracing",
"url",
]
[[package]] [[package]]
name = "postcard" name = "postcard"
version = "1.0.8" version = "1.0.8"
@@ -4455,6 +4560,32 @@ dependencies = [
"toml_edit", "toml_edit",
] ]
[[package]]
name = "proc-macro-error"
version = "0.4.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "18f33027081eba0a6d8aba6d1b1c3a3be58cbb12106341c2d5759fcd9b5277e7"
dependencies = [
"proc-macro-error-attr",
"proc-macro2",
"quote",
"syn 1.0.109",
"version_check",
]
[[package]]
name = "proc-macro-error-attr"
version = "0.4.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8a5b4b77fdb63c1eca72173d68d24501c54ab1269409f6b672c85deb18af69de"
dependencies = [
"proc-macro2",
"quote",
"syn 1.0.109",
"syn-mid",
"version_check",
]
[[package]] [[package]]
name = "proc-macro-error-attr2" name = "proc-macro-error-attr2"
version = "2.0.0" version = "2.0.0"
@@ -4477,6 +4608,12 @@ dependencies = [
"syn 2.0.86", "syn 2.0.86",
] ]
[[package]]
name = "proc-macro-hack"
version = "0.5.20+deprecated"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dc375e1527247fe1a97d8b7156678dfe7c1af2fc075c9a4db3690ecd2a148068"
[[package]] [[package]]
name = "proc-macro2" name = "proc-macro2"
version = "1.0.86" version = "1.0.86"
@@ -4886,9 +5023,9 @@ dependencies = [
"futures-core", "futures-core",
"futures-util", "futures-util",
"http 1.1.0", "http 1.1.0",
"http-body 1.0.0", "http-body",
"http-body-util", "http-body-util",
"hyper 1.5.0", "hyper",
"hyper-rustls", "hyper-rustls",
"hyper-util", "hyper-util",
"ipnet", "ipnet",
@@ -5351,9 +5488,28 @@ dependencies = [
[[package]] [[package]]
name = "serde-error" name = "serde-error"
version = "0.1.2" version = "0.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e988182713aeed6a619a88bca186f6d6407483485ffe44c869ee264f8eabd13f" checksum = "342110fb7a5d801060c885da03bf91bfa7c7ca936deafcc64bb6706375605d47"
dependencies = [
"serde",
]
[[package]]
name = "serde_bencode"
version = "0.2.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a70dfc7b7438b99896e7f8992363ab8e2c4ba26aa5ec675d32d1c3c2c33d413e"
dependencies = [
"serde",
"serde_bytes",
]
[[package]]
name = "serde_bytes"
version = "0.11.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "387cc504cb06bb40a96c8e04e951fe01854cf6bc921053c954e4a606d9675c6a"
dependencies = [ dependencies = [
"serde", "serde",
] ]
@@ -5465,6 +5621,12 @@ dependencies = [
"sha1", "sha1",
] ]
[[package]]
name = "sha1_smol"
version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bbfa15b3dddfee50a0fff136974b3e1bde555604ba463834a7eb7deb6417705d"
[[package]] [[package]]
name = "sha2" name = "sha2"
version = "0.10.8" version = "0.10.8"
@@ -5837,6 +5999,17 @@ dependencies = [
"unicode-ident", "unicode-ident",
] ]
[[package]]
name = "syn-mid"
version = "0.5.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fea305d57546cc8cd04feb14b62ec84bf17f50e3f7b12560d7bfa9265f39d9ed"
dependencies = [
"proc-macro2",
"quote",
"syn 1.0.109",
]
[[package]] [[package]]
name = "sync_wrapper" name = "sync_wrapper"
version = "0.1.2" version = "0.1.2"

View File

@@ -63,8 +63,8 @@ humansize = "2"
hyper = "1" hyper = "1"
hyper-util = "0.1.10" hyper-util = "0.1.10"
image = { version = "0.25.4", default-features=false, features = ["gif", "jpeg", "ico", "png", "pnm", "webp", "bmp"] } image = { version = "0.25.4", default-features=false, features = ["gif", "jpeg", "ico", "png", "pnm", "webp", "bmp"] }
iroh-gossip = { version = "0.26.0", default-features = false, features = ["net"] } iroh-gossip = { version = "0.28.1", default-features = false, features = ["net"] }
iroh-net = { version = "0.26.0", default-features = false } iroh-net = { version = "0.28.1", default-features = false }
kamadak-exif = "0.6.0" kamadak-exif = "0.6.0"
lettre_email = { git = "https://github.com/deltachat/lettre", branch = "master" } lettre_email = { git = "https://github.com/deltachat/lettre", branch = "master" }
libc = { workspace = true } libc = { workspace = true }

View File

@@ -11,6 +11,10 @@ ignore = [
# Unmaintained encoding # Unmaintained encoding
"RUSTSEC-2021-0153", "RUSTSEC-2021-0153",
# Unmaintained proc-macro-error
# <https://rustsec.org/advisories/RUSTSEC-2024-0370>
"RUSTSEC-2024-0370",
] ]
[bans] [bans]
@@ -28,10 +32,7 @@ skip = [
{ name = "fastrand", version = "1.9.0" }, { name = "fastrand", version = "1.9.0" },
{ name = "futures-lite", version = "1.13.0" }, { name = "futures-lite", version = "1.13.0" },
{ name = "getrandom", version = "<0.2" }, { name = "getrandom", version = "<0.2" },
{ name = "h2", version = "0.3.26" },
{ name = "http-body", version = "0.4.6" },
{ name = "http", version = "0.2.12" }, { name = "http", version = "0.2.12" },
{ name = "hyper", version = "0.14.28" },
{ name = "nix", version = "0.26.4" }, { name = "nix", version = "0.26.4" },
{ name = "quick-error", version = "<2.0" }, { name = "quick-error", version = "<2.0" },
{ name = "rand_chacha", version = "<0.3" }, { name = "rand_chacha", version = "<0.3" },