diff --git a/Cargo.lock b/Cargo.lock index 6b1d34cc..a96ab367 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -18,9 +18,9 @@ dependencies = [ [[package]] name = "addr2line" -version = "0.24.1" +version = "0.24.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f5fb1d8e4442bd405fdfd1dacb42792696b0cf9cb15882e5d097b742a676d375" +checksum = "dfbe277e56a376000877090da837660b4427aad530e3028d44e0bffe4f89a1c1" dependencies = [ "gimli", ] @@ -86,9 +86,9 @@ dependencies = [ [[package]] name = "anstream" -version = "0.6.15" +version = "0.6.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "64e15c1ab1f89faffbf04a634d5e1962e9074f2741eef6d97f3c4e322426d526" +checksum = "8acc5369981196006228e28809f761875c0327210a891e941f4c683b3a99529b" dependencies = [ "anstyle", "anstyle-parse", @@ -101,43 +101,43 @@ dependencies = [ [[package]] name = "anstyle" -version = "1.0.8" +version = "1.0.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1bec1de6f59aedf83baf9ff929c98f2ad654b97c9510f4e70cf6f661d49fd5b1" +checksum = "55cc3b69f167a1ef2e161439aa98aed94e6028e5f9a59be9a6ffb47aef1651f9" [[package]] name = "anstyle-parse" -version = "0.2.5" +version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb47de1e80c2b463c735db5b217a0ddc39d612e7ac9e2e96a5aed1f57616c1cb" +checksum = "3b2d16507662817a6a20a9ea92df6652ee4f94f914589377d69f3b21bc5798a9" dependencies = [ "utf8parse", ] [[package]] name = "anstyle-query" -version = "1.1.1" +version = "1.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d36fc52c7f6c869915e99412912f22093507da8d9e942ceaf66fe4b7c14422a" +checksum = "79947af37f4177cfead1110013d678905c37501914fba0efea834c3fe9a8d60c" dependencies = [ - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] name = "anstyle-wincon" -version = "3.0.4" +version = "3.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5bf74e1b6e971609db8ca7a9ce79fd5768ab6ae46441c572e46cf596f59e57f8" +checksum = "2109dbce0e72be3ec00bed26e6a7479ca384ad226efdd66db8fa2e3a38c83125" dependencies = [ "anstyle", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] name = "anyhow" -version = "1.0.89" +version = "1.0.92" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86fdf8605db99b54d3cd748a44c6d04df638eb5dafb219b135d0149bd0db01f6" +checksum = "74f37166d7d48a0284b99dd824694c26119c700b53bf0d1540cdb147dbdaaf13" [[package]] name = "arrayref" @@ -174,7 +174,7 @@ dependencies = [ "proc-macro2", "quote", "serde", - "syn 2.0.79", + "syn 2.0.87", ] [[package]] @@ -216,7 +216,7 @@ checksum = "965c2d33e53cb6b267e148a4cb0760bc01f4904c1cd4bb4002a085bb016d1490" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.87", "synstructure", ] @@ -228,7 +228,7 @@ checksum = "7b18050c2cd6fe86c3a76584ef5e0baf286d038cda203eb6223df2cc413565f7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.87", ] [[package]] @@ -264,7 +264,7 @@ checksum = "3b43422f69d8ff38f95f1b2bb76517c91589a924d1559a0e935d7c8ce0274c11" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.87", ] [[package]] @@ -275,7 +275,7 @@ checksum = "721cae7de5c34fbb2acd27e21e6d2cf7b886dce0c27388d46c4e6c47ea4318dd" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.87", ] [[package]] @@ -334,7 +334,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f1f7a89a8ee5889d2593ae422ce6e1bb03e48a0e8a16e4fa0882dfcbe7e182ef" dependencies = [ "bytes", - "futures-lite 2.3.0", + "futures-lite 2.4.0", "genawaiter", "iroh-blake3", "iroh-io", @@ -398,18 +398,6 @@ version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" -[[package]] -name = "bitvec" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1bc2832c24239b0141d5674bb9174f9d68a8b5b3f2753311927c172ca46f7e9c" -dependencies = [ - "funty", - "radium", - "tap", - "wyz", -] - [[package]] name = "blake3" version = "1.5.4" @@ -452,9 +440,9 @@ checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" [[package]] name = "bytes" -version = "1.7.2" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "428d9aa8fbc0670b7b8d6030a7fadd0f86151cae55e4dbbece15f3780a3dfaf3" +checksum = "9ac0150caa2ae65ca5bd83f25c7de183dea78d4d366469f148435e2acfbad0da" dependencies = [ "serde", ] @@ -493,9 +481,9 @@ dependencies = [ [[package]] name = "cc" -version = "1.1.23" +version = "1.1.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3bbb537bb4a30b90362caddba8f360c0a56bc13d3a5570028e7197204cb54a17" +checksum = "67b9470d453346108f93a59222a9a1a5724db32d0a4727b7ab7ace4b4d822dc9" dependencies = [ "shlex", ] @@ -512,6 +500,12 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" +[[package]] +name = "cfg_aliases" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" + [[package]] name = "chacha20" version = "0.9.1" @@ -551,9 +545,9 @@ dependencies = [ [[package]] name = "clap" -version = "4.5.18" +version = "4.5.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0956a43b323ac1afaffc053ed5c4b7c1f1800bacd1683c353aabbb752515dd3" +checksum = "b97f376d85a664d5837dbae44bf546e6477a679ff6610010f17276f686d867e8" dependencies = [ "clap_builder", "clap_derive", @@ -561,9 +555,9 @@ dependencies = [ [[package]] name = "clap_builder" -version = "4.5.18" +version = "4.5.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d72166dd41634086d5803a47eb71ae740e61d84709c36f3c34110173db3961b" +checksum = "19bc80abd44e4bed93ca373a0704ccbd1b710dc5749406201bb018272808dc54" dependencies = [ "anstream", "anstyle", @@ -580,7 +574,7 @@ dependencies = [ "heck 0.5.0", "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.87", ] [[package]] @@ -597,9 +591,9 @@ checksum = "67ba02a97a2bd10f4b59b25c7973101c79642302776489e030cd13cdab09ed15" [[package]] name = "colorchoice" -version = "1.0.2" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3fd119d74b830634cea2a0f58bbd0d54540518a14397557951e79340abc28c0" +checksum = "5b63caa9aa9397e2d9480a9b13673856c78d8ac123288526c37d7839f2a86990" [[package]] name = "combine" @@ -641,6 +635,16 @@ dependencies = [ "unicode-segmentation", ] +[[package]] +name = "cordyceps" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec10f0a762d93c4498d2e97a333805cb6250d60bead623f71d8034f9a4152ba3" +dependencies = [ + "loom", + "tracing", +] + [[package]] name = "core-foundation" version = "0.9.4" @@ -749,7 +753,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "edb49164822f3ee45b17acd4a208cfc1251410cf0cad9a833234c9890774dd9f" dependencies = [ "quote", - "syn 2.0.79", + "syn 2.0.87", ] [[package]] @@ -776,7 +780,7 @@ checksum = "f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.87", ] [[package]] @@ -786,7 +790,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "978747c1d849a7d2ee5e8adc0159961c48fb7e5db2f06af6723b80123bb53856" dependencies = [ "cfg-if", - "hashbrown", + "hashbrown 0.14.5", "lock_api", "once_cell", "parking_lot_core", @@ -831,7 +835,7 @@ checksum = "8034092389675178f570469e6c3b0465d3d30b4505c294a6550db47f3c17ad18" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.87", ] [[package]] @@ -861,7 +865,7 @@ checksum = "cb7330aeadfbe296029522e6c40f315320aba36fc43a5b3632f3795348f3bd22" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.87", "unicode-xid", ] @@ -891,7 +895,7 @@ checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.87", ] [[package]] @@ -1030,7 +1034,7 @@ dependencies = [ "heck 0.5.0", "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.87", ] [[package]] @@ -1043,7 +1047,7 @@ dependencies = [ "num-traits", "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.87", ] [[package]] @@ -1063,7 +1067,7 @@ checksum = "de0d48a183585823424a4ce1aa132d174a6a81bd540895822eb4c8373a8e49e8" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.87", ] [[package]] @@ -1166,11 +1170,17 @@ version = "0.2.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "28dea519a9695b9977216879a3ebfddf92f1c08c05d984f8996aecd6ecdc811d" +[[package]] +name = "fixedbitset" +version = "0.5.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d674e81391d1e1ab681a28d99df07927c6d4aa5b027d7da16ba32d1d21ecd99" + [[package]] name = "flume" -version = "0.11.0" +version = "0.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "55ac459de2512911e4b674ce33cf20befaba382d05b62b008afc1c8b57cbf181" +checksum = "da0e4dd2a88388a1f4ccc7c9ce104604dab68d9f408dc34cd45823d5a9069095" dependencies = [ "futures-core", "futures-sink", @@ -1184,6 +1194,12 @@ version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" +[[package]] +name = "foldhash" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f81ec6369c545a7d40e4589b5597581fa1c441fe1cce96dd1de43159910a36a2" + [[package]] name = "form_urlencoded" version = "1.2.1" @@ -1202,17 +1218,11 @@ dependencies = [ "autocfg", ] -[[package]] -name = "funty" -version = "2.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6d5a32815ae3f33302d95fdcb2ce17862f8c65363dcfd29360480ba1001fc9c" - [[package]] name = "futures" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "645c6916888f6cb6350d2550b80fb63e734897a8498abe35cfb732b6487804b0" +checksum = "65bc07b1a8bc7c85c5f2e110c476c7389b4554ba72af57d8445ea63a576b0876" dependencies = [ "futures-channel", "futures-core", @@ -1225,10 +1235,11 @@ dependencies = [ [[package]] name = "futures-buffered" -version = "0.2.8" +version = "0.2.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91fa130f3777d0d4b0993653c20bc433026d3290627693c4ed1b18dd237357ab" +checksum = "34acda8ae8b63fbe0b2195c998b180cff89a8212fb2622a78b572a9f1c6f7684" dependencies = [ + "cordyceps", "diatomic-waker", "futures-core", "pin-project-lite", @@ -1236,9 +1247,9 @@ dependencies = [ [[package]] name = "futures-channel" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eac8f7d7865dcb88bd4373ab671c8cf4508703796caa2b1985a9ca867b3fcb78" +checksum = "2dff15bf788c671c1934e366d07e30c1814a8ef514e1af724a602e8a2fbe1b10" dependencies = [ "futures-core", "futures-sink", @@ -1246,11 +1257,11 @@ dependencies = [ [[package]] name = "futures-concurrency" -version = "7.6.1" +version = "7.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b14ac911e85d57c5ea6eef76d7b4d4a3177ecd15f4bea2e61927e9e3823e19f" +checksum = "d9b724496da7c26fcce66458526ce68fc2ecf4aaaa994281cf322ded5755520c" dependencies = [ - "bitvec", + "fixedbitset", "futures-buffered", "futures-core", "futures-lite 1.13.0", @@ -1261,15 +1272,15 @@ dependencies = [ [[package]] name = "futures-core" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dfc6580bb841c5a68e9ef15c77ccc837b40a7504914d52e47b8b0e9bbda25a1d" +checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e" [[package]] name = "futures-executor" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a576fc72ae164fca6b9db127eaa9a9dda0d61316034f33a0a0d4eda41f02b01d" +checksum = "1e28d1d997f585e54aebc3f97d39e72338912123a67330d723fdbb564d646c9f" dependencies = [ "futures-core", "futures-task", @@ -1278,9 +1289,9 @@ dependencies = [ [[package]] name = "futures-io" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a44623e20b9681a318efdd71c299b6b222ed6f231972bfe2f224ebad6311f0c1" +checksum = "9e5c1b78ca4aae1ac06c48a526a655760685149f0d465d21f37abfe57ce075c6" [[package]] name = "futures-lite" @@ -1299,9 +1310,9 @@ dependencies = [ [[package]] name = "futures-lite" -version = "2.3.0" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "52527eb5074e35e9339c6b4e8d12600c7128b68fb25dcb9fa9dec18f7c25f3a5" +checksum = "3f1fa2f9765705486b33fd2acf1577f8ec449c2ba1f318ae5447697b7c08d210" dependencies = [ "fastrand 2.1.1", "futures-core", @@ -1312,26 +1323,26 @@ dependencies = [ [[package]] name = "futures-macro" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87750cf4b7a4c0625b1529e4c543c2182106e4dedc60a2a6455e00d212c489ac" +checksum = "162ee34ebcb7c64a8abebc059ce0fee27c2262618d7b60ed8faf72fef13c3650" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.87", ] [[package]] name = "futures-sink" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9fb8e00e87438d937621c1c6269e53f536c14d3fbd6a042bb24879e57d474fb5" +checksum = "e575fab7d1e0dcb8d0c7bcf9a63ee213816ab51902e6d244a95819acacf1d4f7" [[package]] name = "futures-task" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38d84fa142264698cdce1a9f9172cf383a0c82de1bddcf3092901442c4097004" +checksum = "f90f7dce0722e95104fcb095585910c0977252f286e354b5e3bd38902cd99988" [[package]] name = "futures-timer" @@ -1341,9 +1352,9 @@ checksum = "f288b0a4f20f9a56b5d1da57e2227c661b7b16168e2f72365f57b63326e29b24" [[package]] name = "futures-util" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d6401deb83407ab3da39eba7e33987a73c3df0c82b4bb5813ee871c19c41d48" +checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81" dependencies = [ "futures-channel", "futures-core", @@ -1388,6 +1399,19 @@ dependencies = [ "syn 1.0.109", ] +[[package]] +name = "generator" +version = "0.7.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5cc16584ff22b460a382b7feec54b23d2908d858152e5739a120b949293bd74e" +dependencies = [ + "cc", + "libc", + "log", + "rustversion", + "windows 0.48.0", +] + [[package]] name = "generic-array" version = "0.14.7" @@ -1414,9 +1438,9 @@ dependencies = [ [[package]] name = "gimli" -version = "0.31.0" +version = "0.31.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32085ea23f3234fc7846555e85283ba4de91e21016dc0455a16286d87a292d64" +checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f" [[package]] name = "glob" @@ -1492,7 +1516,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" dependencies = [ "ahash", +] + +[[package]] +name = "hashbrown" +version = "0.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a9bfc1af68b1726ea47d3d5109de126281def866b33970e10fbab11b5dafab3" +dependencies = [ "allocator-api2", + "equivalent", + "foldhash", ] [[package]] @@ -1501,7 +1535,7 @@ version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6ba4ff7128dee98c7dc9794b6a411377e1404dba1c97deb8d1a55297bd25d8af" dependencies = [ - "hashbrown", + "hashbrown 0.14.5", ] [[package]] @@ -1688,9 +1722,9 @@ dependencies = [ [[package]] name = "httparse" -version = "1.9.4" +version = "1.9.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fcc0b4a115bf80b728eb8ea024ad5bd707b615bfed49e0665b6e0f86fd082d9" +checksum = "7d71d3574edd2771538b901e6549113b4006ece66150fb69c0fb6d9a2adae946" [[package]] name = "httpdate" @@ -1700,9 +1734,9 @@ checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" [[package]] name = "hyper" -version = "1.4.1" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50dfd22e0e76d0f662d429a5f80fcaf3855009297eab6a0a9f8543834744ba05" +checksum = "bbbff0a806a4728c99295b254c8838933b5b082d75e3cb70c8dab21fdfbcfa9a" dependencies = [ "bytes", "futures-channel", @@ -1739,9 +1773,9 @@ dependencies = [ [[package]] name = "hyper-util" -version = "0.1.9" +version = "0.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41296eb09f183ac68eec06e03cdbea2e759633d4067b2f6552fc2e009bcad08b" +checksum = "df2dcfbe0677734ab2f3ffa7fa7bfd4706bfdc1ef393f2ee30184aed67e631b4" dependencies = [ "bytes", "futures-channel", @@ -1779,6 +1813,124 @@ dependencies = [ "cc", ] +[[package]] +name = "icu_collections" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db2fa452206ebee18c4b5c2274dbf1de17008e874b4dc4f0aea9d01ca79e4526" +dependencies = [ + "displaydoc", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_locid" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13acbb8371917fc971be86fc8057c41a64b521c184808a698c02acc242dbf637" +dependencies = [ + "displaydoc", + "litemap", + "tinystr", + "writeable", + "zerovec", +] + +[[package]] +name = "icu_locid_transform" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "01d11ac35de8e40fdeda00d9e1e9d92525f3f9d887cdd7aa81d727596788b54e" +dependencies = [ + "displaydoc", + "icu_locid", + "icu_locid_transform_data", + "icu_provider", + "tinystr", + "zerovec", +] + +[[package]] +name = "icu_locid_transform_data" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fdc8ff3388f852bede6b579ad4e978ab004f139284d7b28715f773507b946f6e" + +[[package]] +name = "icu_normalizer" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19ce3e0da2ec68599d193c93d088142efd7f9c5d6fc9b803774855747dc6a84f" +dependencies = [ + "displaydoc", + "icu_collections", + "icu_normalizer_data", + "icu_properties", + "icu_provider", + "smallvec", + "utf16_iter", + "utf8_iter", + "write16", + "zerovec", +] + +[[package]] +name = "icu_normalizer_data" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8cafbf7aa791e9b22bec55a167906f9e1215fd475cd22adfcf660e03e989516" + +[[package]] +name = "icu_properties" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93d6020766cfc6302c15dbbc9c8778c37e62c14427cb7f6e601d849e092aeef5" +dependencies = [ + "displaydoc", + "icu_collections", + "icu_locid_transform", + "icu_properties_data", + "icu_provider", + "tinystr", + "zerovec", +] + +[[package]] +name = "icu_properties_data" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67a8effbc3dd3e4ba1afa8ad918d5684b8868b3b26500753effea8d2eed19569" + +[[package]] +name = "icu_provider" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ed421c8a8ef78d3e2dbc98a973be2f3770cb42b606e3ab18d6237c4dfde68d9" +dependencies = [ + "displaydoc", + "icu_locid", + "icu_provider_macros", + "stable_deref_trait", + "tinystr", + "writeable", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_provider_macros" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ec89e9337638ecdc08744df490b221a7399bf8d164eb52a665454e60e075ad6" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.87", +] + [[package]] name = "idna" version = "0.4.0" @@ -1799,6 +1951,27 @@ dependencies = [ "unicode-normalization", ] +[[package]] +name = "idna" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "686f825264d630750a544639377bae737628043f20d38bbc029e8f29ea968a7e" +dependencies = [ + "idna_adapter", + "smallvec", + "utf8_iter", +] + +[[package]] +name = "idna_adapter" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "daca1df1c957320b2cf139ac61e7bd64fed304c5040df000a745aa1de3b4ef71" +dependencies = [ + "icu_normalizer", + "icu_properties", +] + [[package]] name = "igd-next" version = "0.15.1" @@ -1822,12 +1995,12 @@ dependencies = [ [[package]] name = "indexmap" -version = "2.5.0" +version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68b900aa2f7301e21c36462b170ee99994de34dff39a4a6a528e80e7376d07e5" +checksum = "707907fe3c25f5424cce2cb7e1cbcafee6bdbe735ca90ef77c29e84591e5b9da" dependencies = [ "equivalent", - "hashbrown", + "hashbrown 0.15.1", ] [[package]] @@ -1871,15 +2044,15 @@ dependencies = [ [[package]] name = "ipnet" -version = "2.10.0" +version = "2.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "187674a687eed5fe42285b40c6291f9a01517d415fad1c3cbc6a9f778af7fcd4" +checksum = "ddc24109865250148c2e0f3d25d4f0f479571723792d3802153c60922a4fb708" [[package]] name = "iroh" -version = "0.27.0" +version = "0.28.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d466e52e137738e33dc334518c37b3c7c0502f9f838ffea4d771a9dd882e0f0" +checksum = "47cbc2cde0ac94db88a2f0442cf0d18f1f59403cc21c81f7994a6287e78e60dd" dependencies = [ "anyhow", "async-channel", @@ -1887,7 +2060,7 @@ dependencies = [ "bytes", "derive_more", "futures-buffered", - "futures-lite 2.3.0", + "futures-lite 2.4.0", "futures-util", "genawaiter", "hex", @@ -1899,6 +2072,7 @@ dependencies = [ "iroh-metrics", "iroh-net", "iroh-quinn", + "iroh-router", "nested_enum_utils", "num_cpus", "parking_lot", @@ -1909,6 +2083,7 @@ dependencies = [ "rand", "ref-cast", "serde", + "serde-error", "strum 0.25.0", "tempfile", "thiserror", @@ -1922,9 +2097,9 @@ dependencies = [ [[package]] name = "iroh-base" -version = "0.27.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28a777d7e0b3e2fdab4ad1b21b64be87a43ac3ceb2a2ccef905e480ad3317396" +checksum = "1c21fd8eb71f166a172a9779c2244db992218e9a9bd929b9df6fc355d2b630c9" dependencies = [ "aead", "anyhow", @@ -1939,9 +2114,8 @@ dependencies = [ "postcard", "rand", "rand_core", - "redb 2.1.3", + "redb 2.2.0", "serde", - "serde-error", "ssh-key", "thiserror", "ttl_cache", @@ -1964,9 +2138,9 @@ dependencies = [ [[package]] name = "iroh-blobs" -version = "0.27.0" +version = "0.28.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "69e83475d6c8cc312a224d4c6bdf287f862d30d2b176768ef71f188a0d8aa7cd" +checksum = "cce615635f60b5a01f6d066084cc0fca8281df594b6b735840d4796a06422604" dependencies = [ "anyhow", "async-channel", @@ -1975,7 +2149,7 @@ dependencies = [ "chrono", "derive_more", "futures-buffered", - "futures-lite 2.3.0", + "futures-lite 2.4.0", "genawaiter", "hashlink", "hex", @@ -1984,6 +2158,7 @@ dependencies = [ "iroh-metrics", "iroh-net", "iroh-quinn", + "iroh-router", "num_cpus", "oneshot", "parking_lot", @@ -1992,10 +2167,11 @@ dependencies = [ "rand", "range-collections", "redb 1.5.1", - "redb 2.1.3", + "redb 2.2.0", "reflink-copy", "self_cell", "serde", + "serde-error", "smallvec", "tempfile", "thiserror", @@ -2007,9 +2183,9 @@ dependencies = [ [[package]] name = "iroh-docs" -version = "0.27.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb2c8bc1fe680549dd9776031be30e68663884026f71a914aab7108e0b8f8ce4" +checksum = "1b4e9283e9a05a1e1c2b702ea743445a8e41ffd651deccddc2884d05f941db58" dependencies = [ "anyhow", "async-channel", @@ -2017,7 +2193,7 @@ dependencies = [ "derive_more", "ed25519-dalek", "futures-buffered", - "futures-lite 2.3.0", + "futures-lite 2.4.0", "futures-util", "hex", "iroh-base", @@ -2026,13 +2202,14 @@ dependencies = [ "iroh-gossip", "iroh-metrics", "iroh-net", + "iroh-router", "lru", "num_enum", "postcard", "rand", "rand_core", "redb 1.5.1", - "redb 2.1.3", + "redb 2.2.0", "self_cell", "serde", "strum 0.25.0", @@ -2046,7 +2223,7 @@ dependencies = [ [[package]] name = "iroh-ffi" -version = "0.27.0" +version = "0.28.1" dependencies = [ "anyhow", "async-trait", @@ -2056,8 +2233,9 @@ dependencies = [ "derive_more", "flume", "futures", - "futures-lite 2.3.0", + "futures-lite 2.4.0", "iroh", + "iroh-gossip", "iroh-io", "libc", "num_cpus", @@ -2077,9 +2255,9 @@ dependencies = [ [[package]] name = "iroh-gossip" -version = "0.27.0" +version = "0.28.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b434d455389493ff2b2ecbab035c12eb3762f24d04080855ecd4956bf7739448" +checksum = "c078057037f0e741c5ef285c67fd9cfdb928163dd046fb547089898bdb02990e" dependencies = [ "anyhow", "async-channel", @@ -2087,17 +2265,23 @@ dependencies = [ "derive_more", "ed25519-dalek", "futures-concurrency", - "futures-lite 2.3.0", + "futures-lite 2.4.0", "futures-util", "indexmap", "iroh-base", "iroh-blake3", "iroh-metrics", "iroh-net", + "iroh-router", + "nested_enum_utils", "postcard", + "quic-rpc", + "quic-rpc-derive", "rand", "rand_core", "serde", + "serde-error", + "strum 0.26.3", "tokio", "tokio-util", "tracing", @@ -2110,7 +2294,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "17e302c5ad649c6a7aa9ae8468e1c4dc2469321af0c6de7341c1be1bdaab434b" dependencies = [ "bytes", - "futures-lite 2.3.0", + "futures-lite 2.4.0", "pin-project", "smallvec", "tokio", @@ -2118,9 +2302,9 @@ dependencies = [ [[package]] name = "iroh-metrics" -version = "0.27.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c78cf30022e1c7a10fc0ae0a6ba83f131b7c3b92d4876f6c97aba93fe534be6" +checksum = "e0d40f2ee3997489d47403d204a06514ed65373d224b5b43a8ea133f543e5db1" dependencies = [ "anyhow", "erased_set", @@ -2139,9 +2323,9 @@ dependencies = [ [[package]] name = "iroh-net" -version = "0.27.0" +version = "0.28.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34192d8846fc59d6669fb80a485b430215ecc1bf3c2b9df4f8a92370fe37e13a" +checksum = "b40e1f1f9029e198c6d05bd232d3239814b0a66ac4668978729b709aeb6a44e2" dependencies = [ "anyhow", "backoff", @@ -2152,7 +2336,7 @@ dependencies = [ "duct", "futures-buffered", "futures-concurrency", - "futures-lite 2.3.0", + "futures-lite 2.4.0", "futures-sink", "futures-util", "genawaiter", @@ -2176,11 +2360,13 @@ dependencies = [ "netlink-packet-core", "netlink-packet-route", "netlink-sys", + "netwatch", "num_enum", "once_cell", "parking_lot", "pin-project", "pkarr", + "portmapper", "postcard", "rand", "rcgen", @@ -2217,9 +2403,9 @@ dependencies = [ [[package]] name = "iroh-quinn" -version = "0.11.3" +version = "0.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fd590a39a14cfc168efa4d894de5039d65641e62d8da4a80733018ababe3c33" +checksum = "35ba75a5c57cff299d2d7ca1ddee053f66339d1756bd79ec637bcad5aa61100e" dependencies = [ "bytes", "iroh-quinn-proto", @@ -2235,9 +2421,9 @@ dependencies = [ [[package]] name = "iroh-quinn-proto" -version = "0.11.6" +version = "0.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5fd0538ff12efe3d61ea1deda2d7913f4270873a519d43e6995c6e87a1558538" +checksum = "e2c869ba52683d3d067c83ab4c00a2fda18eaf13b1434d4c1352f428674d4a5d" dependencies = [ "bytes", "rand", @@ -2253,9 +2439,9 @@ dependencies = [ [[package]] name = "iroh-quinn-udp" -version = "0.5.4" +version = "0.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d0619b59471fdd393ac8a6c047f640171119c1c8b41f7d2927db91776dcdbc5f" +checksum = "bfcfc0abc2fdf8cf18a6c72893b7cbebeac2274a3b1306c1760c48c0e10ac5e0" dependencies = [ "libc", "once_cell", @@ -2264,6 +2450,22 @@ dependencies = [ "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]] name = "is_terminal_polyfill" version = "1.70.1" @@ -2298,9 +2500,9 @@ checksum = "8eaf4bc02d17cbdd7ff4c7438cafcdf7fb9a4613313ad11b4f8fefe7d3fa0130" [[package]] name = "js-sys" -version = "0.3.70" +version = "0.3.72" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1868808506b929d7b0cfa8f75951347aa71bb21144b7791bae35d9bccfcfe37a" +checksum = "6a88f1bda2bd75b0452a14784937d796722fdebfe50df998aeb3f0b7603019a9" dependencies = [ "wasm-bindgen", ] @@ -2316,9 +2518,9 @@ dependencies = [ [[package]] name = "libc" -version = "0.2.159" +version = "0.2.161" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "561d97a539a36e26a9a5fad1ea11a3039a67714694aaa379433e580854bc3dc5" +checksum = "8e9489c2807c139ffd9c1794f4af0ebe86a828db53ecdc7fea2111d0fed085d1" [[package]] name = "libloading" @@ -2332,9 +2534,9 @@ dependencies = [ [[package]] name = "libm" -version = "0.2.8" +version = "0.2.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ec2a862134d2a7d32d7983ddcdd1c4923530833c9f2ea1a44fc5fa473989058" +checksum = "8355be11b20d696c8f18f6cc018c4e372165b1fa8126cef092399c9951984ffa" [[package]] name = "linked-hash-map" @@ -2348,6 +2550,12 @@ version = "0.4.14" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89" +[[package]] +name = "litemap" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "643cb0b8d4fcc284004d5fd0d67ccf61dfffadb7f75e1e71bc420f4688a3a704" + [[package]] name = "litrs" version = "0.4.1" @@ -2370,13 +2578,26 @@ version = "0.4.22" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24" +[[package]] +name = "loom" +version = "0.5.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff50ecb28bb86013e935fb6683ab1f6d3a20016f123c76fd4c27470076ac30f5" +dependencies = [ + "cfg-if", + "generator", + "scoped-tls", + "tracing", + "tracing-subscriber", +] + [[package]] name = "lru" -version = "0.12.4" +version = "0.12.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "37ee39891760e7d94734f6f63fedc29a2e4a152f836120753a72503f09fcf904" +checksum = "234cf4f4a04dc1f57e24b96cc0cd600cf2af460d4161ac5ecdd0af8e1f3b2a38" dependencies = [ - "hashbrown", + "hashbrown 0.15.1", ] [[package]] @@ -2495,9 +2716,9 @@ dependencies = [ [[package]] name = "napi" -version = "3.0.0-alpha.12" +version = "3.0.0-alpha.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b9a0181ed74b13126d877e7a4c1f267c4fcb955b417fb884c56cb358827cef4" +checksum = "bd88419f4a1d6b2dcf5ab7a2d03fff6ca183678fc94fe93bf9a96237da3ce7be" dependencies = [ "anyhow", "bitflags 2.6.0", @@ -2516,36 +2737,36 @@ checksum = "e1c0f5d67ee408a4685b61f5ab7e58605c8ae3f2b4189f0127d804ff13d5560a" [[package]] name = "napi-derive" -version = "3.0.0-alpha.12" +version = "3.0.0-alpha.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fba9a47726fea1ade989a27d54f5420acaa546a648c870ad6951ff0288c44879" +checksum = "72b5fcb51b242959143016355c19323183f0a8732f47ceb6b85166d5cf2bebf4" dependencies = [ "convert_case", "napi-derive-backend", "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.87", ] [[package]] name = "napi-derive-backend" -version = "2.0.0-alpha.12" +version = "2.0.0-alpha.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76f227e9f34f058f563dbee327f94e176ff4c6f7b26c057e18336715cfd5c3c3" +checksum = "b64037ee8208051253d69137e225e378c9ee1a78fd938a8c3d167082498bc6c7" dependencies = [ "convert_case", "proc-macro2", "quote", "regex", "semver", - "syn 2.0.79", + "syn 2.0.87", ] [[package]] name = "napi-sys" -version = "2.4.0" +version = "3.0.0-alpha.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "427802e8ec3a734331fec1035594a210ce1ff4dc5bc1950530920ab717964ea3" +checksum = "ab9d950ea3a522a8cb9e9237ba7cf977eeca1fadaec182163be6b0feebfc7361" dependencies = [ "libloading", ] @@ -2644,6 +2865,35 @@ dependencies = [ "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", + "tokio", + "tracing", + "windows 0.51.1", + "wmi", +] + [[package]] name = "nix" version = "0.26.4" @@ -2784,12 +3034,12 @@ dependencies = [ "proc-macro-crate", "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.87", ] [[package]] name = "number0_iroh" -version = "0.27.0" +version = "0.28.1" dependencies = [ "anyhow", "async-trait", @@ -2801,6 +3051,7 @@ dependencies = [ "flume", "futures", "iroh", + "iroh-gossip", "iroh-io", "libc", "napi", @@ -2818,9 +3069,9 @@ dependencies = [ [[package]] name = "object" -version = "0.36.4" +version = "0.36.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "084f1a5821ac4c651660a94a7153d27ac9d8a53736203f58b31945ded098070a" +checksum = "aedf0a2d09c573ed1d8d85b30c119153926a2b36dce0ab28322c09a117a4683e" dependencies = [ "memchr", ] @@ -2836,12 +3087,9 @@ dependencies = [ [[package]] name = "once_cell" -version = "1.20.1" +version = "1.20.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "82881c4be219ab5faaf2ad5e5e5ecdff8c66bd7402ca3160975c93b24961afd1" -dependencies = [ - "portable-atomic", -] +checksum = "1261fe7e33c73b354eab43b1273a57c8f967d0391e80353e51f764ac02cf6775" [[package]] name = "oneshot" @@ -2977,9 +3225,9 @@ checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" [[package]] name = "pest" -version = "2.7.13" +version = "2.7.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fdbef9d1d47087a895abd220ed25eb4ad973a5e26f6a4367b038c25e28dfc2d9" +checksum = "879952a81a83930934cbf1786752d6dedc3b1f29e8f8fb2ad1d0a36f377cf442" dependencies = [ "memchr", "thiserror", @@ -2988,9 +3236,9 @@ dependencies = [ [[package]] name = "pest_derive" -version = "2.7.13" +version = "2.7.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d3a6e3394ec80feb3b6393c725571754c6188490265c61aaf260810d6b95aa0" +checksum = "d214365f632b123a47fd913301e14c946c61d1c183ee245fa76eb752e59a02dd" dependencies = [ "pest", "pest_generator", @@ -2998,22 +3246,22 @@ dependencies = [ [[package]] name = "pest_generator" -version = "2.7.13" +version = "2.7.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94429506bde1ca69d1b5601962c73f4172ab4726571a59ea95931218cb0e930e" +checksum = "eb55586734301717aea2ac313f50b2eb8f60d2fc3dc01d190eefa2e625f60c4e" dependencies = [ "pest", "pest_meta", "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.87", ] [[package]] name = "pest_meta" -version = "2.7.13" +version = "2.7.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac8a071862e93690b6e34e9a5fb8e33ff3734473ac0245b27232222c4906a33f" +checksum = "b75da2a70cf4d9cb76833c990ac9cd3923c9a8905a8929789ce347c84564d03d" dependencies = [ "once_cell", "pest", @@ -3022,29 +3270,29 @@ dependencies = [ [[package]] name = "pin-project" -version = "1.1.5" +version = "1.1.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6bf43b791c5b9e34c3d182969b4abb522f9343702850a2e57f460d00d09b4b3" +checksum = "be57f64e946e500c8ee36ef6331845d40a93055567ec57e8fae13efd33759b95" dependencies = [ "pin-project-internal", ] [[package]] name = "pin-project-internal" -version = "1.1.5" +version = "1.1.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f38a4412a78282e09a2cf38d195ea5420d15ba0602cb375210efbc877243965" +checksum = "3c0f5fad0874fc7abcd4d750e76917eaebbecaa2c20bde22e1dbeeba8beb758c" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.87", ] [[package]] name = "pin-project-lite" -version = "0.2.14" +version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bda66fc9667c18cb2758a2ac84d1167245054bcf85d5d1aaa6923f45801bdd02" +checksum = "915a1e146535de9163f3987b8944ed8cf49a18bb0056bcebcdcece385cece4ff" [[package]] name = "pin-utils" @@ -3123,7 +3371,7 @@ dependencies = [ "proc-macro2", "quote", "regex", - "syn 2.0.79", + "syn 2.0.87", ] [[package]] @@ -3164,6 +3412,35 @@ version = "1.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cc9c68a3f6da06753e9335d63e27f6b9754dd1920d941135b7ea8224f141adb2" +[[package]] +name = "portmapper" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93d60045fdcfe8ff6b781cf1027fdbb08ed319d93aff7da4bedc018e3bc92226" +dependencies = [ + "anyhow", + "base64", + "bytes", + "derive_more", + "futures-lite 2.4.0", + "futures-util", + "igd-next", + "iroh-metrics", + "libc", + "netwatch", + "num_enum", + "rand", + "serde", + "smallvec", + "socket2", + "thiserror", + "time", + "tokio", + "tokio-util", + "tracing", + "url", +] + [[package]] name = "positioned-io" version = "0.3.3" @@ -3299,9 +3576,9 @@ checksum = "dc375e1527247fe1a97d8b7156678dfe7c1af2fc075c9a4db3690ecd2a148068" [[package]] name = "proc-macro2" -version = "1.0.86" +version = "1.0.89" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77" +checksum = "f139b0662de085916d1fb67d2b4169d1addddda1919e696f3252b740b629986e" dependencies = [ "unicode-ident", ] @@ -3326,7 +3603,7 @@ checksum = "440f724eba9f6996b75d63681b0a92b06947f1457076d503a4d2e2c8f56442b8" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.87", ] [[package]] @@ -3346,16 +3623,16 @@ dependencies = [ [[package]] name = "quic-rpc" -version = "0.12.1" +version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77b3ae032988c83ac7ce072be3c2605e90671e8830a34d6ebf24095add68b4d5" +checksum = "1d8431b2e7c22929347b61a354d4936d71fe7ab1e6b0475dc50e98276970dfec" dependencies = [ "anyhow", "bincode", "derive_more", "educe", "flume", - "futures-lite 2.3.0", + "futures-lite 2.4.0", "futures-sink", "futures-util", "hex", @@ -3371,9 +3648,9 @@ dependencies = [ [[package]] name = "quic-rpc-derive" -version = "0.12.1" +version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "59e222c3c9829e6e0de27e5a8fb34047cb31c39093fc00746d30457167a44252" +checksum = "403bc8506c847468e00170dbbbfe2c54d13b090031bcbe474cd3faea021cbd9f" dependencies = [ "proc-macro2", "quic-rpc", @@ -3424,10 +3701,11 @@ dependencies = [ [[package]] name = "quinn-udp" -version = "0.5.5" +version = "0.5.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fe68c2e9e1a1234e218683dbdf9f9dfcb094113c5ac2b938dfcb9bab4c4140b" +checksum = "e346e016eacfff12233c243718197ca12f148c84e1e84268a896699b41c71780" dependencies = [ + "cfg_aliases", "libc", "once_cell", "socket2", @@ -3454,12 +3732,6 @@ dependencies = [ "pest_derive", ] -[[package]] -name = "radium" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc33ff2d4973d518d823d61aa239014831e521c75da58e3df4840d3f47749d09" - [[package]] name = "rand" version = "0.8.5" @@ -3504,9 +3776,9 @@ dependencies = [ [[package]] name = "raw-cpuid" -version = "11.1.0" +version = "11.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb9ee317cfe3fbd54b36a511efc1edd42e216903c9cd575e686dd68a2ba90d8d" +checksum = "1ab240315c661615f2ee9f0f2cd32d5a7343a84d5ebcccb99d46e6637565e7b0" dependencies = [ "bitflags 2.6.0", ] @@ -3534,9 +3806,9 @@ dependencies = [ [[package]] name = "redb" -version = "2.1.3" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e4760ad04a88ef77075ba86ba9ea79b919e6bab29c1764c5747237cd6eaedcaa" +checksum = "84b1de48a7cf7ba193e81e078d17ee2b786236eed1d3f7c60f8a09545efc4925" dependencies = [ "libc", ] @@ -3567,7 +3839,7 @@ checksum = "bcc303e793d3734489387d205e9b186fac9c6cfacedd98cbb2e8a5943595f3e6" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.87", ] [[package]] @@ -3583,9 +3855,9 @@ dependencies = [ [[package]] name = "regex" -version = "1.11.0" +version = "1.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38200e5ee88914975b69f657f0801b6f6dccafd44fd9326302a4aaeecfacb1d8" +checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191" dependencies = [ "aho-corasick", "memchr", @@ -3633,9 +3905,9 @@ checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c" [[package]] name = "reqwest" -version = "0.12.7" +version = "0.12.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f8f4955649ef5c38cc7f9e8aa41761d48fb9677197daea9984dc54f56aad5e63" +checksum = "a77c62af46e79de0a562e1a9849205ffcb7fc1238876e9bd743357570e04046f" dependencies = [ "base64", "bytes", @@ -3779,9 +4051,9 @@ dependencies = [ [[package]] name = "rustix" -version = "0.38.37" +version = "0.38.39" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8acb788b847c24f28525660c4d7758620a7210875711f79e7f663cc152726811" +checksum = "375116bee2be9ed569afe2154ea6a99dfdffd257f533f187498c2a8f5feaf4ee" dependencies = [ "bitflags 2.6.0", "errno", @@ -3792,9 +4064,9 @@ dependencies = [ [[package]] name = "rustls" -version = "0.23.13" +version = "0.23.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2dabaac7466917e566adb06783a81ca48944c6898a1b08b9374106dd671f4c8" +checksum = "eee87ff5d9b36712a58574e12e9f0ea80f915a5b0ac518d322b24a465617925e" dependencies = [ "log", "once_cell", @@ -3829,9 +4101,9 @@ dependencies = [ [[package]] name = "rustls-pki-types" -version = "1.9.0" +version = "1.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e696e35370c65c9c541198af4543ccd580cf17fc25d8e05c5a242b202488c55" +checksum = "16f1201b3c9a7ee8039bcadc17b7e605e2945b27eee7631788c1bd2b0643674b" [[package]] name = "rustls-platform-verifier" @@ -3873,9 +4145,9 @@ dependencies = [ [[package]] name = "rustversion" -version = "1.0.17" +version = "1.0.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "955d28af4278de8121b7ebeb796b6a45735dc01436d898801014aced2773a3d6" +checksum = "0e819f2bc632f285be6d7cd36e25940d45b2391dd6d9b939e79de557f7014248" [[package]] name = "ryu" @@ -3903,13 +4175,19 @@ dependencies = [ [[package]] name = "schannel" -version = "0.1.24" +version = "0.1.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e9aaafd5a2b6e3d657ff009d82fbd630b6bd54dd4eb06f21693925cdf80f9b8b" +checksum = "01227be5826fa0690321a2ba6c5cd57a19cf3f6a09e76973b58e61de6ab9d1c1" dependencies = [ "windows-sys 0.59.0", ] +[[package]] +name = "scoped-tls" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e1cf6437eb19a8f4a6cc0f7dca544973b0b78843adbfeb3683d1a94a0024a294" + [[package]] name = "scopeguard" version = "1.2.0" @@ -3933,7 +4211,7 @@ checksum = "7f81c2fde025af7e69b1d1420531c8a8811ca898919db177141a85313b1cb932" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.87", ] [[package]] @@ -3991,18 +4269,18 @@ dependencies = [ [[package]] name = "serde" -version = "1.0.210" +version = "1.0.214" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8e3592472072e6e22e0a54d5904d9febf8508f65fb8552499a1abc7d1078c3a" +checksum = "f55c3193aca71c12ad7890f1785d2b73e1b9f63a0bbc353c08ef26fe03fc56b5" dependencies = [ "serde_derive", ] [[package]] name = "serde-error" -version = "0.1.2" +version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e988182713aeed6a619a88bca186f6d6407483485ffe44c869ee264f8eabd13f" +checksum = "342110fb7a5d801060c885da03bf91bfa7c7ca936deafcc64bb6706375605d47" dependencies = [ "serde", ] @@ -4028,20 +4306,20 @@ dependencies = [ [[package]] name = "serde_derive" -version = "1.0.210" +version = "1.0.214" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "243902eda00fad750862fc144cea25caca5e20d615af0a81bee94ca738f1df1f" +checksum = "de523f781f095e28fa605cdce0f8307e451cc0fd14e2eb4cd2e98a355b147766" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.87", ] [[package]] name = "serde_json" -version = "1.0.128" +version = "1.0.132" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ff5456707a1de34e7e37f2a6fd3d3f808c318259cbd01ab6377795054b483d8" +checksum = "d726bfaff4b320266d395898905d0eba0345aae23b54aee3a737e260fd46db03" dependencies = [ "itoa", "memchr", @@ -4249,9 +4527,9 @@ dependencies = [ [[package]] name = "ssh-key" -version = "0.6.6" +version = "0.6.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca9b366a80cf18bb6406f4cf4d10aebfb46140a8c0c33f666a144c5c76ecbafc" +checksum = "3b86f5297f0f04d08cabaa0f6bff7cb6aec4d9c3b49d87990d63da9d9156a8c3" dependencies = [ "ed25519-dalek", "p256", @@ -4268,6 +4546,12 @@ dependencies = [ "zeroize", ] +[[package]] +name = "stable_deref_trait" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" + [[package]] name = "static_assertions" version = "1.1.0" @@ -4300,7 +4584,7 @@ dependencies = [ "proc-macro2", "quote", "struct_iterable_internal", - "syn 2.0.79", + "syn 2.0.87", ] [[package]] @@ -4337,7 +4621,7 @@ dependencies = [ "proc-macro2", "quote", "rustversion", - "syn 2.0.79", + "syn 2.0.87", ] [[package]] @@ -4350,14 +4634,14 @@ dependencies = [ "proc-macro2", "quote", "rustversion", - "syn 2.0.79", + "syn 2.0.87", ] [[package]] name = "stun-rs" -version = "0.1.8" +version = "0.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0adebf9fb8fba5c39ee34092b0383f247e4d1255b98fcffec94b4b797b85b677" +checksum = "b79cc624c9a747353810310af44f1f03f71eb4561284a894acc0396e6d0de76e" dependencies = [ "base64", "bounded-integer", @@ -4427,9 +4711,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.79" +version = "2.0.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89132cd0bf050864e1d38dc3bbc07a0eb8e7530af26344d3d2bbbef83499f590" +checksum = "25aa4ce346d03a6dcd68dd8b4010bcb74e54e62c90c573f394c46eae99aba32d" dependencies = [ "proc-macro2", "quote", @@ -4464,7 +4748,7 @@ checksum = "c8af7666ab7b6390ab78131fb5b0fce11d6b7a6951602017c35fa82800708971" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.87", ] [[package]] @@ -4488,12 +4772,6 @@ dependencies = [ "libc", ] -[[package]] -name = "tap" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" - [[package]] name = "tempfile" version = "3.13.0" @@ -4518,22 +4796,22 @@ dependencies = [ [[package]] name = "thiserror" -version = "1.0.64" +version = "1.0.68" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d50af8abc119fb8bb6dbabcfa89656f46f84aa0ac7688088608076ad2b459a84" +checksum = "02dd99dc800bbb97186339685293e1cc5d9df1f8fae2d0aecd9ff1c77efea892" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.64" +version = "1.0.68" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08904e7672f5eb876eaaf87e0ce17857500934f4981c4a0ab2b4aa98baac7fc3" +checksum = "a7c61ec9a6f64d2793d8a45faba21efbe3ced62a886d44c36a009b2b519b4c7e" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.87", ] [[package]] @@ -4577,6 +4855,16 @@ dependencies = [ "time-core", ] +[[package]] +name = "tinystr" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9117f5d4db391c1cf6927e7bea3db74b9a1c1add8f7eda9ffd5364f40f57b82f" +dependencies = [ + "displaydoc", + "zerovec", +] + [[package]] name = "tinyvec" version = "1.8.0" @@ -4594,9 +4882,9 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.40.0" +version = "1.41.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2b070231665d27ad9ec9b8df639893f46727666c6767db40317fbe920a5d998" +checksum = "145f3413504347a2be84393cc8a7d2fb4d863b375909ea59f2158261aa258bbb" dependencies = [ "backtrace", "bytes", @@ -4618,7 +4906,7 @@ checksum = "693d596312e88961bc67d7f1f97af8a70227d9f90c31bba5806eec004978d752" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.87", ] [[package]] @@ -4699,7 +4987,7 @@ dependencies = [ "futures-core", "futures-sink", "futures-util", - "hashbrown", + "hashbrown 0.14.5", "pin-project-lite", "slab", "tokio", @@ -4757,7 +5045,7 @@ checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.87", ] [[package]] @@ -4866,18 +5154,15 @@ checksum = "2896d95c02a80c6d6a5d6e953d479f5ddf2dfdb6a244441010e373ac0fb88971" [[package]] name = "unicase" -version = "2.7.0" +version = "2.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7d2d4dafb69621809a81864c9c1b864479e1235c0dd4e199924b9742439ed89" -dependencies = [ - "version_check", -] +checksum = "7e51b68083f157f853b6379db119d1c1be0e6e4dec98101079dec41f6f5cf6df" [[package]] name = "unicode-bidi" -version = "0.3.15" +version = "0.3.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08f95100a766bf4f8f28f90d77e0a5461bbdb219042e7679bebe79004fed8d75" +checksum = "5ab17db44d7388991a428b2ee655ce0c212e862eff1768a455c58f9aad6e7893" [[package]] name = "unicode-ident" @@ -4908,9 +5193,9 @@ checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853" [[package]] name = "uniffi" -version = "0.28.1" +version = "0.28.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2db87def739fe4183947f8419d572d1849a4a09355eba4e988a2105cfd0ac6a7" +checksum = "51ce6280c581045879e11b400bae14686a819df22b97171215d15549efa04ddb" dependencies = [ "anyhow", "camino", @@ -4924,9 +5209,9 @@ dependencies = [ [[package]] name = "uniffi_bindgen" -version = "0.28.1" +version = "0.28.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a112599c9556d1581e4a3d72019a74c2c3e122cc27f4af12577a429c4d5e614" +checksum = "5e9f25730c9db2e878521d606f54e921edb719cdd94d735e7f97705d6796d024" dependencies = [ "anyhow", "askama", @@ -4947,9 +5232,9 @@ dependencies = [ [[package]] name = "uniffi_build" -version = "0.28.1" +version = "0.28.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2b12684401d2a8508ca9c72a95bbc45906417e42fc80942abaf033bbf01aa33" +checksum = "88dba57ac699bd8ec53d6a352c8dd0e479b33f698c5659831bb1e4ce468c07bd" dependencies = [ "anyhow", "camino", @@ -4958,24 +5243,23 @@ dependencies = [ [[package]] name = "uniffi_checksum_derive" -version = "0.28.1" +version = "0.28.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a22dbe67c1c957ac6e7611bdf605a6218aa86b0eebeb8be58b70ae85ad7d73dc" +checksum = "d2c801f0f05b06df456a2da4c41b9c2c4fdccc6b9916643c6c67275c4c9e4d07" dependencies = [ "quote", - "syn 2.0.79", + "syn 2.0.87", ] [[package]] name = "uniffi_core" -version = "0.28.1" +version = "0.28.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a0c35aaad30e3a9e6d4fe34e358d64dbc92ee09045b48591b05fc9f12e0905b" +checksum = "61049e4db6212d0ede80982adf0e1d6fa224e6118387324c5cfbe3083dfb2252" dependencies = [ "anyhow", "async-compat", "bytes", - "camino", "log", "once_cell", "paste", @@ -4984,9 +5268,9 @@ dependencies = [ [[package]] name = "uniffi_macros" -version = "0.28.1" +version = "0.28.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "db66474c5c61b0f7afc3b4995fecf9b72b340daa5ca0ef3da7778d75eb5482ea" +checksum = "b40fd2249e0c5dcbd2bfa3c263db1ec981f7273dca7f4132bf06a272359a586c" dependencies = [ "bincode", "camino", @@ -4995,16 +5279,16 @@ dependencies = [ "proc-macro2", "quote", "serde", - "syn 2.0.79", + "syn 2.0.87", "toml", "uniffi_meta", ] [[package]] name = "uniffi_meta" -version = "0.28.1" +version = "0.28.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d898893f102e0e39b8bcb7e3d2188f4156ba280db32db9e8af1f122d057e9526" +checksum = "c9ad57039b4fafdbf77428d74fff40e0908e5a1731e023c19cfe538f6d4a8ed6" dependencies = [ "anyhow", "bytes", @@ -5014,9 +5298,9 @@ dependencies = [ [[package]] name = "uniffi_testing" -version = "0.28.1" +version = "0.28.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2c6aa4f0cf9d12172d84fc00a35a6c1f3522b526daad05ae739f709f6941b9b6" +checksum = "21fa171d4d258dc51bbd01893cc9608c1b62273d2f9ea55fb64f639e77824567" dependencies = [ "anyhow", "camino", @@ -5027,9 +5311,9 @@ dependencies = [ [[package]] name = "uniffi_udl" -version = "0.28.1" +version = "0.28.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b044e9c519e0bb51e516ab6f6d8f4f4dcf900ce30d5ad07c03f924e2824f28e" +checksum = "f52299e247419e7e2934bef2f94d7cccb0e6566f3248b1d48b160d8f369a2668" dependencies = [ "anyhow", "textwrap", @@ -5071,12 +5355,12 @@ dependencies = [ [[package]] name = "url" -version = "2.5.2" +version = "2.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22784dbdf76fdde8af1aeda5622b546b422b6fc585325248a2bf9f5e41e94d6c" +checksum = "8d157f1b96d14500ffdc1f10ba712e780825526c03d9a49b4d0324b0d9113ada" dependencies = [ "form_urlencoded", - "idna 0.5.0", + "idna 1.0.3", "percent-encoding", "serde", ] @@ -5087,6 +5371,18 @@ version = "0.7.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9" +[[package]] +name = "utf16_iter" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8232dd3cdaed5356e0f716d285e4b40b932ac434100fe9b7e0e8e935b9e6246" + +[[package]] +name = "utf8_iter" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" + [[package]] name = "utf8parse" version = "0.2.2" @@ -5138,9 +5434,9 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" -version = "0.2.93" +version = "0.2.95" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a82edfc16a6c469f5f44dc7b571814045d60404b55a0ee849f9bcfa2e63dd9b5" +checksum = "128d1e363af62632b8eb57219c8fd7877144af57558fb2ef0368d0087bddeb2e" dependencies = [ "cfg-if", "once_cell", @@ -5149,24 +5445,24 @@ dependencies = [ [[package]] name = "wasm-bindgen-backend" -version = "0.2.93" +version = "0.2.95" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9de396da306523044d3302746f1208fa71d7532227f15e347e2d93e4145dd77b" +checksum = "cb6dd4d3ca0ddffd1dd1c9c04f94b868c37ff5fac97c30b97cff2d74fce3a358" dependencies = [ "bumpalo", "log", "once_cell", "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.87", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-futures" -version = "0.4.43" +version = "0.4.45" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61e9300f63a621e96ed275155c108eb6f843b6a26d053f122ab69724559dc8ed" +checksum = "cc7ec4f8827a71586374db3e87abdb5a2bb3a15afed140221307c3ec06b1f63b" dependencies = [ "cfg-if", "js-sys", @@ -5176,9 +5472,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.93" +version = "0.2.95" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "585c4c91a46b072c92e908d99cb1dcdf95c5218eeb6f3bf1efa991ee7a68cccf" +checksum = "e79384be7f8f5a9dd5d7167216f022090cf1f9ec128e6e6a482a2cb5c5422c56" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -5186,22 +5482,22 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.93" +version = "0.2.95" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "afc340c74d9005395cf9dd098506f7f44e38f2b4a21c6aaacf9a105ea5e1e836" +checksum = "26c6ab57572f7a24a4985830b120de1594465e5d500f24afe89e16b4e833ef68" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.87", "wasm-bindgen-backend", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-shared" -version = "0.2.93" +version = "0.2.95" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c62a0a307cb4a311d3a07867860911ca130c3494e8c2719593806c08bc5d0484" +checksum = "65fc09f10666a9f147042251e0dda9c18f166ff7de300607007e96bdebc1068d" [[package]] name = "watchable" @@ -5217,9 +5513,9 @@ dependencies = [ [[package]] name = "web-sys" -version = "0.3.70" +version = "0.3.72" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26fdeaafd9bd129f65e7c031593c24d62186301e0c72c8978fa1678be7d532c0" +checksum = "f6488b90108c040df0fe62fa815cbdee25124641df01814dd7282749234c6112" dependencies = [ "js-sys", "wasm-bindgen", @@ -5280,6 +5576,15 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" +[[package]] +name = "windows" +version = "0.48.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e686886bc078bc1b0b600cac0147aadb815089b6e4da64016cbd754b6342700f" +dependencies = [ + "windows-targets 0.48.5", +] + [[package]] name = "windows" version = "0.51.1" @@ -5339,7 +5644,7 @@ checksum = "2bbd5b46c938e506ecbce286b6628a02171d56153ba733b6c741fc627ec9579b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.87", ] [[package]] @@ -5350,7 +5655,7 @@ checksum = "053c4c462dc91d3b1504c6fe5a726dd15e216ba718e84a0e46a88fbe5ded3515" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.87", ] [[package]] @@ -5566,13 +5871,16 @@ dependencies = [ ] [[package]] -name = "wyz" -version = "0.5.1" +name = "write16" +version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05f360fc0b24296329c78fda852a1e9ae82de9cf7b27dae4b7f62f118f77b9ed" -dependencies = [ - "tap", -] +checksum = "d1890f4022759daae28ed4fe62859b1236caebfc61ede2f63ed4e695f3f6d936" + +[[package]] +name = "writeable" +version = "0.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e9df38ee2d2c3c5948ea468a8406ff0db0b29ae1ffde1bcf20ef305bcc95c51" [[package]] name = "x509-parser" @@ -5615,6 +5923,30 @@ dependencies = [ "time", ] +[[package]] +name = "yoke" +version = "0.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c5b1314b079b0930c31e3af543d8ee1757b1951ae1e1565ec704403a7240ca5" +dependencies = [ + "serde", + "stable_deref_trait", + "yoke-derive", + "zerofrom", +] + +[[package]] +name = "yoke-derive" +version = "0.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "28cc31741b18cb6f1d5ff12f5b7523e3d6eb0852bbbad19d73905511d9849b95" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.87", + "synstructure", +] + [[package]] name = "z32" version = "1.1.1" @@ -5639,7 +5971,28 @@ checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.87", +] + +[[package]] +name = "zerofrom" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91ec111ce797d0e0784a1116d0ddcdbea84322cd79e5d5ad173daeba4f93ab55" +dependencies = [ + "zerofrom-derive", +] + +[[package]] +name = "zerofrom-derive" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ea7b4a3637ea8669cedf0f1fd5c286a17f3de97b8dd5a70a6c167a1730e63a5" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.87", + "synstructure", ] [[package]] @@ -5647,3 +6000,25 @@ name = "zeroize" version = "1.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ced3678a2879b30306d323f4542626697a464a97c0a07c9aebf7ebca65cd4dde" + +[[package]] +name = "zerovec" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa2b893d79df23bfb12d5461018d408ea19dfafe76c2c7ef6d4eba614f8ff079" +dependencies = [ + "yoke", + "zerofrom", + "zerovec-derive", +] + +[[package]] +name = "zerovec-derive" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6eafa6dfb17584ea3e2bd6e76e0cc15ad7af12b09abdd1ca55961bed9b1063c6" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.87", +] diff --git a/Cargo.toml b/Cargo.toml index 42e25e02..99332df8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "iroh-ffi" -version = "0.27.0" +version = "0.28.1" edition = "2021" publish = false readme = "README.md" @@ -35,7 +35,7 @@ async-trait = "0.1.80" blake3 = "1.3.3" bytes = "1" data-encoding = { version = "2.3.3" } -iroh = { version = "0.27.0" } +iroh = { version = "0.28.1" } iroh-io = { version = "0.6" } libc = "0.2.141" num_cpus = { version = "1.15.0" } @@ -53,6 +53,7 @@ serde = { version = "1.0.196", features = ["derive"] } serde_json = "1.0.113" futures-lite = "2.3.0" derive_more = { version = "1.0.0", features = ["debug"] } +iroh-gossip = "0.28.1" [dev-dependencies] rand = "0.8" diff --git a/IrohLib.podspec b/IrohLib.podspec index c85e5f94..853f765f 100644 --- a/IrohLib.podspec +++ b/IrohLib.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |spec| spec.name = "IrohLib" - spec.version = "0.27.0" + spec.version = "0.28.1" spec.summary = "iroh is a toolkit for building distributed apps" spec.description = <<-DESC Build distributed apps that raise the status quo for your users. diff --git a/IrohLib/Sources/IrohLib/IrohLib.swift b/IrohLib/Sources/IrohLib/IrohLib.swift index e89432a6..529b82b3 100644 --- a/IrohLib/Sources/IrohLib/IrohLib.swift +++ b/IrohLib/Sources/IrohLib/IrohLib.swift @@ -170,10 +170,16 @@ private protocol FfiConverter { private protocol FfiConverterPrimitive: FfiConverter where FfiType == SwiftType {} extension FfiConverterPrimitive { + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public static func lift(_ value: FfiType) throws -> SwiftType { return value } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public static func lower(_ value: SwiftType) -> FfiType { return value } @@ -184,6 +190,9 @@ extension FfiConverterPrimitive { private protocol FfiConverterRustBuffer: FfiConverter where FfiType == RustBuffer {} extension FfiConverterRustBuffer { + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public static func lift(_ buf: RustBuffer) throws -> SwiftType { var reader = createReader(data: Data(rustBuffer: buf)) let value = try read(from: &reader) @@ -194,6 +203,9 @@ extension FfiConverterRustBuffer { return value } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public static func lower(_ value: SwiftType) -> RustBuffer { var writer = createWriter() write(value, into: &writer) @@ -383,6 +395,9 @@ private class UniffiHandleMap { // Public interface members begin here. +#if swift(>=5.8) + @_documentation(visibility: private) +#endif private struct FfiConverterUInt32: FfiConverterPrimitive { typealias FfiType = UInt32 typealias SwiftType = UInt32 @@ -396,6 +411,9 @@ private struct FfiConverterUInt32: FfiConverterPrimitive { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif private struct FfiConverterInt32: FfiConverterPrimitive { typealias FfiType = Int32 typealias SwiftType = Int32 @@ -409,6 +427,9 @@ private struct FfiConverterInt32: FfiConverterPrimitive { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif private struct FfiConverterUInt64: FfiConverterPrimitive { typealias FfiType = UInt64 typealias SwiftType = UInt64 @@ -422,6 +443,9 @@ private struct FfiConverterUInt64: FfiConverterPrimitive { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif private struct FfiConverterBool: FfiConverter { typealias FfiType = Int8 typealias SwiftType = Bool @@ -443,6 +467,9 @@ private struct FfiConverterBool: FfiConverter { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif private struct FfiConverterString: FfiConverter { typealias SwiftType = String typealias FfiType = RustBuffer @@ -481,6 +508,9 @@ private struct FfiConverterString: FfiConverter { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif private struct FfiConverterData: FfiConverterRustBuffer { typealias SwiftType = Data @@ -496,6 +526,9 @@ private struct FfiConverterData: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif private struct FfiConverterTimestamp: FfiConverterRustBuffer { typealias SwiftType = Date @@ -531,6 +564,9 @@ private struct FfiConverterTimestamp: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif private struct FfiConverterDuration: FfiConverterRustBuffer { typealias SwiftType = TimeInterval @@ -576,6 +612,9 @@ open class AddCallbackImpl: fileprivate let pointer: UnsafeMutableRawPointer! /// Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public struct NoPointer { public init() {} } @@ -587,15 +626,21 @@ open class AddCallbackImpl: self.pointer = pointer } - /// This constructor can be used to instantiate a fake object. - /// - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. - /// - /// - Warning: - /// Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + // This constructor can be used to instantiate a fake object. + // - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. + // + // - Warning: + // Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public init(noPointer _: NoPointer) { pointer = nil } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public func uniffiClonePointer() -> UnsafeMutableRawPointer { return try! rustCall { uniffi_iroh_ffi_fn_clone_addcallback(self.pointer, $0) } } @@ -695,6 +740,9 @@ private func uniffiCallbackInitAddCallback() { uniffi_iroh_ffi_fn_init_callback_vtable_addcallback(&UniffiCallbackInterfaceAddCallback.vtable) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeAddCallback: FfiConverter { fileprivate static var handleMap = UniffiHandleMap() @@ -730,10 +778,16 @@ public struct FfiConverterTypeAddCallback: FfiConverter { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeAddCallback_lift(_ pointer: UnsafeMutableRawPointer) throws -> AddCallback { return try FfiConverterTypeAddCallback.lift(pointer) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeAddCallback_lower(_ value: AddCallback) -> UnsafeMutableRawPointer { return FfiConverterTypeAddCallback.lower(value) } @@ -782,6 +836,9 @@ open class AddProgress: fileprivate let pointer: UnsafeMutableRawPointer! /// Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public struct NoPointer { public init() {} } @@ -793,15 +850,21 @@ open class AddProgress: self.pointer = pointer } - /// This constructor can be used to instantiate a fake object. - /// - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. - /// - /// - Warning: - /// Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + // This constructor can be used to instantiate a fake object. + // - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. + // + // - Warning: + // Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public init(noPointer _: NoPointer) { pointer = nil } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public func uniffiClonePointer() -> UnsafeMutableRawPointer { return try! rustCall { uniffi_iroh_ffi_fn_clone_addprogress(self.pointer, $0) } } @@ -871,6 +934,9 @@ open class AddProgress: } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeAddProgress: FfiConverter { typealias FfiType = UnsafeMutableRawPointer typealias SwiftType = AddProgress @@ -901,10 +967,16 @@ public struct FfiConverterTypeAddProgress: FfiConverter { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeAddProgress_lift(_ pointer: UnsafeMutableRawPointer) throws -> AddProgress { return try FfiConverterTypeAddProgress.lift(pointer) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeAddProgress_lower(_ value: AddProgress) -> UnsafeMutableRawPointer { return FfiConverterTypeAddProgress.lower(value) } @@ -933,6 +1005,9 @@ open class Author: fileprivate let pointer: UnsafeMutableRawPointer! /// Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public struct NoPointer { public init() {} } @@ -944,15 +1019,21 @@ open class Author: self.pointer = pointer } - /// This constructor can be used to instantiate a fake object. - /// - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. - /// - /// - Warning: - /// Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + // This constructor can be used to instantiate a fake object. + // - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. + // + // - Warning: + // Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public init(noPointer _: NoPointer) { pointer = nil } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public func uniffiClonePointer() -> UnsafeMutableRawPointer { return try! rustCall { uniffi_iroh_ffi_fn_clone_author(self.pointer, $0) } } @@ -996,6 +1077,9 @@ open class Author: } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeAuthor: FfiConverter { typealias FfiType = UnsafeMutableRawPointer typealias SwiftType = Author @@ -1026,10 +1110,16 @@ public struct FfiConverterTypeAuthor: FfiConverter { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeAuthor_lift(_ pointer: UnsafeMutableRawPointer) throws -> Author { return try FfiConverterTypeAuthor.lift(pointer) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeAuthor_lower(_ value: Author) -> UnsafeMutableRawPointer { return FfiConverterTypeAuthor.lower(value) } @@ -1054,6 +1144,9 @@ open class AuthorId: fileprivate let pointer: UnsafeMutableRawPointer! /// Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public struct NoPointer { public init() {} } @@ -1065,15 +1158,21 @@ open class AuthorId: self.pointer = pointer } - /// This constructor can be used to instantiate a fake object. - /// - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. - /// - /// - Warning: - /// Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + // This constructor can be used to instantiate a fake object. + // - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. + // + // - Warning: + // Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public init(noPointer _: NoPointer) { pointer = nil } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public func uniffiClonePointer() -> UnsafeMutableRawPointer { return try! rustCall { uniffi_iroh_ffi_fn_clone_authorid(self.pointer, $0) } } @@ -1118,6 +1217,9 @@ open class AuthorId: } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeAuthorId: FfiConverter { typealias FfiType = UnsafeMutableRawPointer typealias SwiftType = AuthorId @@ -1148,10 +1250,16 @@ public struct FfiConverterTypeAuthorId: FfiConverter { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeAuthorId_lift(_ pointer: UnsafeMutableRawPointer) throws -> AuthorId { return try FfiConverterTypeAuthorId.lift(pointer) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeAuthorId_lower(_ value: AuthorId) -> UnsafeMutableRawPointer { return FfiConverterTypeAuthorId.lower(value) } @@ -1224,6 +1332,9 @@ open class Authors: fileprivate let pointer: UnsafeMutableRawPointer! /// Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public struct NoPointer { public init() {} } @@ -1235,15 +1346,21 @@ open class Authors: self.pointer = pointer } - /// This constructor can be used to instantiate a fake object. - /// - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. - /// - /// - Warning: - /// Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + // This constructor can be used to instantiate a fake object. + // - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. + // + // - Warning: + // Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public init(noPointer _: NoPointer) { pointer = nil } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public func uniffiClonePointer() -> UnsafeMutableRawPointer { return try! rustCall { uniffi_iroh_ffi_fn_clone_authors(self.pointer, $0) } } @@ -1415,6 +1532,9 @@ open class Authors: } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeAuthors: FfiConverter { typealias FfiType = UnsafeMutableRawPointer typealias SwiftType = Authors @@ -1445,10 +1565,16 @@ public struct FfiConverterTypeAuthors: FfiConverter { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeAuthors_lift(_ pointer: UnsafeMutableRawPointer) throws -> Authors { return try FfiConverterTypeAuthors.lift(pointer) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeAuthors_lower(_ value: Authors) -> UnsafeMutableRawPointer { return FfiConverterTypeAuthors.lower(value) } @@ -1465,6 +1591,9 @@ open class BiStream: fileprivate let pointer: UnsafeMutableRawPointer! /// Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public struct NoPointer { public init() {} } @@ -1476,15 +1605,21 @@ open class BiStream: self.pointer = pointer } - /// This constructor can be used to instantiate a fake object. - /// - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. - /// - /// - Warning: - /// Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + // This constructor can be used to instantiate a fake object. + // - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. + // + // - Warning: + // Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public init(noPointer _: NoPointer) { pointer = nil } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public func uniffiClonePointer() -> UnsafeMutableRawPointer { return try! rustCall { uniffi_iroh_ffi_fn_clone_bistream(self.pointer, $0) } } @@ -1512,6 +1647,9 @@ open class BiStream: } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeBiStream: FfiConverter { typealias FfiType = UnsafeMutableRawPointer typealias SwiftType = BiStream @@ -1542,10 +1680,16 @@ public struct FfiConverterTypeBiStream: FfiConverter { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeBiStream_lift(_ pointer: UnsafeMutableRawPointer) throws -> BiStream { return try FfiConverterTypeBiStream.lift(pointer) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeBiStream_lower(_ value: BiStream) -> UnsafeMutableRawPointer { return FfiConverterTypeBiStream.lower(value) } @@ -1564,6 +1708,9 @@ open class BlobDownloadOptions: fileprivate let pointer: UnsafeMutableRawPointer! /// Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public struct NoPointer { public init() {} } @@ -1575,15 +1722,21 @@ open class BlobDownloadOptions: self.pointer = pointer } - /// This constructor can be used to instantiate a fake object. - /// - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. - /// - /// - Warning: - /// Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + // This constructor can be used to instantiate a fake object. + // - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. + // + // - Warning: + // Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public init(noPointer _: NoPointer) { pointer = nil } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public func uniffiClonePointer() -> UnsafeMutableRawPointer { return try! rustCall { uniffi_iroh_ffi_fn_clone_blobdownloadoptions(self.pointer, $0) } } @@ -1612,6 +1765,9 @@ open class BlobDownloadOptions: } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeBlobDownloadOptions: FfiConverter { typealias FfiType = UnsafeMutableRawPointer typealias SwiftType = BlobDownloadOptions @@ -1642,10 +1798,16 @@ public struct FfiConverterTypeBlobDownloadOptions: FfiConverter { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeBlobDownloadOptions_lift(_ pointer: UnsafeMutableRawPointer) throws -> BlobDownloadOptions { return try FfiConverterTypeBlobDownloadOptions.lift(pointer) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeBlobDownloadOptions_lower(_ value: BlobDownloadOptions) -> UnsafeMutableRawPointer { return FfiConverterTypeBlobDownloadOptions.lower(value) } @@ -1709,6 +1871,9 @@ open class BlobProvideEvent: fileprivate let pointer: UnsafeMutableRawPointer! /// Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public struct NoPointer { public init() {} } @@ -1720,15 +1885,21 @@ open class BlobProvideEvent: self.pointer = pointer } - /// This constructor can be used to instantiate a fake object. - /// - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. - /// - /// - Warning: - /// Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + // This constructor can be used to instantiate a fake object. + // - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. + // + // - Warning: + // Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public init(noPointer _: NoPointer) { pointer = nil } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public func uniffiClonePointer() -> UnsafeMutableRawPointer { return try! rustCall { uniffi_iroh_ffi_fn_clone_blobprovideevent(self.pointer, $0) } } @@ -1825,6 +1996,9 @@ open class BlobProvideEvent: } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeBlobProvideEvent: FfiConverter { typealias FfiType = UnsafeMutableRawPointer typealias SwiftType = BlobProvideEvent @@ -1855,10 +2029,16 @@ public struct FfiConverterTypeBlobProvideEvent: FfiConverter { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeBlobProvideEvent_lift(_ pointer: UnsafeMutableRawPointer) throws -> BlobProvideEvent { return try FfiConverterTypeBlobProvideEvent.lift(pointer) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeBlobProvideEvent_lower(_ value: BlobProvideEvent) -> UnsafeMutableRawPointer { return FfiConverterTypeBlobProvideEvent.lower(value) } @@ -1883,6 +2063,9 @@ open class BlobProvideEventCallbackImpl: fileprivate let pointer: UnsafeMutableRawPointer! /// Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public struct NoPointer { public init() {} } @@ -1894,15 +2077,21 @@ open class BlobProvideEventCallbackImpl: self.pointer = pointer } - /// This constructor can be used to instantiate a fake object. - /// - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. - /// - /// - Warning: - /// Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + // This constructor can be used to instantiate a fake object. + // - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. + // + // - Warning: + // Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public init(noPointer _: NoPointer) { pointer = nil } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public func uniffiClonePointer() -> UnsafeMutableRawPointer { return try! rustCall { uniffi_iroh_ffi_fn_clone_blobprovideeventcallback(self.pointer, $0) } } @@ -1994,6 +2183,9 @@ private func uniffiCallbackInitBlobProvideEventCallback() { uniffi_iroh_ffi_fn_init_callback_vtable_blobprovideeventcallback(&UniffiCallbackInterfaceBlobProvideEventCallback.vtable) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeBlobProvideEventCallback: FfiConverter { fileprivate static var handleMap = UniffiHandleMap() @@ -2029,10 +2221,16 @@ public struct FfiConverterTypeBlobProvideEventCallback: FfiConverter { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeBlobProvideEventCallback_lift(_ pointer: UnsafeMutableRawPointer) throws -> BlobProvideEventCallback { return try FfiConverterTypeBlobProvideEventCallback.lift(pointer) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeBlobProvideEventCallback_lower(_ value: BlobProvideEventCallback) -> UnsafeMutableRawPointer { return FfiConverterTypeBlobProvideEventCallback.lower(value) } @@ -2081,6 +2279,9 @@ open class BlobTicket: fileprivate let pointer: UnsafeMutableRawPointer! /// Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public struct NoPointer { public init() {} } @@ -2092,15 +2293,21 @@ open class BlobTicket: self.pointer = pointer } - /// This constructor can be used to instantiate a fake object. - /// - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. - /// - /// - Warning: - /// Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + // This constructor can be used to instantiate a fake object. + // - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. + // + // - Warning: + // Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public init(noPointer _: NoPointer) { pointer = nil } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public func uniffiClonePointer() -> UnsafeMutableRawPointer { return try! rustCall { uniffi_iroh_ffi_fn_clone_blobticket(self.pointer, $0) } } @@ -2177,6 +2384,9 @@ open class BlobTicket: } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeBlobTicket: FfiConverter { typealias FfiType = UnsafeMutableRawPointer typealias SwiftType = BlobTicket @@ -2207,10 +2417,16 @@ public struct FfiConverterTypeBlobTicket: FfiConverter { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeBlobTicket_lift(_ pointer: UnsafeMutableRawPointer) throws -> BlobTicket { return try FfiConverterTypeBlobTicket.lift(pointer) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeBlobTicket_lower(_ value: BlobTicket) -> UnsafeMutableRawPointer { return FfiConverterTypeBlobTicket.lower(value) } @@ -2345,6 +2561,9 @@ open class Blobs: fileprivate let pointer: UnsafeMutableRawPointer! /// Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public struct NoPointer { public init() {} } @@ -2356,15 +2575,21 @@ open class Blobs: self.pointer = pointer } - /// This constructor can be used to instantiate a fake object. - /// - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. - /// - /// - Warning: - /// Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + // This constructor can be used to instantiate a fake object. + // - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. + // + // - Warning: + // Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public init(noPointer _: NoPointer) { pointer = nil } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public func uniffiClonePointer() -> UnsafeMutableRawPointer { return try! rustCall { uniffi_iroh_ffi_fn_clone_blobs(self.pointer, $0) } } @@ -2733,6 +2958,9 @@ open class Blobs: } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeBlobs: FfiConverter { typealias FfiType = UnsafeMutableRawPointer typealias SwiftType = Blobs @@ -2763,10 +2991,16 @@ public struct FfiConverterTypeBlobs: FfiConverter { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeBlobs_lift(_ pointer: UnsafeMutableRawPointer) throws -> Blobs { return try FfiConverterTypeBlobs.lift(pointer) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeBlobs_lower(_ value: Blobs) -> UnsafeMutableRawPointer { return FfiConverterTypeBlobs.lower(value) } @@ -2815,6 +3049,9 @@ open class Collection: fileprivate let pointer: UnsafeMutableRawPointer! /// Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public struct NoPointer { public init() {} } @@ -2826,15 +3063,21 @@ open class Collection: self.pointer = pointer } - /// This constructor can be used to instantiate a fake object. - /// - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. - /// - /// - Warning: - /// Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + // This constructor can be used to instantiate a fake object. + // - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. + // + // - Warning: + // Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public init(noPointer _: NoPointer) { pointer = nil } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public func uniffiClonePointer() -> UnsafeMutableRawPointer { return try! rustCall { uniffi_iroh_ffi_fn_clone_collection(self.pointer, $0) } } @@ -2915,6 +3158,9 @@ open class Collection: } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeCollection: FfiConverter { typealias FfiType = UnsafeMutableRawPointer typealias SwiftType = Collection @@ -2945,10 +3191,16 @@ public struct FfiConverterTypeCollection: FfiConverter { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeCollection_lift(_ pointer: UnsafeMutableRawPointer) throws -> Collection { return try FfiConverterTypeCollection.lift(pointer) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeCollection_lower(_ value: Collection) -> UnsafeMutableRawPointer { return FfiConverterTypeCollection.lower(value) } @@ -2969,6 +3221,9 @@ open class Connecting: fileprivate let pointer: UnsafeMutableRawPointer! /// Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public struct NoPointer { public init() {} } @@ -2980,15 +3235,21 @@ open class Connecting: self.pointer = pointer } - /// This constructor can be used to instantiate a fake object. - /// - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. - /// - /// - Warning: - /// Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + // This constructor can be used to instantiate a fake object. + // - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. + // + // - Warning: + // Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public init(noPointer _: NoPointer) { pointer = nil } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public func uniffiClonePointer() -> UnsafeMutableRawPointer { return try! rustCall { uniffi_iroh_ffi_fn_clone_connecting(self.pointer, $0) } } @@ -3068,6 +3329,9 @@ open class Connecting: } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeConnecting: FfiConverter { typealias FfiType = UnsafeMutableRawPointer typealias SwiftType = Connecting @@ -3098,10 +3362,16 @@ public struct FfiConverterTypeConnecting: FfiConverter { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeConnecting_lift(_ pointer: UnsafeMutableRawPointer) throws -> Connecting { return try FfiConverterTypeConnecting.lift(pointer) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeConnecting_lower(_ value: Connecting) -> UnsafeMutableRawPointer { return FfiConverterTypeConnecting.lower(value) } @@ -3154,6 +3424,9 @@ open class Connection: fileprivate let pointer: UnsafeMutableRawPointer! /// Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public struct NoPointer { public init() {} } @@ -3165,15 +3438,21 @@ open class Connection: self.pointer = pointer } - /// This constructor can be used to instantiate a fake object. - /// - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. - /// - /// - Warning: - /// Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + // This constructor can be used to instantiate a fake object. + // - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. + // + // - Warning: + // Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public init(noPointer _: NoPointer) { pointer = nil } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public func uniffiClonePointer() -> UnsafeMutableRawPointer { return try! rustCall { uniffi_iroh_ffi_fn_clone_connection(self.pointer, $0) } } @@ -3381,6 +3660,9 @@ open class Connection: } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeConnection: FfiConverter { typealias FfiType = UnsafeMutableRawPointer typealias SwiftType = Connection @@ -3411,10 +3693,16 @@ public struct FfiConverterTypeConnection: FfiConverter { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeConnection_lift(_ pointer: UnsafeMutableRawPointer) throws -> Connection { return try FfiConverterTypeConnection.lift(pointer) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeConnection_lower(_ value: Connection) -> UnsafeMutableRawPointer { return FfiConverterTypeConnection.lower(value) } @@ -3453,6 +3741,9 @@ open class ConnectionType: fileprivate let pointer: UnsafeMutableRawPointer! /// Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public struct NoPointer { public init() {} } @@ -3464,15 +3755,21 @@ open class ConnectionType: self.pointer = pointer } - /// This constructor can be used to instantiate a fake object. - /// - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. - /// - /// - Warning: - /// Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + // This constructor can be used to instantiate a fake object. + // - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. + // + // - Warning: + // Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public init(noPointer _: NoPointer) { pointer = nil } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public func uniffiClonePointer() -> UnsafeMutableRawPointer { return try! rustCall { uniffi_iroh_ffi_fn_clone_connectiontype(self.pointer, $0) } } @@ -3524,6 +3821,9 @@ open class ConnectionType: } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeConnectionType: FfiConverter { typealias FfiType = UnsafeMutableRawPointer typealias SwiftType = ConnectionType @@ -3554,10 +3854,16 @@ public struct FfiConverterTypeConnectionType: FfiConverter { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeConnectionType_lift(_ pointer: UnsafeMutableRawPointer) throws -> ConnectionType { return try FfiConverterTypeConnectionType.lift(pointer) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeConnectionType_lower(_ value: ConnectionType) -> UnsafeMutableRawPointer { return FfiConverterTypeConnectionType.lower(value) } @@ -3596,6 +3902,9 @@ open class DirectAddrInfo: fileprivate let pointer: UnsafeMutableRawPointer! /// Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public struct NoPointer { public init() {} } @@ -3607,15 +3916,21 @@ open class DirectAddrInfo: self.pointer = pointer } - /// This constructor can be used to instantiate a fake object. - /// - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. - /// - /// - Warning: - /// Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + // This constructor can be used to instantiate a fake object. + // - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. + // + // - Warning: + // Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public init(noPointer _: NoPointer) { pointer = nil } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public func uniffiClonePointer() -> UnsafeMutableRawPointer { return try! rustCall { uniffi_iroh_ffi_fn_clone_directaddrinfo(self.pointer, $0) } } @@ -3667,6 +3982,9 @@ open class DirectAddrInfo: } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeDirectAddrInfo: FfiConverter { typealias FfiType = UnsafeMutableRawPointer typealias SwiftType = DirectAddrInfo @@ -3697,10 +4015,16 @@ public struct FfiConverterTypeDirectAddrInfo: FfiConverter { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDirectAddrInfo_lift(_ pointer: UnsafeMutableRawPointer) throws -> DirectAddrInfo { return try FfiConverterTypeDirectAddrInfo.lift(pointer) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDirectAddrInfo_lower(_ value: DirectAddrInfo) -> UnsafeMutableRawPointer { return FfiConverterTypeDirectAddrInfo.lower(value) } @@ -3817,6 +4141,9 @@ open class Doc: fileprivate let pointer: UnsafeMutableRawPointer! /// Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public struct NoPointer { public init() {} } @@ -3828,15 +4155,21 @@ open class Doc: self.pointer = pointer } - /// This constructor can be used to instantiate a fake object. - /// - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. - /// - /// - Warning: - /// Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + // This constructor can be used to instantiate a fake object. + // - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. + // + // - Warning: + // Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public init(noPointer _: NoPointer) { pointer = nil } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public func uniffiClonePointer() -> UnsafeMutableRawPointer { return try! rustCall { uniffi_iroh_ffi_fn_clone_doc(self.pointer, $0) } } @@ -4204,6 +4537,9 @@ open class Doc: } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeDoc: FfiConverter { typealias FfiType = UnsafeMutableRawPointer typealias SwiftType = Doc @@ -4234,10 +4570,16 @@ public struct FfiConverterTypeDoc: FfiConverter { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDoc_lift(_ pointer: UnsafeMutableRawPointer) throws -> Doc { return try FfiConverterTypeDoc.lift(pointer) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDoc_lower(_ value: Doc) -> UnsafeMutableRawPointer { return FfiConverterTypeDoc.lower(value) } @@ -4262,6 +4604,9 @@ open class DocExportFileCallbackImpl: fileprivate let pointer: UnsafeMutableRawPointer! /// Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public struct NoPointer { public init() {} } @@ -4273,15 +4618,21 @@ open class DocExportFileCallbackImpl: self.pointer = pointer } - /// This constructor can be used to instantiate a fake object. - /// - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. - /// - /// - Warning: - /// Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + // This constructor can be used to instantiate a fake object. + // - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. + // + // - Warning: + // Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public init(noPointer _: NoPointer) { pointer = nil } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public func uniffiClonePointer() -> UnsafeMutableRawPointer { return try! rustCall { uniffi_iroh_ffi_fn_clone_docexportfilecallback(self.pointer, $0) } } @@ -4373,6 +4724,9 @@ private func uniffiCallbackInitDocExportFileCallback() { uniffi_iroh_ffi_fn_init_callback_vtable_docexportfilecallback(&UniffiCallbackInterfaceDocExportFileCallback.vtable) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeDocExportFileCallback: FfiConverter { fileprivate static var handleMap = UniffiHandleMap() @@ -4408,10 +4762,16 @@ public struct FfiConverterTypeDocExportFileCallback: FfiConverter { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDocExportFileCallback_lift(_ pointer: UnsafeMutableRawPointer) throws -> DocExportFileCallback { return try FfiConverterTypeDocExportFileCallback.lift(pointer) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDocExportFileCallback_lower(_ value: DocExportFileCallback) -> UnsafeMutableRawPointer { return FfiConverterTypeDocExportFileCallback.lower(value) } @@ -4450,6 +4810,9 @@ open class DocExportProgress: fileprivate let pointer: UnsafeMutableRawPointer! /// Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public struct NoPointer { public init() {} } @@ -4461,15 +4824,21 @@ open class DocExportProgress: self.pointer = pointer } - /// This constructor can be used to instantiate a fake object. - /// - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. - /// - /// - Warning: - /// Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + // This constructor can be used to instantiate a fake object. + // - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. + // + // - Warning: + // Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public init(noPointer _: NoPointer) { pointer = nil } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public func uniffiClonePointer() -> UnsafeMutableRawPointer { return try! rustCall { uniffi_iroh_ffi_fn_clone_docexportprogress(self.pointer, $0) } } @@ -4521,6 +4890,9 @@ open class DocExportProgress: } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeDocExportProgress: FfiConverter { typealias FfiType = UnsafeMutableRawPointer typealias SwiftType = DocExportProgress @@ -4551,10 +4923,16 @@ public struct FfiConverterTypeDocExportProgress: FfiConverter { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDocExportProgress_lift(_ pointer: UnsafeMutableRawPointer) throws -> DocExportProgress { return try FfiConverterTypeDocExportProgress.lift(pointer) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDocExportProgress_lower(_ value: DocExportProgress) -> UnsafeMutableRawPointer { return FfiConverterTypeDocExportProgress.lower(value) } @@ -4579,6 +4957,9 @@ open class DocImportFileCallbackImpl: fileprivate let pointer: UnsafeMutableRawPointer! /// Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public struct NoPointer { public init() {} } @@ -4590,15 +4971,21 @@ open class DocImportFileCallbackImpl: self.pointer = pointer } - /// This constructor can be used to instantiate a fake object. - /// - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. - /// - /// - Warning: - /// Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + // This constructor can be used to instantiate a fake object. + // - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. + // + // - Warning: + // Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public init(noPointer _: NoPointer) { pointer = nil } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public func uniffiClonePointer() -> UnsafeMutableRawPointer { return try! rustCall { uniffi_iroh_ffi_fn_clone_docimportfilecallback(self.pointer, $0) } } @@ -4690,6 +5077,9 @@ private func uniffiCallbackInitDocImportFileCallback() { uniffi_iroh_ffi_fn_init_callback_vtable_docimportfilecallback(&UniffiCallbackInterfaceDocImportFileCallback.vtable) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeDocImportFileCallback: FfiConverter { fileprivate static var handleMap = UniffiHandleMap() @@ -4725,10 +5115,16 @@ public struct FfiConverterTypeDocImportFileCallback: FfiConverter { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDocImportFileCallback_lift(_ pointer: UnsafeMutableRawPointer) throws -> DocImportFileCallback { return try FfiConverterTypeDocImportFileCallback.lift(pointer) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDocImportFileCallback_lower(_ value: DocImportFileCallback) -> UnsafeMutableRawPointer { return FfiConverterTypeDocImportFileCallback.lower(value) } @@ -4777,6 +5173,9 @@ open class DocImportProgress: fileprivate let pointer: UnsafeMutableRawPointer! /// Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public struct NoPointer { public init() {} } @@ -4788,15 +5187,21 @@ open class DocImportProgress: self.pointer = pointer } - /// This constructor can be used to instantiate a fake object. - /// - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. - /// - /// - Warning: - /// Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + // This constructor can be used to instantiate a fake object. + // - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. + // + // - Warning: + // Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public init(noPointer _: NoPointer) { pointer = nil } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public func uniffiClonePointer() -> UnsafeMutableRawPointer { return try! rustCall { uniffi_iroh_ffi_fn_clone_docimportprogress(self.pointer, $0) } } @@ -4866,6 +5271,9 @@ open class DocImportProgress: } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeDocImportProgress: FfiConverter { typealias FfiType = UnsafeMutableRawPointer typealias SwiftType = DocImportProgress @@ -4896,10 +5304,16 @@ public struct FfiConverterTypeDocImportProgress: FfiConverter { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDocImportProgress_lift(_ pointer: UnsafeMutableRawPointer) throws -> DocImportProgress { return try FfiConverterTypeDocImportProgress.lift(pointer) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDocImportProgress_lower(_ value: DocImportProgress) -> UnsafeMutableRawPointer { return FfiConverterTypeDocImportProgress.lower(value) } @@ -4919,6 +5333,9 @@ open class DocTicket: fileprivate let pointer: UnsafeMutableRawPointer! /// Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public struct NoPointer { public init() {} } @@ -4930,15 +5347,21 @@ open class DocTicket: self.pointer = pointer } - /// This constructor can be used to instantiate a fake object. - /// - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. - /// - /// - Warning: - /// Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + // This constructor can be used to instantiate a fake object. + // - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. + // + // - Warning: + // Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public init(noPointer _: NoPointer) { pointer = nil } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public func uniffiClonePointer() -> UnsafeMutableRawPointer { return try! rustCall { uniffi_iroh_ffi_fn_clone_docticket(self.pointer, $0) } } @@ -4970,6 +5393,9 @@ open class DocTicket: } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeDocTicket: FfiConverter { typealias FfiType = UnsafeMutableRawPointer typealias SwiftType = DocTicket @@ -5000,10 +5426,16 @@ public struct FfiConverterTypeDocTicket: FfiConverter { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDocTicket_lift(_ pointer: UnsafeMutableRawPointer) throws -> DocTicket { return try FfiConverterTypeDocTicket.lift(pointer) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDocTicket_lower(_ value: DocTicket) -> UnsafeMutableRawPointer { return FfiConverterTypeDocTicket.lower(value) } @@ -5058,6 +5490,9 @@ open class Docs: fileprivate let pointer: UnsafeMutableRawPointer! /// Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public struct NoPointer { public init() {} } @@ -5069,15 +5504,21 @@ open class Docs: self.pointer = pointer } - /// This constructor can be used to instantiate a fake object. - /// - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. - /// - /// - Warning: - /// Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + // This constructor can be used to instantiate a fake object. + // - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. + // + // - Warning: + // Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public init(noPointer _: NoPointer) { pointer = nil } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public func uniffiClonePointer() -> UnsafeMutableRawPointer { return try! rustCall { uniffi_iroh_ffi_fn_clone_docs(self.pointer, $0) } } @@ -5217,6 +5658,9 @@ open class Docs: } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeDocs: FfiConverter { typealias FfiType = UnsafeMutableRawPointer typealias SwiftType = Docs @@ -5247,10 +5691,16 @@ public struct FfiConverterTypeDocs: FfiConverter { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDocs_lift(_ pointer: UnsafeMutableRawPointer) throws -> Docs { return try FfiConverterTypeDocs.lift(pointer) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDocs_lower(_ value: Docs) -> UnsafeMutableRawPointer { return FfiConverterTypeDocs.lower(value) } @@ -5275,6 +5725,9 @@ open class DownloadCallbackImpl: fileprivate let pointer: UnsafeMutableRawPointer! /// Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public struct NoPointer { public init() {} } @@ -5286,15 +5739,21 @@ open class DownloadCallbackImpl: self.pointer = pointer } - /// This constructor can be used to instantiate a fake object. - /// - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. - /// - /// - Warning: - /// Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + // This constructor can be used to instantiate a fake object. + // - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. + // + // - Warning: + // Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public init(noPointer _: NoPointer) { pointer = nil } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public func uniffiClonePointer() -> UnsafeMutableRawPointer { return try! rustCall { uniffi_iroh_ffi_fn_clone_downloadcallback(self.pointer, $0) } } @@ -5386,6 +5845,9 @@ private func uniffiCallbackInitDownloadCallback() { uniffi_iroh_ffi_fn_init_callback_vtable_downloadcallback(&UniffiCallbackInterfaceDownloadCallback.vtable) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeDownloadCallback: FfiConverter { fileprivate static var handleMap = UniffiHandleMap() @@ -5421,10 +5883,16 @@ public struct FfiConverterTypeDownloadCallback: FfiConverter { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDownloadCallback_lift(_ pointer: UnsafeMutableRawPointer) throws -> DownloadCallback { return try FfiConverterTypeDownloadCallback.lift(pointer) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDownloadCallback_lower(_ value: DownloadCallback) -> UnsafeMutableRawPointer { return FfiConverterTypeDownloadCallback.lower(value) } @@ -5443,6 +5911,9 @@ open class DownloadPolicy: fileprivate let pointer: UnsafeMutableRawPointer! /// Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public struct NoPointer { public init() {} } @@ -5454,15 +5925,21 @@ open class DownloadPolicy: self.pointer = pointer } - /// This constructor can be used to instantiate a fake object. - /// - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. - /// - /// - Warning: - /// Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + // This constructor can be used to instantiate a fake object. + // - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. + // + // - Warning: + // Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public init(noPointer _: NoPointer) { pointer = nil } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public func uniffiClonePointer() -> UnsafeMutableRawPointer { return try! rustCall { uniffi_iroh_ffi_fn_clone_downloadpolicy(self.pointer, $0) } } @@ -5520,6 +5997,9 @@ open class DownloadPolicy: } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeDownloadPolicy: FfiConverter { typealias FfiType = UnsafeMutableRawPointer typealias SwiftType = DownloadPolicy @@ -5550,10 +6030,16 @@ public struct FfiConverterTypeDownloadPolicy: FfiConverter { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDownloadPolicy_lift(_ pointer: UnsafeMutableRawPointer) throws -> DownloadPolicy { return try FfiConverterTypeDownloadPolicy.lift(pointer) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDownloadPolicy_lower(_ value: DownloadPolicy) -> UnsafeMutableRawPointer { return FfiConverterTypeDownloadPolicy.lower(value) } @@ -5613,6 +6099,9 @@ open class DownloadProgress: fileprivate let pointer: UnsafeMutableRawPointer! /// Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public struct NoPointer { public init() {} } @@ -5624,15 +6113,21 @@ open class DownloadProgress: self.pointer = pointer } - /// This constructor can be used to instantiate a fake object. - /// - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. - /// - /// - Warning: - /// Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + // This constructor can be used to instantiate a fake object. + // - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. + // + // - Warning: + // Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public init(noPointer _: NoPointer) { pointer = nil } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public func uniffiClonePointer() -> UnsafeMutableRawPointer { return try! rustCall { uniffi_iroh_ffi_fn_clone_downloadprogress(self.pointer, $0) } } @@ -5721,6 +6216,9 @@ open class DownloadProgress: } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeDownloadProgress: FfiConverter { typealias FfiType = UnsafeMutableRawPointer typealias SwiftType = DownloadProgress @@ -5751,10 +6249,16 @@ public struct FfiConverterTypeDownloadProgress: FfiConverter { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDownloadProgress_lift(_ pointer: UnsafeMutableRawPointer) throws -> DownloadProgress { return try FfiConverterTypeDownloadProgress.lift(pointer) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDownloadProgress_lower(_ value: DownloadProgress) -> UnsafeMutableRawPointer { return FfiConverterTypeDownloadProgress.lower(value) } @@ -5769,6 +6273,9 @@ open class Endpoint: fileprivate let pointer: UnsafeMutableRawPointer! /// Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public struct NoPointer { public init() {} } @@ -5780,15 +6287,21 @@ open class Endpoint: self.pointer = pointer } - /// This constructor can be used to instantiate a fake object. - /// - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. - /// - /// - Warning: - /// Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + // This constructor can be used to instantiate a fake object. + // - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. + // + // - Warning: + // Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public init(noPointer _: NoPointer) { pointer = nil } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public func uniffiClonePointer() -> UnsafeMutableRawPointer { return try! rustCall { uniffi_iroh_ffi_fn_clone_endpoint(self.pointer, $0) } } @@ -5821,6 +6334,9 @@ open class Endpoint: } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeEndpoint: FfiConverter { typealias FfiType = UnsafeMutableRawPointer typealias SwiftType = Endpoint @@ -5851,10 +6367,16 @@ public struct FfiConverterTypeEndpoint: FfiConverter { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeEndpoint_lift(_ pointer: UnsafeMutableRawPointer) throws -> Endpoint { return try FfiConverterTypeEndpoint.lift(pointer) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeEndpoint_lower(_ value: Endpoint) -> UnsafeMutableRawPointer { return FfiConverterTypeEndpoint.lower(value) } @@ -5919,6 +6441,9 @@ open class Entry: fileprivate let pointer: UnsafeMutableRawPointer! /// Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public struct NoPointer { public init() {} } @@ -5930,15 +6455,21 @@ open class Entry: self.pointer = pointer } - /// This constructor can be used to instantiate a fake object. - /// - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. - /// - /// - Warning: - /// Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + // This constructor can be used to instantiate a fake object. + // - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. + // + // - Warning: + // Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public init(noPointer _: NoPointer) { pointer = nil } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public func uniffiClonePointer() -> UnsafeMutableRawPointer { return try! rustCall { uniffi_iroh_ffi_fn_clone_entry(self.pointer, $0) } } @@ -6031,6 +6562,9 @@ open class Entry: } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeEntry: FfiConverter { typealias FfiType = UnsafeMutableRawPointer typealias SwiftType = Entry @@ -6061,10 +6595,16 @@ public struct FfiConverterTypeEntry: FfiConverter { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeEntry_lift(_ pointer: UnsafeMutableRawPointer) throws -> Entry { return try FfiConverterTypeEntry.lift(pointer) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeEntry_lower(_ value: Entry) -> UnsafeMutableRawPointer { return FfiConverterTypeEntry.lower(value) } @@ -6088,6 +6628,9 @@ open class FilterKind: fileprivate let pointer: UnsafeMutableRawPointer! /// Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public struct NoPointer { public init() {} } @@ -6099,15 +6642,21 @@ open class FilterKind: self.pointer = pointer } - /// This constructor can be used to instantiate a fake object. - /// - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. - /// - /// - Warning: - /// Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + // This constructor can be used to instantiate a fake object. + // - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. + // + // - Warning: + // Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public init(noPointer _: NoPointer) { pointer = nil } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public func uniffiClonePointer() -> UnsafeMutableRawPointer { return try! rustCall { uniffi_iroh_ffi_fn_clone_filterkind(self.pointer, $0) } } @@ -6155,6 +6704,9 @@ open class FilterKind: } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeFilterKind: FfiConverter { typealias FfiType = UnsafeMutableRawPointer typealias SwiftType = FilterKind @@ -6185,10 +6737,16 @@ public struct FfiConverterTypeFilterKind: FfiConverter { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeFilterKind_lift(_ pointer: UnsafeMutableRawPointer) throws -> FilterKind { return try FfiConverterTypeFilterKind.lift(pointer) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeFilterKind_lower(_ value: FilterKind) -> UnsafeMutableRawPointer { return FfiConverterTypeFilterKind.lower(value) } @@ -6209,6 +6767,9 @@ open class Gossip: fileprivate let pointer: UnsafeMutableRawPointer! /// Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public struct NoPointer { public init() {} } @@ -6220,15 +6781,21 @@ open class Gossip: self.pointer = pointer } - /// This constructor can be used to instantiate a fake object. - /// - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. - /// - /// - Warning: - /// Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + // This constructor can be used to instantiate a fake object. + // - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. + // + // - Warning: + // Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public init(noPointer _: NoPointer) { pointer = nil } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public func uniffiClonePointer() -> UnsafeMutableRawPointer { return try! rustCall { uniffi_iroh_ffi_fn_clone_gossip(self.pointer, $0) } } @@ -6261,6 +6828,9 @@ open class Gossip: } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeGossip: FfiConverter { typealias FfiType = UnsafeMutableRawPointer typealias SwiftType = Gossip @@ -6291,10 +6861,16 @@ public struct FfiConverterTypeGossip: FfiConverter { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeGossip_lift(_ pointer: UnsafeMutableRawPointer) throws -> Gossip { return try FfiConverterTypeGossip.lift(pointer) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeGossip_lower(_ value: Gossip) -> UnsafeMutableRawPointer { return FfiConverterTypeGossip.lower(value) } @@ -6309,6 +6885,9 @@ open class GossipMessageCallbackImpl: fileprivate let pointer: UnsafeMutableRawPointer! /// Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public struct NoPointer { public init() {} } @@ -6320,15 +6899,21 @@ open class GossipMessageCallbackImpl: self.pointer = pointer } - /// This constructor can be used to instantiate a fake object. - /// - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. - /// - /// - Warning: - /// Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + // This constructor can be used to instantiate a fake object. + // - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. + // + // - Warning: + // Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public init(noPointer _: NoPointer) { pointer = nil } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public func uniffiClonePointer() -> UnsafeMutableRawPointer { return try! rustCall { uniffi_iroh_ffi_fn_clone_gossipmessagecallback(self.pointer, $0) } } @@ -6420,6 +7005,9 @@ private func uniffiCallbackInitGossipMessageCallback() { uniffi_iroh_ffi_fn_init_callback_vtable_gossipmessagecallback(&UniffiCallbackInterfaceGossipMessageCallback.vtable) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeGossipMessageCallback: FfiConverter { fileprivate static var handleMap = UniffiHandleMap() @@ -6455,10 +7043,16 @@ public struct FfiConverterTypeGossipMessageCallback: FfiConverter { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeGossipMessageCallback_lift(_ pointer: UnsafeMutableRawPointer) throws -> GossipMessageCallback { return try FfiConverterTypeGossipMessageCallback.lift(pointer) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeGossipMessageCallback_lower(_ value: GossipMessageCallback) -> UnsafeMutableRawPointer { return FfiConverterTypeGossipMessageCallback.lower(value) } @@ -6493,6 +7087,9 @@ open class Hash: fileprivate let pointer: UnsafeMutableRawPointer! /// Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public struct NoPointer { public init() {} } @@ -6504,15 +7101,21 @@ open class Hash: self.pointer = pointer } - /// This constructor can be used to instantiate a fake object. - /// - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. - /// - /// - Warning: - /// Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + // This constructor can be used to instantiate a fake object. + // - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. + // + // - Warning: + // Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public init(noPointer _: NoPointer) { pointer = nil } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public func uniffiClonePointer() -> UnsafeMutableRawPointer { return try! rustCall { uniffi_iroh_ffi_fn_clone_hash(self.pointer, $0) } } @@ -6597,6 +7200,9 @@ open class Hash: } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeHash: FfiConverter { typealias FfiType = UnsafeMutableRawPointer typealias SwiftType = Hash @@ -6627,10 +7233,16 @@ public struct FfiConverterTypeHash: FfiConverter { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeHash_lift(_ pointer: UnsafeMutableRawPointer) throws -> Hash { return try FfiConverterTypeHash.lift(pointer) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeHash_lower(_ value: Hash) -> UnsafeMutableRawPointer { return FfiConverterTypeHash.lower(value) } @@ -6684,6 +7296,9 @@ open class Iroh: fileprivate let pointer: UnsafeMutableRawPointer! /// Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public struct NoPointer { public init() {} } @@ -6695,15 +7310,21 @@ open class Iroh: self.pointer = pointer } - /// This constructor can be used to instantiate a fake object. - /// - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. - /// - /// - Warning: - /// Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + // This constructor can be used to instantiate a fake object. + // - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. + // + // - Warning: + // Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public init(noPointer _: NoPointer) { pointer = nil } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public func uniffiClonePointer() -> UnsafeMutableRawPointer { return try! rustCall { uniffi_iroh_ffi_fn_clone_iroh(self.pointer, $0) } } @@ -6876,6 +7497,9 @@ open class Iroh: } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeIroh: FfiConverter { typealias FfiType = UnsafeMutableRawPointer typealias SwiftType = Iroh @@ -6906,10 +7530,16 @@ public struct FfiConverterTypeIroh: FfiConverter { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeIroh_lift(_ pointer: UnsafeMutableRawPointer) throws -> Iroh { return try FfiConverterTypeIroh.lift(pointer) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeIroh_lower(_ value: Iroh) -> UnsafeMutableRawPointer { return FfiConverterTypeIroh.lower(value) } @@ -6933,6 +7563,9 @@ open class IrohError: fileprivate let pointer: UnsafeMutableRawPointer! /// Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public struct NoPointer { public init() {} } @@ -6944,15 +7577,21 @@ open class IrohError: self.pointer = pointer } - /// This constructor can be used to instantiate a fake object. - /// - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. - /// - /// - Warning: - /// Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + // This constructor can be used to instantiate a fake object. + // - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. + // + // - Warning: + // Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public init(noPointer _: NoPointer) { pointer = nil } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public func uniffiClonePointer() -> UnsafeMutableRawPointer { return try! rustCall { uniffi_iroh_ffi_fn_clone_iroherror(self.pointer, $0) } } @@ -6982,6 +7621,9 @@ open class IrohError: } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeIrohError: FfiConverter { typealias FfiType = UnsafeMutableRawPointer typealias SwiftType = IrohError @@ -7018,6 +7660,9 @@ extension IrohError: Foundation.LocalizedError { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeIrohError__as_error: FfiConverterRustBuffer { public static func lift(_ buf: RustBuffer) throws -> IrohError { var reader = createReader(data: Data(rustBuffer: buf)) @@ -7037,10 +7682,16 @@ public struct FfiConverterTypeIrohError__as_error: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeIrohError_lift(_ pointer: UnsafeMutableRawPointer) throws -> IrohError { return try FfiConverterTypeIrohError.lift(pointer) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeIrohError_lower(_ value: IrohError) -> UnsafeMutableRawPointer { return FfiConverterTypeIrohError.lower(value) } @@ -7094,6 +7745,9 @@ open class LiveEvent: fileprivate let pointer: UnsafeMutableRawPointer! /// Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public struct NoPointer { public init() {} } @@ -7105,15 +7759,21 @@ open class LiveEvent: self.pointer = pointer } - /// This constructor can be used to instantiate a fake object. - /// - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. - /// - /// - Warning: - /// Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + // This constructor can be used to instantiate a fake object. + // - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. + // + // - Warning: + // Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public init(noPointer _: NoPointer) { pointer = nil } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public func uniffiClonePointer() -> UnsafeMutableRawPointer { return try! rustCall { uniffi_iroh_ffi_fn_clone_liveevent(self.pointer, $0) } } @@ -7192,6 +7852,9 @@ open class LiveEvent: } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeLiveEvent: FfiConverter { typealias FfiType = UnsafeMutableRawPointer typealias SwiftType = LiveEvent @@ -7222,10 +7885,16 @@ public struct FfiConverterTypeLiveEvent: FfiConverter { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeLiveEvent_lift(_ pointer: UnsafeMutableRawPointer) throws -> LiveEvent { return try FfiConverterTypeLiveEvent.lift(pointer) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeLiveEvent_lower(_ value: LiveEvent) -> UnsafeMutableRawPointer { return FfiConverterTypeLiveEvent.lower(value) } @@ -7256,6 +7925,9 @@ open class Message: fileprivate let pointer: UnsafeMutableRawPointer! /// Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public struct NoPointer { public init() {} } @@ -7267,15 +7939,21 @@ open class Message: self.pointer = pointer } - /// This constructor can be used to instantiate a fake object. - /// - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. - /// - /// - Warning: - /// Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + // This constructor can be used to instantiate a fake object. + // - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. + // + // - Warning: + // Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public init(noPointer _: NoPointer) { pointer = nil } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public func uniffiClonePointer() -> UnsafeMutableRawPointer { return try! rustCall { uniffi_iroh_ffi_fn_clone_message(self.pointer, $0) } } @@ -7327,6 +8005,9 @@ open class Message: } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeMessage: FfiConverter { typealias FfiType = UnsafeMutableRawPointer typealias SwiftType = Message @@ -7357,10 +8038,16 @@ public struct FfiConverterTypeMessage: FfiConverter { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeMessage_lift(_ pointer: UnsafeMutableRawPointer) throws -> Message { return try FfiConverterTypeMessage.lift(pointer) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeMessage_lower(_ value: Message) -> UnsafeMutableRawPointer { return FfiConverterTypeMessage.lower(value) } @@ -7409,6 +8096,9 @@ open class Net: fileprivate let pointer: UnsafeMutableRawPointer! /// Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public struct NoPointer { public init() {} } @@ -7420,15 +8110,21 @@ open class Net: self.pointer = pointer } - /// This constructor can be used to instantiate a fake object. - /// - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. - /// - /// - Warning: - /// Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + // This constructor can be used to instantiate a fake object. + // - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. + // + // - Warning: + // Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public init(noPointer _: NoPointer) { pointer = nil } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public func uniffiClonePointer() -> UnsafeMutableRawPointer { return try! rustCall { uniffi_iroh_ffi_fn_clone_net(self.pointer, $0) } } @@ -7560,6 +8256,9 @@ open class Net: } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeNet: FfiConverter { typealias FfiType = UnsafeMutableRawPointer typealias SwiftType = Net @@ -7590,10 +8289,16 @@ public struct FfiConverterTypeNet: FfiConverter { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeNet_lift(_ pointer: UnsafeMutableRawPointer) throws -> Net { return try FfiConverterTypeNet.lift(pointer) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeNet_lower(_ value: Net) -> UnsafeMutableRawPointer { return FfiConverterTypeNet.lower(value) } @@ -7634,6 +8339,9 @@ open class Node: fileprivate let pointer: UnsafeMutableRawPointer! /// Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public struct NoPointer { public init() {} } @@ -7645,15 +8353,21 @@ open class Node: self.pointer = pointer } - /// This constructor can be used to instantiate a fake object. - /// - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. - /// - /// - Warning: - /// Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + // This constructor can be used to instantiate a fake object. + // - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. + // + // - Warning: + // Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public init(noPointer _: NoPointer) { pointer = nil } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public func uniffiClonePointer() -> UnsafeMutableRawPointer { return try! rustCall { uniffi_iroh_ffi_fn_clone_node(self.pointer, $0) } } @@ -7742,6 +8456,9 @@ open class Node: } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeNode: FfiConverter { typealias FfiType = UnsafeMutableRawPointer typealias SwiftType = Node @@ -7772,10 +8489,16 @@ public struct FfiConverterTypeNode: FfiConverter { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeNode_lift(_ pointer: UnsafeMutableRawPointer) throws -> Node { return try FfiConverterTypeNode.lift(pointer) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeNode_lower(_ value: Node) -> UnsafeMutableRawPointer { return FfiConverterTypeNode.lower(value) } @@ -7809,6 +8532,9 @@ open class NodeAddr: fileprivate let pointer: UnsafeMutableRawPointer! /// Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public struct NoPointer { public init() {} } @@ -7820,15 +8546,21 @@ open class NodeAddr: self.pointer = pointer } - /// This constructor can be used to instantiate a fake object. - /// - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. - /// - /// - Warning: - /// Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + // This constructor can be used to instantiate a fake object. + // - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. + // + // - Warning: + // Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public init(noPointer _: NoPointer) { pointer = nil } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public func uniffiClonePointer() -> UnsafeMutableRawPointer { return try! rustCall { uniffi_iroh_ffi_fn_clone_nodeaddr(self.pointer, $0) } } @@ -7885,6 +8617,9 @@ open class NodeAddr: } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeNodeAddr: FfiConverter { typealias FfiType = UnsafeMutableRawPointer typealias SwiftType = NodeAddr @@ -7915,10 +8650,16 @@ public struct FfiConverterTypeNodeAddr: FfiConverter { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeNodeAddr_lift(_ pointer: UnsafeMutableRawPointer) throws -> NodeAddr { return try FfiConverterTypeNodeAddr.lift(pointer) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeNodeAddr_lower(_ value: NodeAddr) -> UnsafeMutableRawPointer { return FfiConverterTypeNodeAddr.lower(value) } @@ -7957,6 +8698,9 @@ open class NodeStatus: fileprivate let pointer: UnsafeMutableRawPointer! /// Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public struct NoPointer { public init() {} } @@ -7968,15 +8712,21 @@ open class NodeStatus: self.pointer = pointer } - /// This constructor can be used to instantiate a fake object. - /// - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. - /// - /// - Warning: - /// Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + // This constructor can be used to instantiate a fake object. + // - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. + // + // - Warning: + // Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public init(noPointer _: NoPointer) { pointer = nil } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public func uniffiClonePointer() -> UnsafeMutableRawPointer { return try! rustCall { uniffi_iroh_ffi_fn_clone_nodestatus(self.pointer, $0) } } @@ -8028,6 +8778,9 @@ open class NodeStatus: } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeNodeStatus: FfiConverter { typealias FfiType = UnsafeMutableRawPointer typealias SwiftType = NodeStatus @@ -8058,10 +8811,16 @@ public struct FfiConverterTypeNodeStatus: FfiConverter { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeNodeStatus_lift(_ pointer: UnsafeMutableRawPointer) throws -> NodeStatus { return try FfiConverterTypeNodeStatus.lift(pointer) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeNodeStatus_lower(_ value: NodeStatus) -> UnsafeMutableRawPointer { return FfiConverterTypeNodeStatus.lower(value) } @@ -8076,6 +8835,9 @@ open class ProtocolCreatorImpl: fileprivate let pointer: UnsafeMutableRawPointer! /// Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public struct NoPointer { public init() {} } @@ -8087,15 +8849,21 @@ open class ProtocolCreatorImpl: self.pointer = pointer } - /// This constructor can be used to instantiate a fake object. - /// - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. - /// - /// - Warning: - /// Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + // This constructor can be used to instantiate a fake object. + // - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. + // + // - Warning: + // Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public init(noPointer _: NoPointer) { pointer = nil } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public func uniffiClonePointer() -> UnsafeMutableRawPointer { return try! rustCall { uniffi_iroh_ffi_fn_clone_protocolcreator(self.pointer, $0) } } @@ -8162,6 +8930,9 @@ private func uniffiCallbackInitProtocolCreator() { uniffi_iroh_ffi_fn_init_callback_vtable_protocolcreator(&UniffiCallbackInterfaceProtocolCreator.vtable) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeProtocolCreator: FfiConverter { fileprivate static var handleMap = UniffiHandleMap() @@ -8197,10 +8968,16 @@ public struct FfiConverterTypeProtocolCreator: FfiConverter { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeProtocolCreator_lift(_ pointer: UnsafeMutableRawPointer) throws -> ProtocolCreator { return try FfiConverterTypeProtocolCreator.lift(pointer) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeProtocolCreator_lower(_ value: ProtocolCreator) -> UnsafeMutableRawPointer { return FfiConverterTypeProtocolCreator.lower(value) } @@ -8217,6 +8994,9 @@ open class ProtocolHandlerImpl: fileprivate let pointer: UnsafeMutableRawPointer! /// Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public struct NoPointer { public init() {} } @@ -8228,15 +9008,21 @@ open class ProtocolHandlerImpl: self.pointer = pointer } - /// This constructor can be used to instantiate a fake object. - /// - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. - /// - /// - Warning: - /// Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + // This constructor can be used to instantiate a fake object. + // - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. + // + // - Warning: + // Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public init(noPointer _: NoPointer) { pointer = nil } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public func uniffiClonePointer() -> UnsafeMutableRawPointer { return try! rustCall { uniffi_iroh_ffi_fn_clone_protocolhandler(self.pointer, $0) } } @@ -8382,6 +9168,9 @@ private func uniffiCallbackInitProtocolHandler() { uniffi_iroh_ffi_fn_init_callback_vtable_protocolhandler(&UniffiCallbackInterfaceProtocolHandler.vtable) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeProtocolHandler: FfiConverter { fileprivate static var handleMap = UniffiHandleMap() @@ -8417,10 +9206,16 @@ public struct FfiConverterTypeProtocolHandler: FfiConverter { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeProtocolHandler_lift(_ pointer: UnsafeMutableRawPointer) throws -> ProtocolHandler { return try FfiConverterTypeProtocolHandler.lift(pointer) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeProtocolHandler_lower(_ value: ProtocolHandler) -> UnsafeMutableRawPointer { return FfiConverterTypeProtocolHandler.lower(value) } @@ -8462,6 +9257,9 @@ open class PublicKey: fileprivate let pointer: UnsafeMutableRawPointer! /// Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public struct NoPointer { public init() {} } @@ -8473,15 +9271,21 @@ open class PublicKey: self.pointer = pointer } - /// This constructor can be used to instantiate a fake object. - /// - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. - /// - /// - Warning: - /// Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + // This constructor can be used to instantiate a fake object. + // - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. + // + // - Warning: + // Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public init(noPointer _: NoPointer) { pointer = nil } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public func uniffiClonePointer() -> UnsafeMutableRawPointer { return try! rustCall { uniffi_iroh_ffi_fn_clone_publickey(self.pointer, $0) } } @@ -8556,6 +9360,9 @@ open class PublicKey: } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypePublicKey: FfiConverter { typealias FfiType = UnsafeMutableRawPointer typealias SwiftType = PublicKey @@ -8586,10 +9393,16 @@ public struct FfiConverterTypePublicKey: FfiConverter { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypePublicKey_lift(_ pointer: UnsafeMutableRawPointer) throws -> PublicKey { return try FfiConverterTypePublicKey.lift(pointer) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypePublicKey_lower(_ value: PublicKey) -> UnsafeMutableRawPointer { return FfiConverterTypePublicKey.lower(value) } @@ -8622,6 +9435,9 @@ open class Query: fileprivate let pointer: UnsafeMutableRawPointer! /// Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public struct NoPointer { public init() {} } @@ -8633,15 +9449,21 @@ open class Query: self.pointer = pointer } - /// This constructor can be used to instantiate a fake object. - /// - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. - /// - /// - Warning: - /// Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + // This constructor can be used to instantiate a fake object. + // - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. + // + // - Warning: + // Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public init(noPointer _: NoPointer) { pointer = nil } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public func uniffiClonePointer() -> UnsafeMutableRawPointer { return try! rustCall { uniffi_iroh_ffi_fn_clone_query(self.pointer, $0) } } @@ -8823,6 +9645,9 @@ open class Query: } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeQuery: FfiConverter { typealias FfiType = UnsafeMutableRawPointer typealias SwiftType = Query @@ -8853,10 +9678,16 @@ public struct FfiConverterTypeQuery: FfiConverter { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeQuery_lift(_ pointer: UnsafeMutableRawPointer) throws -> Query { return try FfiConverterTypeQuery.lift(pointer) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeQuery_lower(_ value: Query) -> UnsafeMutableRawPointer { return FfiConverterTypeQuery.lower(value) } @@ -8885,6 +9716,9 @@ open class RangeSpec: fileprivate let pointer: UnsafeMutableRawPointer! /// Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public struct NoPointer { public init() {} } @@ -8896,15 +9730,21 @@ open class RangeSpec: self.pointer = pointer } - /// This constructor can be used to instantiate a fake object. - /// - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. - /// - /// - Warning: - /// Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + // This constructor can be used to instantiate a fake object. + // - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. + // + // - Warning: + // Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public init(noPointer _: NoPointer) { pointer = nil } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public func uniffiClonePointer() -> UnsafeMutableRawPointer { return try! rustCall { uniffi_iroh_ffi_fn_clone_rangespec(self.pointer, $0) } } @@ -8938,6 +9778,9 @@ open class RangeSpec: } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeRangeSpec: FfiConverter { typealias FfiType = UnsafeMutableRawPointer typealias SwiftType = RangeSpec @@ -8968,10 +9811,16 @@ public struct FfiConverterTypeRangeSpec: FfiConverter { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeRangeSpec_lift(_ pointer: UnsafeMutableRawPointer) throws -> RangeSpec { return try FfiConverterTypeRangeSpec.lift(pointer) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeRangeSpec_lower(_ value: RangeSpec) -> UnsafeMutableRawPointer { return FfiConverterTypeRangeSpec.lower(value) } @@ -8990,6 +9839,9 @@ open class ReadAtLen: fileprivate let pointer: UnsafeMutableRawPointer! /// Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public struct NoPointer { public init() {} } @@ -9001,15 +9853,21 @@ open class ReadAtLen: self.pointer = pointer } - /// This constructor can be used to instantiate a fake object. - /// - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. - /// - /// - Warning: - /// Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + // This constructor can be used to instantiate a fake object. + // - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. + // + // - Warning: + // Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public init(noPointer _: NoPointer) { pointer = nil } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public func uniffiClonePointer() -> UnsafeMutableRawPointer { return try! rustCall { uniffi_iroh_ffi_fn_clone_readatlen(self.pointer, $0) } } @@ -9048,6 +9906,9 @@ open class ReadAtLen: } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeReadAtLen: FfiConverter { typealias FfiType = UnsafeMutableRawPointer typealias SwiftType = ReadAtLen @@ -9078,10 +9939,16 @@ public struct FfiConverterTypeReadAtLen: FfiConverter { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeReadAtLen_lift(_ pointer: UnsafeMutableRawPointer) throws -> ReadAtLen { return try FfiConverterTypeReadAtLen.lift(pointer) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeReadAtLen_lower(_ value: ReadAtLen) -> UnsafeMutableRawPointer { return FfiConverterTypeReadAtLen.lower(value) } @@ -9106,6 +9973,9 @@ open class RecvStream: fileprivate let pointer: UnsafeMutableRawPointer! /// Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public struct NoPointer { public init() {} } @@ -9117,15 +9987,21 @@ open class RecvStream: self.pointer = pointer } - /// This constructor can be used to instantiate a fake object. - /// - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. - /// - /// - Warning: - /// Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + // This constructor can be used to instantiate a fake object. + // - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. + // + // - Warning: + // Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public init(noPointer _: NoPointer) { pointer = nil } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public func uniffiClonePointer() -> UnsafeMutableRawPointer { return try! rustCall { uniffi_iroh_ffi_fn_clone_recvstream(self.pointer, $0) } } @@ -9241,6 +10117,9 @@ open class RecvStream: } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeRecvStream: FfiConverter { typealias FfiType = UnsafeMutableRawPointer typealias SwiftType = RecvStream @@ -9271,10 +10150,16 @@ public struct FfiConverterTypeRecvStream: FfiConverter { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeRecvStream_lift(_ pointer: UnsafeMutableRawPointer) throws -> RecvStream { return try FfiConverterTypeRecvStream.lift(pointer) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeRecvStream_lower(_ value: RecvStream) -> UnsafeMutableRawPointer { return FfiConverterTypeRecvStream.lower(value) } @@ -9303,6 +10188,9 @@ open class SendStream: fileprivate let pointer: UnsafeMutableRawPointer! /// Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public struct NoPointer { public init() {} } @@ -9314,15 +10202,21 @@ open class SendStream: self.pointer = pointer } - /// This constructor can be used to instantiate a fake object. - /// - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. - /// - /// - Warning: - /// Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + // This constructor can be used to instantiate a fake object. + // - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. + // + // - Warning: + // Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public init(noPointer _: NoPointer) { pointer = nil } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public func uniffiClonePointer() -> UnsafeMutableRawPointer { return try! rustCall { uniffi_iroh_ffi_fn_clone_sendstream(self.pointer, $0) } } @@ -9470,6 +10364,9 @@ open class SendStream: } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeSendStream: FfiConverter { typealias FfiType = UnsafeMutableRawPointer typealias SwiftType = SendStream @@ -9500,10 +10397,16 @@ public struct FfiConverterTypeSendStream: FfiConverter { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeSendStream_lift(_ pointer: UnsafeMutableRawPointer) throws -> SendStream { return try FfiConverterTypeSendStream.lift(pointer) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeSendStream_lower(_ value: SendStream) -> UnsafeMutableRawPointer { return FfiConverterTypeSendStream.lower(value) } @@ -9537,6 +10440,9 @@ open class Sender: fileprivate let pointer: UnsafeMutableRawPointer! /// Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public struct NoPointer { public init() {} } @@ -9548,15 +10454,21 @@ open class Sender: self.pointer = pointer } - /// This constructor can be used to instantiate a fake object. - /// - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. - /// - /// - Warning: - /// Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + // This constructor can be used to instantiate a fake object. + // - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. + // + // - Warning: + // Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public init(noPointer _: NoPointer) { pointer = nil } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public func uniffiClonePointer() -> UnsafeMutableRawPointer { return try! rustCall { uniffi_iroh_ffi_fn_clone_sender(self.pointer, $0) } } @@ -9631,6 +10543,9 @@ open class Sender: } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeSender: FfiConverter { typealias FfiType = UnsafeMutableRawPointer typealias SwiftType = Sender @@ -9661,10 +10576,16 @@ public struct FfiConverterTypeSender: FfiConverter { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeSender_lift(_ pointer: UnsafeMutableRawPointer) throws -> Sender { return try FfiConverterTypeSender.lift(pointer) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeSender_lower(_ value: Sender) -> UnsafeMutableRawPointer { return FfiConverterTypeSender.lower(value) } @@ -9683,6 +10604,9 @@ open class SetTagOption: fileprivate let pointer: UnsafeMutableRawPointer! /// Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public struct NoPointer { public init() {} } @@ -9694,15 +10618,21 @@ open class SetTagOption: self.pointer = pointer } - /// This constructor can be used to instantiate a fake object. - /// - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. - /// - /// - Warning: - /// Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + // This constructor can be used to instantiate a fake object. + // - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. + // + // - Warning: + // Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public init(noPointer _: NoPointer) { pointer = nil } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public func uniffiClonePointer() -> UnsafeMutableRawPointer { return try! rustCall { uniffi_iroh_ffi_fn_clone_settagoption(self.pointer, $0) } } @@ -9739,6 +10669,9 @@ open class SetTagOption: } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeSetTagOption: FfiConverter { typealias FfiType = UnsafeMutableRawPointer typealias SwiftType = SetTagOption @@ -9769,10 +10702,16 @@ public struct FfiConverterTypeSetTagOption: FfiConverter { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeSetTagOption_lift(_ pointer: UnsafeMutableRawPointer) throws -> SetTagOption { return try FfiConverterTypeSetTagOption.lift(pointer) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeSetTagOption_lower(_ value: SetTagOption) -> UnsafeMutableRawPointer { return FfiConverterTypeSetTagOption.lower(value) } @@ -9797,6 +10736,9 @@ open class SubscribeCallbackImpl: fileprivate let pointer: UnsafeMutableRawPointer! /// Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public struct NoPointer { public init() {} } @@ -9808,15 +10750,21 @@ open class SubscribeCallbackImpl: self.pointer = pointer } - /// This constructor can be used to instantiate a fake object. - /// - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. - /// - /// - Warning: - /// Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + // This constructor can be used to instantiate a fake object. + // - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. + // + // - Warning: + // Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public init(noPointer _: NoPointer) { pointer = nil } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public func uniffiClonePointer() -> UnsafeMutableRawPointer { return try! rustCall { uniffi_iroh_ffi_fn_clone_subscribecallback(self.pointer, $0) } } @@ -9908,6 +10856,9 @@ private func uniffiCallbackInitSubscribeCallback() { uniffi_iroh_ffi_fn_init_callback_vtable_subscribecallback(&UniffiCallbackInterfaceSubscribeCallback.vtable) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeSubscribeCallback: FfiConverter { fileprivate static var handleMap = UniffiHandleMap() @@ -9943,10 +10894,16 @@ public struct FfiConverterTypeSubscribeCallback: FfiConverter { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeSubscribeCallback_lift(_ pointer: UnsafeMutableRawPointer) throws -> SubscribeCallback { return try FfiConverterTypeSubscribeCallback.lift(pointer) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeSubscribeCallback_lower(_ value: SubscribeCallback) -> UnsafeMutableRawPointer { return FfiConverterTypeSubscribeCallback.lower(value) } @@ -9978,6 +10935,9 @@ open class Tags: fileprivate let pointer: UnsafeMutableRawPointer! /// Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public struct NoPointer { public init() {} } @@ -9989,15 +10949,21 @@ open class Tags: self.pointer = pointer } - /// This constructor can be used to instantiate a fake object. - /// - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. - /// - /// - Warning: - /// Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + // This constructor can be used to instantiate a fake object. + // - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. + // + // - Warning: + // Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public init(noPointer _: NoPointer) { pointer = nil } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public func uniffiClonePointer() -> UnsafeMutableRawPointer { return try! rustCall { uniffi_iroh_ffi_fn_clone_tags(self.pointer, $0) } } @@ -10055,6 +11021,9 @@ open class Tags: } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeTags: FfiConverter { typealias FfiType = UnsafeMutableRawPointer typealias SwiftType = Tags @@ -10085,10 +11054,16 @@ public struct FfiConverterTypeTags: FfiConverter { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeTags_lift(_ pointer: UnsafeMutableRawPointer) throws -> Tags { return try FfiConverterTypeTags.lift(pointer) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeTags_lower(_ value: Tags) -> UnsafeMutableRawPointer { return FfiConverterTypeTags.lower(value) } @@ -10107,6 +11082,9 @@ open class WrapOption: fileprivate let pointer: UnsafeMutableRawPointer! /// Used to instantiate a [FFIObject] without an actual pointer, for fakes in tests, mostly. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public struct NoPointer { public init() {} } @@ -10118,15 +11096,21 @@ open class WrapOption: self.pointer = pointer } - /// This constructor can be used to instantiate a fake object. - /// - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. - /// - /// - Warning: - /// Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + // This constructor can be used to instantiate a fake object. + // - Parameter noPointer: Placeholder value so we can have a constructor separate from the default empty one that may be implemented for classes extending [FFIObject]. + // + // - Warning: + // Any object instantiated with this constructor cannot be passed to an actual Rust-backed object. Since there isn't a backing [Pointer] the FFI lower functions will crash. + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public init(noPointer _: NoPointer) { pointer = nil } + #if swift(>=5.8) + @_documentation(visibility: private) + #endif public func uniffiClonePointer() -> UnsafeMutableRawPointer { return try! rustCall { uniffi_iroh_ffi_fn_clone_wrapoption(self.pointer, $0) } } @@ -10163,6 +11147,9 @@ open class WrapOption: } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeWrapOption: FfiConverter { typealias FfiType = UnsafeMutableRawPointer typealias SwiftType = WrapOption @@ -10193,10 +11180,16 @@ public struct FfiConverterTypeWrapOption: FfiConverter { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeWrapOption_lift(_ pointer: UnsafeMutableRawPointer) throws -> WrapOption { return try FfiConverterTypeWrapOption.lift(pointer) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeWrapOption_lower(_ value: WrapOption) -> UnsafeMutableRawPointer { return FfiConverterTypeWrapOption.lower(value) } @@ -10227,6 +11220,9 @@ extension AddProgressAbort: Equatable, Hashable { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeAddProgressAbort: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> AddProgressAbort { return @@ -10240,10 +11236,16 @@ public struct FfiConverterTypeAddProgressAbort: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeAddProgressAbort_lift(_ buf: RustBuffer) throws -> AddProgressAbort { return try FfiConverterTypeAddProgressAbort.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeAddProgressAbort_lower(_ value: AddProgressAbort) -> RustBuffer { return FfiConverterTypeAddProgressAbort.lower(value) } @@ -10284,6 +11286,9 @@ public struct AddProgressAllDone { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeAddProgressAllDone: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> AddProgressAllDone { return @@ -10301,10 +11306,16 @@ public struct FfiConverterTypeAddProgressAllDone: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeAddProgressAllDone_lift(_ buf: RustBuffer) throws -> AddProgressAllDone { return try FfiConverterTypeAddProgressAllDone.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeAddProgressAllDone_lower(_ value: AddProgressAllDone) -> RustBuffer { return FfiConverterTypeAddProgressAllDone.lower(value) } @@ -10337,6 +11348,9 @@ public struct AddProgressDone { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeAddProgressDone: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> AddProgressDone { return @@ -10352,10 +11366,16 @@ public struct FfiConverterTypeAddProgressDone: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeAddProgressDone_lift(_ buf: RustBuffer) throws -> AddProgressDone { return try FfiConverterTypeAddProgressDone.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeAddProgressDone_lower(_ value: AddProgressDone) -> RustBuffer { return FfiConverterTypeAddProgressDone.lower(value) } @@ -10417,6 +11437,9 @@ extension AddProgressFound: Equatable, Hashable { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeAddProgressFound: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> AddProgressFound { return @@ -10434,10 +11457,16 @@ public struct FfiConverterTypeAddProgressFound: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeAddProgressFound_lift(_ buf: RustBuffer) throws -> AddProgressFound { return try FfiConverterTypeAddProgressFound.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeAddProgressFound_lower(_ value: AddProgressFound) -> RustBuffer { return FfiConverterTypeAddProgressFound.lower(value) } @@ -10487,6 +11516,9 @@ extension AddProgressProgress: Equatable, Hashable { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeAddProgressProgress: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> AddProgressProgress { return @@ -10502,10 +11534,16 @@ public struct FfiConverterTypeAddProgressProgress: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeAddProgressProgress_lift(_ buf: RustBuffer) throws -> AddProgressProgress { return try FfiConverterTypeAddProgressProgress.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeAddProgressProgress_lower(_ value: AddProgressProgress) -> RustBuffer { return FfiConverterTypeAddProgressProgress.lower(value) } @@ -10554,6 +11592,9 @@ public struct BlobAddOutcome { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeBlobAddOutcome: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> BlobAddOutcome { return @@ -10573,10 +11614,16 @@ public struct FfiConverterTypeBlobAddOutcome: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeBlobAddOutcome_lift(_ buf: RustBuffer) throws -> BlobAddOutcome { return try FfiConverterTypeBlobAddOutcome.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeBlobAddOutcome_lower(_ value: BlobAddOutcome) -> RustBuffer { return FfiConverterTypeBlobAddOutcome.lower(value) } @@ -10617,6 +11664,9 @@ public struct BlobInfo { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeBlobInfo: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> BlobInfo { return @@ -10634,10 +11684,16 @@ public struct FfiConverterTypeBlobInfo: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeBlobInfo_lift(_ buf: RustBuffer) throws -> BlobInfo { return try FfiConverterTypeBlobInfo.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeBlobInfo_lower(_ value: BlobInfo) -> RustBuffer { return FfiConverterTypeBlobInfo.lower(value) } @@ -10675,6 +11731,9 @@ extension ClientConnected: Equatable, Hashable { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeClientConnected: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> ClientConnected { return @@ -10688,10 +11747,16 @@ public struct FfiConverterTypeClientConnected: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeClientConnected_lift(_ buf: RustBuffer) throws -> ClientConnected { return try FfiConverterTypeClientConnected.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeClientConnected_lower(_ value: ClientConnected) -> RustBuffer { return FfiConverterTypeClientConnected.lower(value) } @@ -10748,6 +11813,9 @@ public struct CollectionInfo { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeCollectionInfo: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> CollectionInfo { return @@ -10767,10 +11835,16 @@ public struct FfiConverterTypeCollectionInfo: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeCollectionInfo_lift(_ buf: RustBuffer) throws -> CollectionInfo { return try FfiConverterTypeCollectionInfo.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeCollectionInfo_lower(_ value: CollectionInfo) -> RustBuffer { return FfiConverterTypeCollectionInfo.lower(value) } @@ -10820,6 +11894,9 @@ extension ConnectionTypeMixed: Equatable, Hashable { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeConnectionTypeMixed: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> ConnectionTypeMixed { return @@ -10835,10 +11912,16 @@ public struct FfiConverterTypeConnectionTypeMixed: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeConnectionTypeMixed_lift(_ buf: RustBuffer) throws -> ConnectionTypeMixed { return try FfiConverterTypeConnectionTypeMixed.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeConnectionTypeMixed_lower(_ value: ConnectionTypeMixed) -> RustBuffer { return FfiConverterTypeConnectionTypeMixed.lower(value) } @@ -10888,6 +11971,9 @@ extension CounterStats: Equatable, Hashable { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeCounterStats: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> CounterStats { return @@ -10903,10 +11989,16 @@ public struct FfiConverterTypeCounterStats: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeCounterStats_lift(_ buf: RustBuffer) throws -> CounterStats { return try FfiConverterTypeCounterStats.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeCounterStats_lower(_ value: CounterStats) -> RustBuffer { return FfiConverterTypeCounterStats.lower(value) } @@ -10944,6 +12036,9 @@ extension DocExportProgressAbort: Equatable, Hashable { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeDocExportProgressAbort: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> DocExportProgressAbort { return @@ -10957,10 +12052,16 @@ public struct FfiConverterTypeDocExportProgressAbort: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDocExportProgressAbort_lift(_ buf: RustBuffer) throws -> DocExportProgressAbort { return try FfiConverterTypeDocExportProgressAbort.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDocExportProgressAbort_lower(_ value: DocExportProgressAbort) -> RustBuffer { return FfiConverterTypeDocExportProgressAbort.lower(value) } @@ -10998,6 +12099,9 @@ extension DocExportProgressDone: Equatable, Hashable { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeDocExportProgressDone: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> DocExportProgressDone { return @@ -11011,10 +12115,16 @@ public struct FfiConverterTypeDocExportProgressDone: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDocExportProgressDone_lift(_ buf: RustBuffer) throws -> DocExportProgressDone { return try FfiConverterTypeDocExportProgressDone.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDocExportProgressDone_lower(_ value: DocExportProgressDone) -> RustBuffer { return FfiConverterTypeDocExportProgressDone.lower(value) } @@ -11063,6 +12173,9 @@ public struct DocExportProgressFound { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeDocExportProgressFound: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> DocExportProgressFound { return @@ -11082,10 +12195,16 @@ public struct FfiConverterTypeDocExportProgressFound: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDocExportProgressFound_lift(_ buf: RustBuffer) throws -> DocExportProgressFound { return try FfiConverterTypeDocExportProgressFound.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDocExportProgressFound_lower(_ value: DocExportProgressFound) -> RustBuffer { return FfiConverterTypeDocExportProgressFound.lower(value) } @@ -11135,6 +12254,9 @@ extension DocExportProgressProgress: Equatable, Hashable { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeDocExportProgressProgress: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> DocExportProgressProgress { return @@ -11150,10 +12272,16 @@ public struct FfiConverterTypeDocExportProgressProgress: FfiConverterRustBuffer } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDocExportProgressProgress_lift(_ buf: RustBuffer) throws -> DocExportProgressProgress { return try FfiConverterTypeDocExportProgressProgress.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDocExportProgressProgress_lower(_ value: DocExportProgressProgress) -> RustBuffer { return FfiConverterTypeDocExportProgressProgress.lower(value) } @@ -11191,6 +12319,9 @@ extension DocImportProgressAbort: Equatable, Hashable { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeDocImportProgressAbort: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> DocImportProgressAbort { return @@ -11204,10 +12335,16 @@ public struct FfiConverterTypeDocImportProgressAbort: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDocImportProgressAbort_lift(_ buf: RustBuffer) throws -> DocImportProgressAbort { return try FfiConverterTypeDocImportProgressAbort.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDocImportProgressAbort_lower(_ value: DocImportProgressAbort) -> RustBuffer { return FfiConverterTypeDocImportProgressAbort.lower(value) } @@ -11245,6 +12382,9 @@ extension DocImportProgressAllDone: Equatable, Hashable { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeDocImportProgressAllDone: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> DocImportProgressAllDone { return @@ -11258,10 +12398,16 @@ public struct FfiConverterTypeDocImportProgressAllDone: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDocImportProgressAllDone_lift(_ buf: RustBuffer) throws -> DocImportProgressAllDone { return try FfiConverterTypeDocImportProgressAllDone.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDocImportProgressAllDone_lower(_ value: DocImportProgressAllDone) -> RustBuffer { return FfiConverterTypeDocImportProgressAllDone.lower(value) } @@ -11323,6 +12469,9 @@ extension DocImportProgressFound: Equatable, Hashable { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeDocImportProgressFound: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> DocImportProgressFound { return @@ -11340,10 +12489,16 @@ public struct FfiConverterTypeDocImportProgressFound: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDocImportProgressFound_lift(_ buf: RustBuffer) throws -> DocImportProgressFound { return try FfiConverterTypeDocImportProgressFound.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDocImportProgressFound_lower(_ value: DocImportProgressFound) -> RustBuffer { return FfiConverterTypeDocImportProgressFound.lower(value) } @@ -11376,6 +12531,9 @@ public struct DocImportProgressIngestDone { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeDocImportProgressIngestDone: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> DocImportProgressIngestDone { return @@ -11391,10 +12549,16 @@ public struct FfiConverterTypeDocImportProgressIngestDone: FfiConverterRustBuffe } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDocImportProgressIngestDone_lift(_ buf: RustBuffer) throws -> DocImportProgressIngestDone { return try FfiConverterTypeDocImportProgressIngestDone.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDocImportProgressIngestDone_lower(_ value: DocImportProgressIngestDone) -> RustBuffer { return FfiConverterTypeDocImportProgressIngestDone.lower(value) } @@ -11444,6 +12608,9 @@ extension DocImportProgressProgress: Equatable, Hashable { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeDocImportProgressProgress: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> DocImportProgressProgress { return @@ -11459,10 +12626,16 @@ public struct FfiConverterTypeDocImportProgressProgress: FfiConverterRustBuffer } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDocImportProgressProgress_lift(_ buf: RustBuffer) throws -> DocImportProgressProgress { return try FfiConverterTypeDocImportProgressProgress.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDocImportProgressProgress_lower(_ value: DocImportProgressProgress) -> RustBuffer { return FfiConverterTypeDocImportProgressProgress.lower(value) } @@ -11493,6 +12666,9 @@ extension DownloadProgressAbort: Equatable, Hashable { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeDownloadProgressAbort: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> DownloadProgressAbort { return @@ -11506,10 +12682,16 @@ public struct FfiConverterTypeDownloadProgressAbort: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDownloadProgressAbort_lift(_ buf: RustBuffer) throws -> DownloadProgressAbort { return try FfiConverterTypeDownloadProgressAbort.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDownloadProgressAbort_lower(_ value: DownloadProgressAbort) -> RustBuffer { return FfiConverterTypeDownloadProgressAbort.lower(value) } @@ -11571,6 +12753,9 @@ extension DownloadProgressAllDone: Equatable, Hashable { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeDownloadProgressAllDone: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> DownloadProgressAllDone { return @@ -11588,10 +12773,16 @@ public struct FfiConverterTypeDownloadProgressAllDone: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDownloadProgressAllDone_lift(_ buf: RustBuffer) throws -> DownloadProgressAllDone { return try FfiConverterTypeDownloadProgressAllDone.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDownloadProgressAllDone_lower(_ value: DownloadProgressAllDone) -> RustBuffer { return FfiConverterTypeDownloadProgressAllDone.lower(value) } @@ -11629,6 +12820,9 @@ extension DownloadProgressDone: Equatable, Hashable { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeDownloadProgressDone: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> DownloadProgressDone { return @@ -11642,10 +12836,16 @@ public struct FfiConverterTypeDownloadProgressDone: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDownloadProgressDone_lift(_ buf: RustBuffer) throws -> DownloadProgressDone { return try FfiConverterTypeDownloadProgressDone.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDownloadProgressDone_lower(_ value: DownloadProgressDone) -> RustBuffer { return FfiConverterTypeDownloadProgressDone.lower(value) } @@ -11694,6 +12894,9 @@ public struct DownloadProgressFound { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeDownloadProgressFound: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> DownloadProgressFound { return @@ -11713,10 +12916,16 @@ public struct FfiConverterTypeDownloadProgressFound: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDownloadProgressFound_lift(_ buf: RustBuffer) throws -> DownloadProgressFound { return try FfiConverterTypeDownloadProgressFound.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDownloadProgressFound_lower(_ value: DownloadProgressFound) -> RustBuffer { return FfiConverterTypeDownloadProgressFound.lower(value) } @@ -11749,6 +12958,9 @@ public struct DownloadProgressFoundHashSeq { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeDownloadProgressFoundHashSeq: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> DownloadProgressFoundHashSeq { return @@ -11764,10 +12976,16 @@ public struct FfiConverterTypeDownloadProgressFoundHashSeq: FfiConverterRustBuff } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDownloadProgressFoundHashSeq_lift(_ buf: RustBuffer) throws -> DownloadProgressFoundHashSeq { return try FfiConverterTypeDownloadProgressFoundHashSeq.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDownloadProgressFoundHashSeq_lower(_ value: DownloadProgressFoundHashSeq) -> RustBuffer { return FfiConverterTypeDownloadProgressFoundHashSeq.lower(value) } @@ -11816,6 +13034,9 @@ public struct DownloadProgressFoundLocal { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeDownloadProgressFoundLocal: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> DownloadProgressFoundLocal { return @@ -11835,10 +13056,16 @@ public struct FfiConverterTypeDownloadProgressFoundLocal: FfiConverterRustBuffer } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDownloadProgressFoundLocal_lift(_ buf: RustBuffer) throws -> DownloadProgressFoundLocal { return try FfiConverterTypeDownloadProgressFoundLocal.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDownloadProgressFoundLocal_lower(_ value: DownloadProgressFoundLocal) -> RustBuffer { return FfiConverterTypeDownloadProgressFoundLocal.lower(value) } @@ -11873,6 +13100,9 @@ extension DownloadProgressInitialState: Equatable, Hashable { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeDownloadProgressInitialState: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> DownloadProgressInitialState { return @@ -11886,10 +13116,16 @@ public struct FfiConverterTypeDownloadProgressInitialState: FfiConverterRustBuff } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDownloadProgressInitialState_lift(_ buf: RustBuffer) throws -> DownloadProgressInitialState { return try FfiConverterTypeDownloadProgressInitialState.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDownloadProgressInitialState_lower(_ value: DownloadProgressInitialState) -> RustBuffer { return FfiConverterTypeDownloadProgressInitialState.lower(value) } @@ -11939,6 +13175,9 @@ extension DownloadProgressProgress: Equatable, Hashable { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeDownloadProgressProgress: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> DownloadProgressProgress { return @@ -11954,10 +13193,16 @@ public struct FfiConverterTypeDownloadProgressProgress: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDownloadProgressProgress_lift(_ buf: RustBuffer) throws -> DownloadProgressProgress { return try FfiConverterTypeDownloadProgressProgress.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDownloadProgressProgress_lower(_ value: DownloadProgressProgress) -> RustBuffer { return FfiConverterTypeDownloadProgressProgress.lower(value) } @@ -11998,6 +13243,9 @@ public struct GetRequestReceived { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeGetRequestReceived: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> GetRequestReceived { return @@ -12015,10 +13263,16 @@ public struct FfiConverterTypeGetRequestReceived: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeGetRequestReceived_lift(_ buf: RustBuffer) throws -> GetRequestReceived { return try FfiConverterTypeGetRequestReceived.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeGetRequestReceived_lower(_ value: GetRequestReceived) -> RustBuffer { return FfiConverterTypeGetRequestReceived.lower(value) } @@ -12051,6 +13305,9 @@ public struct HashAndTag { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeHashAndTag: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> HashAndTag { return @@ -12066,10 +13323,16 @@ public struct FfiConverterTypeHashAndTag: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeHashAndTag_lift(_ buf: RustBuffer) throws -> HashAndTag { return try FfiConverterTypeHashAndTag.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeHashAndTag_lower(_ value: HashAndTag) -> RustBuffer { return FfiConverterTypeHashAndTag.lower(value) } @@ -12110,6 +13373,9 @@ public struct IncompleteBlobInfo { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeIncompleteBlobInfo: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> IncompleteBlobInfo { return @@ -12127,10 +13393,16 @@ public struct FfiConverterTypeIncompleteBlobInfo: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeIncompleteBlobInfo_lift(_ buf: RustBuffer) throws -> IncompleteBlobInfo { return try FfiConverterTypeIncompleteBlobInfo.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeIncompleteBlobInfo_lower(_ value: IncompleteBlobInfo) -> RustBuffer { return FfiConverterTypeIncompleteBlobInfo.lower(value) } @@ -12171,6 +13443,9 @@ public struct InsertRemoteEvent { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeInsertRemoteEvent: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> InsertRemoteEvent { return @@ -12188,10 +13463,16 @@ public struct FfiConverterTypeInsertRemoteEvent: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeInsertRemoteEvent_lift(_ buf: RustBuffer) throws -> InsertRemoteEvent { return try FfiConverterTypeInsertRemoteEvent.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeInsertRemoteEvent_lower(_ value: InsertRemoteEvent) -> RustBuffer { return FfiConverterTypeInsertRemoteEvent.lower(value) } @@ -12241,6 +13522,9 @@ extension LatencyAndControlMsg: Equatable, Hashable { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeLatencyAndControlMsg: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> LatencyAndControlMsg { return @@ -12256,10 +13540,16 @@ public struct FfiConverterTypeLatencyAndControlMsg: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeLatencyAndControlMsg_lift(_ buf: RustBuffer) throws -> LatencyAndControlMsg { return try FfiConverterTypeLatencyAndControlMsg.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeLatencyAndControlMsg_lower(_ value: LatencyAndControlMsg) -> RustBuffer { return FfiConverterTypeLatencyAndControlMsg.lower(value) } @@ -12292,6 +13582,9 @@ public struct LinkAndName { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeLinkAndName: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> LinkAndName { return @@ -12307,10 +13600,16 @@ public struct FfiConverterTypeLinkAndName: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeLinkAndName_lift(_ buf: RustBuffer) throws -> LinkAndName { return try FfiConverterTypeLinkAndName.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeLinkAndName_lower(_ value: LinkAndName) -> RustBuffer { return FfiConverterTypeLinkAndName.lower(value) } @@ -12360,6 +13659,9 @@ extension MessageContent: Equatable, Hashable { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeMessageContent: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> MessageContent { return @@ -12375,10 +13677,16 @@ public struct FfiConverterTypeMessageContent: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeMessageContent_lift(_ buf: RustBuffer) throws -> MessageContent { return try FfiConverterTypeMessageContent.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeMessageContent_lower(_ value: MessageContent) -> RustBuffer { return FfiConverterTypeMessageContent.lower(value) } @@ -12428,6 +13736,9 @@ extension NamespaceAndCapability: Equatable, Hashable { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeNamespaceAndCapability: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> NamespaceAndCapability { return @@ -12443,10 +13754,16 @@ public struct FfiConverterTypeNamespaceAndCapability: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeNamespaceAndCapability_lift(_ buf: RustBuffer) throws -> NamespaceAndCapability { return try FfiConverterTypeNamespaceAndCapability.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeNamespaceAndCapability_lower(_ value: NamespaceAndCapability) -> RustBuffer { return FfiConverterTypeNamespaceAndCapability.lower(value) } @@ -12539,6 +13856,9 @@ public struct NodeOptions { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeNodeOptions: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> NodeOptions { return @@ -12570,10 +13890,16 @@ public struct FfiConverterTypeNodeOptions: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeNodeOptions_lift(_ buf: RustBuffer) throws -> NodeOptions { return try FfiConverterTypeNodeOptions.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeNodeOptions_lower(_ value: NodeOptions) -> RustBuffer { return FfiConverterTypeNodeOptions.lower(value) } @@ -12635,6 +13961,9 @@ extension OpenState: Equatable, Hashable { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeOpenState: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> OpenState { return @@ -12652,10 +13981,16 @@ public struct FfiConverterTypeOpenState: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeOpenState_lift(_ buf: RustBuffer) throws -> OpenState { return try FfiConverterTypeOpenState.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeOpenState_lower(_ value: OpenState) -> RustBuffer { return FfiConverterTypeOpenState.lower(value) } @@ -12741,6 +14076,9 @@ extension QueryOptions: Equatable, Hashable { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeQueryOptions: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> QueryOptions { return @@ -12760,10 +14098,16 @@ public struct FfiConverterTypeQueryOptions: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeQueryOptions_lift(_ buf: RustBuffer) throws -> QueryOptions { return try FfiConverterTypeQueryOptions.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeQueryOptions_lower(_ value: QueryOptions) -> RustBuffer { return FfiConverterTypeQueryOptions.lower(value) } @@ -12831,6 +14175,9 @@ public struct RemoteInfo { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeRemoteInfo: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> RemoteInfo { return @@ -12854,10 +14201,16 @@ public struct FfiConverterTypeRemoteInfo: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeRemoteInfo_lift(_ buf: RustBuffer) throws -> RemoteInfo { return try FfiConverterTypeRemoteInfo.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeRemoteInfo_lower(_ value: RemoteInfo) -> RustBuffer { return FfiConverterTypeRemoteInfo.lower(value) } @@ -12914,6 +14267,9 @@ public struct SyncEvent { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeSyncEvent: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> SyncEvent { return @@ -12935,10 +14291,16 @@ public struct FfiConverterTypeSyncEvent: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeSyncEvent_lift(_ buf: RustBuffer) throws -> SyncEvent { return try FfiConverterTypeSyncEvent.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeSyncEvent_lower(_ value: SyncEvent) -> RustBuffer { return FfiConverterTypeSyncEvent.lower(value) } @@ -12979,6 +14341,9 @@ public struct TagInfo { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeTagInfo: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> TagInfo { return @@ -12996,10 +14361,16 @@ public struct FfiConverterTypeTagInfo: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeTagInfo_lift(_ buf: RustBuffer) throws -> TagInfo { return try FfiConverterTypeTagInfo.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeTagInfo_lower(_ value: TagInfo) -> RustBuffer { return FfiConverterTypeTagInfo.lower(value) } @@ -13040,6 +14411,9 @@ public struct TaggedBlobAdded { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeTaggedBlobAdded: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> TaggedBlobAdded { return @@ -13057,10 +14431,16 @@ public struct FfiConverterTypeTaggedBlobAdded: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeTaggedBlobAdded_lift(_ buf: RustBuffer) throws -> TaggedBlobAdded { return try FfiConverterTypeTaggedBlobAdded.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeTaggedBlobAdded_lower(_ value: TaggedBlobAdded) -> RustBuffer { return FfiConverterTypeTaggedBlobAdded.lower(value) } @@ -13124,6 +14504,9 @@ extension TransferAborted: Equatable, Hashable { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeTransferAborted: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> TransferAborted { return @@ -13141,10 +14524,16 @@ public struct FfiConverterTypeTransferAborted: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeTransferAborted_lift(_ buf: RustBuffer) throws -> TransferAborted { return try FfiConverterTypeTransferAborted.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeTransferAborted_lower(_ value: TransferAborted) -> RustBuffer { return FfiConverterTypeTransferAborted.lower(value) } @@ -13201,6 +14590,9 @@ public struct TransferBlobCompleted { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeTransferBlobCompleted: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> TransferBlobCompleted { return @@ -13222,10 +14614,16 @@ public struct FfiConverterTypeTransferBlobCompleted: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeTransferBlobCompleted_lift(_ buf: RustBuffer) throws -> TransferBlobCompleted { return try FfiConverterTypeTransferBlobCompleted.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeTransferBlobCompleted_lower(_ value: TransferBlobCompleted) -> RustBuffer { return FfiConverterTypeTransferBlobCompleted.lower(value) } @@ -13287,6 +14685,9 @@ extension TransferCompleted: Equatable, Hashable { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeTransferCompleted: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> TransferCompleted { return @@ -13304,10 +14705,16 @@ public struct FfiConverterTypeTransferCompleted: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeTransferCompleted_lift(_ buf: RustBuffer) throws -> TransferCompleted { return try FfiConverterTypeTransferCompleted.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeTransferCompleted_lower(_ value: TransferCompleted) -> RustBuffer { return FfiConverterTypeTransferCompleted.lower(value) } @@ -13369,6 +14776,9 @@ extension TransferHashSeqStarted: Equatable, Hashable { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeTransferHashSeqStarted: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> TransferHashSeqStarted { return @@ -13386,10 +14796,16 @@ public struct FfiConverterTypeTransferHashSeqStarted: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeTransferHashSeqStarted_lift(_ buf: RustBuffer) throws -> TransferHashSeqStarted { return try FfiConverterTypeTransferHashSeqStarted.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeTransferHashSeqStarted_lower(_ value: TransferHashSeqStarted) -> RustBuffer { return FfiConverterTypeTransferHashSeqStarted.lower(value) } @@ -13441,6 +14857,9 @@ public struct TransferProgress { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeTransferProgress: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> TransferProgress { return @@ -13460,10 +14879,16 @@ public struct FfiConverterTypeTransferProgress: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeTransferProgress_lift(_ buf: RustBuffer) throws -> TransferProgress { return try FfiConverterTypeTransferProgress.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeTransferProgress_lower(_ value: TransferProgress) -> RustBuffer { return FfiConverterTypeTransferProgress.lower(value) } @@ -13501,6 +14926,9 @@ extension TransferStats: Equatable, Hashable { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeTransferStats: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> TransferStats { return @@ -13514,10 +14942,16 @@ public struct FfiConverterTypeTransferStats: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeTransferStats_lift(_ buf: RustBuffer) throws -> TransferStats { return try FfiConverterTypeTransferStats.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeTransferStats_lower(_ value: TransferStats) -> RustBuffer { return FfiConverterTypeTransferStats.lower(value) } @@ -13553,6 +14987,9 @@ public enum AddProgressType { case abort } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeAddProgressType: FfiConverterRustBuffer { typealias SwiftType = AddProgressType @@ -13593,10 +15030,16 @@ public struct FfiConverterTypeAddProgressType: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeAddProgressType_lift(_ buf: RustBuffer) throws -> AddProgressType { return try FfiConverterTypeAddProgressType.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeAddProgressType_lower(_ value: AddProgressType) -> RustBuffer { return FfiConverterTypeAddProgressType.lower(value) } @@ -13630,6 +15073,9 @@ public enum AddrInfoOptions { case addresses } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeAddrInfoOptions: FfiConverterRustBuffer { typealias SwiftType = AddrInfoOptions @@ -13665,10 +15111,16 @@ public struct FfiConverterTypeAddrInfoOptions: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeAddrInfoOptions_lift(_ buf: RustBuffer) throws -> AddrInfoOptions { return try FfiConverterTypeAddrInfoOptions.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeAddrInfoOptions_lower(_ value: AddrInfoOptions) -> RustBuffer { return FfiConverterTypeAddrInfoOptions.lower(value) } @@ -13700,6 +15152,9 @@ public enum BlobExportFormat { case collection } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeBlobExportFormat: FfiConverterRustBuffer { typealias SwiftType = BlobExportFormat @@ -13725,10 +15180,16 @@ public struct FfiConverterTypeBlobExportFormat: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeBlobExportFormat_lift(_ buf: RustBuffer) throws -> BlobExportFormat { return try FfiConverterTypeBlobExportFormat.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeBlobExportFormat_lower(_ value: BlobExportFormat) -> RustBuffer { return FfiConverterTypeBlobExportFormat.lower(value) } @@ -13767,6 +15228,9 @@ public enum BlobExportMode { case tryReference } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeBlobExportMode: FfiConverterRustBuffer { typealias SwiftType = BlobExportMode @@ -13792,10 +15256,16 @@ public struct FfiConverterTypeBlobExportMode: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeBlobExportMode_lift(_ buf: RustBuffer) throws -> BlobExportMode { return try FfiConverterTypeBlobExportMode.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeBlobExportMode_lower(_ value: BlobExportMode) -> RustBuffer { return FfiConverterTypeBlobExportMode.lower(value) } @@ -13819,6 +15289,9 @@ public enum BlobFormat { case hashSeq } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeBlobFormat: FfiConverterRustBuffer { typealias SwiftType = BlobFormat @@ -13844,10 +15317,16 @@ public struct FfiConverterTypeBlobFormat: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeBlobFormat_lift(_ buf: RustBuffer) throws -> BlobFormat { return try FfiConverterTypeBlobFormat.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeBlobFormat_lower(_ value: BlobFormat) -> RustBuffer { return FfiConverterTypeBlobFormat.lower(value) } @@ -13897,6 +15376,9 @@ public enum BlobProvideEventType { case transferAborted } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeBlobProvideEventType: FfiConverterRustBuffer { typealias SwiftType = BlobProvideEventType @@ -13952,10 +15434,16 @@ public struct FfiConverterTypeBlobProvideEventType: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeBlobProvideEventType_lift(_ buf: RustBuffer) throws -> BlobProvideEventType { return try FfiConverterTypeBlobProvideEventType.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeBlobProvideEventType_lower(_ value: BlobProvideEventType) -> RustBuffer { return FfiConverterTypeBlobProvideEventType.lower(value) } @@ -13966,6 +15454,9 @@ public enum CallbackError { case Error } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeCallbackError: FfiConverterRustBuffer { typealias SwiftType = CallbackError @@ -14008,6 +15499,9 @@ public enum CapabilityKind { case read } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeCapabilityKind: FfiConverterRustBuffer { typealias SwiftType = CapabilityKind @@ -14033,10 +15527,16 @@ public struct FfiConverterTypeCapabilityKind: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeCapabilityKind_lift(_ buf: RustBuffer) throws -> CapabilityKind { return try FfiConverterTypeCapabilityKind.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeCapabilityKind_lower(_ value: CapabilityKind) -> RustBuffer { return FfiConverterTypeCapabilityKind.lower(value) } @@ -14068,6 +15568,9 @@ public enum ConnType { case none } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeConnType: FfiConverterRustBuffer { typealias SwiftType = ConnType @@ -14103,10 +15606,16 @@ public struct FfiConverterTypeConnType: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeConnType_lift(_ buf: RustBuffer) throws -> ConnType { return try FfiConverterTypeConnType.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeConnType_lower(_ value: ConnType) -> RustBuffer { return FfiConverterTypeConnType.lower(value) } @@ -14134,6 +15643,9 @@ public enum ContentStatus { case missing } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeContentStatus: FfiConverterRustBuffer { typealias SwiftType = ContentStatus @@ -14164,10 +15676,16 @@ public struct FfiConverterTypeContentStatus: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeContentStatus_lift(_ buf: RustBuffer) throws -> ContentStatus { return try FfiConverterTypeContentStatus.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeContentStatus_lower(_ value: ContentStatus) -> RustBuffer { return FfiConverterTypeContentStatus.lower(value) } @@ -14205,6 +15723,9 @@ public enum DocExportProgressType { case abort } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeDocExportProgressType: FfiConverterRustBuffer { typealias SwiftType = DocExportProgressType @@ -14245,10 +15766,16 @@ public struct FfiConverterTypeDocExportProgressType: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDocExportProgressType_lift(_ buf: RustBuffer) throws -> DocExportProgressType { return try FfiConverterTypeDocExportProgressType.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDocExportProgressType_lower(_ value: DocExportProgressType) -> RustBuffer { return FfiConverterTypeDocExportProgressType.lower(value) } @@ -14286,6 +15813,9 @@ public enum DocImportProgressType { case abort } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeDocImportProgressType: FfiConverterRustBuffer { typealias SwiftType = DocImportProgressType @@ -14326,10 +15856,16 @@ public struct FfiConverterTypeDocImportProgressType: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDocImportProgressType_lift(_ buf: RustBuffer) throws -> DocImportProgressType { return try FfiConverterTypeDocImportProgressType.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDocImportProgressType_lower(_ value: DocImportProgressType) -> RustBuffer { return FfiConverterTypeDocImportProgressType.lower(value) } @@ -14354,6 +15890,9 @@ public enum DownloadProgressType { case abort } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeDownloadProgressType: FfiConverterRustBuffer { typealias SwiftType = DownloadProgressType @@ -14414,10 +15953,16 @@ public struct FfiConverterTypeDownloadProgressType: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDownloadProgressType_lift(_ buf: RustBuffer) throws -> DownloadProgressType { return try FfiConverterTypeDownloadProgressType.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeDownloadProgressType_lower(_ value: DownloadProgressType) -> RustBuffer { return FfiConverterTypeDownloadProgressType.lower(value) } @@ -14469,6 +16014,9 @@ public enum LiveEventType { case pendingContentReady } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeLiveEventType: FfiConverterRustBuffer { typealias SwiftType = LiveEventType @@ -14519,10 +16067,16 @@ public struct FfiConverterTypeLiveEventType: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeLiveEventType_lift(_ buf: RustBuffer) throws -> LiveEventType { return try FfiConverterTypeLiveEventType.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeLiveEventType_lower(_ value: LiveEventType) -> RustBuffer { return FfiConverterTypeLiveEventType.lower(value) } @@ -14544,6 +16098,9 @@ public enum LogLevel { case off } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeLogLevel: FfiConverterRustBuffer { typealias SwiftType = LogLevel @@ -14589,10 +16146,16 @@ public struct FfiConverterTypeLogLevel: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeLogLevel_lift(_ buf: RustBuffer) throws -> LogLevel { return try FfiConverterTypeLogLevel.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeLogLevel_lower(_ value: LogLevel) -> RustBuffer { return FfiConverterTypeLogLevel.lower(value) } @@ -14611,6 +16174,9 @@ public enum MessageType { case error } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeMessageType: FfiConverterRustBuffer { typealias SwiftType = MessageType @@ -14656,10 +16222,16 @@ public struct FfiConverterTypeMessageType: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeMessageType_lift(_ buf: RustBuffer) throws -> MessageType { return try FfiConverterTypeMessageType.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeMessageType_lower(_ value: MessageType) -> RustBuffer { return FfiConverterTypeMessageType.lower(value) } @@ -14699,6 +16271,9 @@ public enum NodeDiscoveryConfig { case `default` } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeNodeDiscoveryConfig: FfiConverterRustBuffer { typealias SwiftType = NodeDiscoveryConfig @@ -14724,10 +16299,16 @@ public struct FfiConverterTypeNodeDiscoveryConfig: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeNodeDiscoveryConfig_lift(_ buf: RustBuffer) throws -> NodeDiscoveryConfig { return try FfiConverterTypeNodeDiscoveryConfig.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeNodeDiscoveryConfig_lower(_ value: NodeDiscoveryConfig) -> RustBuffer { return FfiConverterTypeNodeDiscoveryConfig.lower(value) } @@ -14752,6 +16333,9 @@ public enum Origin { case accept } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeOrigin: FfiConverterRustBuffer { typealias SwiftType = Origin @@ -14779,10 +16363,16 @@ public struct FfiConverterTypeOrigin: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeOrigin_lift(_ buf: RustBuffer) throws -> Origin { return try FfiConverterTypeOrigin.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeOrigin_lower(_ value: Origin) -> RustBuffer { return FfiConverterTypeOrigin.lower(value) } @@ -14806,6 +16396,9 @@ public enum ShareMode { case write } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeShareMode: FfiConverterRustBuffer { typealias SwiftType = ShareMode @@ -14831,10 +16424,16 @@ public struct FfiConverterTypeShareMode: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeShareMode_lift(_ buf: RustBuffer) throws -> ShareMode { return try FfiConverterTypeShareMode.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeShareMode_lower(_ value: ShareMode) -> RustBuffer { return FfiConverterTypeShareMode.lower(value) } @@ -14858,6 +16457,9 @@ public enum SortBy { case authorKey } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeSortBy: FfiConverterRustBuffer { typealias SwiftType = SortBy @@ -14883,10 +16485,16 @@ public struct FfiConverterTypeSortBy: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeSortBy_lift(_ buf: RustBuffer) throws -> SortBy { return try FfiConverterTypeSortBy.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeSortBy_lower(_ value: SortBy) -> RustBuffer { return FfiConverterTypeSortBy.lower(value) } @@ -14910,6 +16518,9 @@ public enum SortDirection { case desc } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeSortDirection: FfiConverterRustBuffer { typealias SwiftType = SortDirection @@ -14935,10 +16546,16 @@ public struct FfiConverterTypeSortDirection: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeSortDirection_lift(_ buf: RustBuffer) throws -> SortDirection { return try FfiConverterTypeSortDirection.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeSortDirection_lower(_ value: SortDirection) -> RustBuffer { return FfiConverterTypeSortDirection.lower(value) } @@ -14970,6 +16587,9 @@ public enum SyncReason { case resync } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public struct FfiConverterTypeSyncReason: FfiConverterRustBuffer { typealias SwiftType = SyncReason @@ -15005,16 +16625,25 @@ public struct FfiConverterTypeSyncReason: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeSyncReason_lift(_ buf: RustBuffer) throws -> SyncReason { return try FfiConverterTypeSyncReason.lift(buf) } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif public func FfiConverterTypeSyncReason_lower(_ value: SyncReason) -> RustBuffer { return FfiConverterTypeSyncReason.lower(value) } extension SyncReason: Equatable, Hashable {} +#if swift(>=5.8) + @_documentation(visibility: private) +#endif private struct FfiConverterOptionUInt64: FfiConverterRustBuffer { typealias SwiftType = UInt64? @@ -15036,6 +16665,9 @@ private struct FfiConverterOptionUInt64: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif private struct FfiConverterOptionString: FfiConverterRustBuffer { typealias SwiftType = String? @@ -15057,6 +16689,9 @@ private struct FfiConverterOptionString: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif private struct FfiConverterOptionData: FfiConverterRustBuffer { typealias SwiftType = Data? @@ -15078,6 +16713,9 @@ private struct FfiConverterOptionData: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif private struct FfiConverterOptionDuration: FfiConverterRustBuffer { typealias SwiftType = TimeInterval? @@ -15099,6 +16737,9 @@ private struct FfiConverterOptionDuration: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif private struct FfiConverterOptionTypeBlobProvideEventCallback: FfiConverterRustBuffer { typealias SwiftType = BlobProvideEventCallback? @@ -15120,6 +16761,9 @@ private struct FfiConverterOptionTypeBlobProvideEventCallback: FfiConverterRustB } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif private struct FfiConverterOptionTypeDoc: FfiConverterRustBuffer { typealias SwiftType = Doc? @@ -15141,6 +16785,9 @@ private struct FfiConverterOptionTypeDoc: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif private struct FfiConverterOptionTypeDocExportFileCallback: FfiConverterRustBuffer { typealias SwiftType = DocExportFileCallback? @@ -15162,6 +16809,9 @@ private struct FfiConverterOptionTypeDocExportFileCallback: FfiConverterRustBuff } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif private struct FfiConverterOptionTypeDocImportFileCallback: FfiConverterRustBuffer { typealias SwiftType = DocImportFileCallback? @@ -15183,6 +16833,9 @@ private struct FfiConverterOptionTypeDocImportFileCallback: FfiConverterRustBuff } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif private struct FfiConverterOptionTypeEntry: FfiConverterRustBuffer { typealias SwiftType = Entry? @@ -15204,6 +16857,9 @@ private struct FfiConverterOptionTypeEntry: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif private struct FfiConverterOptionTypeLatencyAndControlMsg: FfiConverterRustBuffer { typealias SwiftType = LatencyAndControlMsg? @@ -15225,6 +16881,9 @@ private struct FfiConverterOptionTypeLatencyAndControlMsg: FfiConverterRustBuffe } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif private struct FfiConverterOptionTypeQueryOptions: FfiConverterRustBuffer { typealias SwiftType = QueryOptions? @@ -15246,6 +16905,9 @@ private struct FfiConverterOptionTypeQueryOptions: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif private struct FfiConverterOptionTypeRemoteInfo: FfiConverterRustBuffer { typealias SwiftType = RemoteInfo? @@ -15267,6 +16929,9 @@ private struct FfiConverterOptionTypeRemoteInfo: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif private struct FfiConverterOptionTypeTransferStats: FfiConverterRustBuffer { typealias SwiftType = TransferStats? @@ -15288,6 +16953,9 @@ private struct FfiConverterOptionTypeTransferStats: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif private struct FfiConverterOptionTypeNodeDiscoveryConfig: FfiConverterRustBuffer { typealias SwiftType = NodeDiscoveryConfig? @@ -15309,6 +16977,9 @@ private struct FfiConverterOptionTypeNodeDiscoveryConfig: FfiConverterRustBuffer } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif private struct FfiConverterOptionSequenceData: FfiConverterRustBuffer { typealias SwiftType = [Data]? @@ -15330,6 +17001,9 @@ private struct FfiConverterOptionSequenceData: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif private struct FfiConverterOptionDictionaryDataTypeProtocolCreator: FfiConverterRustBuffer { typealias SwiftType = [Data: ProtocolCreator]? @@ -15351,6 +17025,9 @@ private struct FfiConverterOptionDictionaryDataTypeProtocolCreator: FfiConverter } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif private struct FfiConverterSequenceString: FfiConverterRustBuffer { typealias SwiftType = [String] @@ -15373,6 +17050,9 @@ private struct FfiConverterSequenceString: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif private struct FfiConverterSequenceData: FfiConverterRustBuffer { typealias SwiftType = [Data] @@ -15395,6 +17075,9 @@ private struct FfiConverterSequenceData: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif private struct FfiConverterSequenceTypeAuthorId: FfiConverterRustBuffer { typealias SwiftType = [AuthorId] @@ -15417,6 +17100,9 @@ private struct FfiConverterSequenceTypeAuthorId: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif private struct FfiConverterSequenceTypeDirectAddrInfo: FfiConverterRustBuffer { typealias SwiftType = [DirectAddrInfo] @@ -15439,6 +17125,9 @@ private struct FfiConverterSequenceTypeDirectAddrInfo: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif private struct FfiConverterSequenceTypeEntry: FfiConverterRustBuffer { typealias SwiftType = [Entry] @@ -15461,6 +17150,9 @@ private struct FfiConverterSequenceTypeEntry: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif private struct FfiConverterSequenceTypeFilterKind: FfiConverterRustBuffer { typealias SwiftType = [FilterKind] @@ -15483,6 +17175,9 @@ private struct FfiConverterSequenceTypeFilterKind: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif private struct FfiConverterSequenceTypeHash: FfiConverterRustBuffer { typealias SwiftType = [Hash] @@ -15505,6 +17200,9 @@ private struct FfiConverterSequenceTypeHash: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif private struct FfiConverterSequenceTypeNodeAddr: FfiConverterRustBuffer { typealias SwiftType = [NodeAddr] @@ -15527,6 +17225,9 @@ private struct FfiConverterSequenceTypeNodeAddr: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif private struct FfiConverterSequenceTypeCollectionInfo: FfiConverterRustBuffer { typealias SwiftType = [CollectionInfo] @@ -15549,6 +17250,9 @@ private struct FfiConverterSequenceTypeCollectionInfo: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif private struct FfiConverterSequenceTypeIncompleteBlobInfo: FfiConverterRustBuffer { typealias SwiftType = [IncompleteBlobInfo] @@ -15571,6 +17275,9 @@ private struct FfiConverterSequenceTypeIncompleteBlobInfo: FfiConverterRustBuffe } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif private struct FfiConverterSequenceTypeLinkAndName: FfiConverterRustBuffer { typealias SwiftType = [LinkAndName] @@ -15593,6 +17300,9 @@ private struct FfiConverterSequenceTypeLinkAndName: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif private struct FfiConverterSequenceTypeNamespaceAndCapability: FfiConverterRustBuffer { typealias SwiftType = [NamespaceAndCapability] @@ -15615,6 +17325,9 @@ private struct FfiConverterSequenceTypeNamespaceAndCapability: FfiConverterRustB } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif private struct FfiConverterSequenceTypeRemoteInfo: FfiConverterRustBuffer { typealias SwiftType = [RemoteInfo] @@ -15637,6 +17350,9 @@ private struct FfiConverterSequenceTypeRemoteInfo: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif private struct FfiConverterSequenceTypeTagInfo: FfiConverterRustBuffer { typealias SwiftType = [TagInfo] @@ -15659,6 +17375,9 @@ private struct FfiConverterSequenceTypeTagInfo: FfiConverterRustBuffer { } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif private struct FfiConverterDictionaryStringTypeCounterStats: FfiConverterRustBuffer { public static func write(_ value: [String: CounterStats], into buf: inout [UInt8]) { let len = Int32(value.count) @@ -15682,6 +17401,9 @@ private struct FfiConverterDictionaryStringTypeCounterStats: FfiConverterRustBuf } } +#if swift(>=5.8) + @_documentation(visibility: private) +#endif private struct FfiConverterDictionaryDataTypeProtocolCreator: FfiConverterRustBuffer { public static func write(_ value: [Data: ProtocolCreator], into buf: inout [UInt8]) { let len = Int32(value.count) diff --git a/iroh-js/Cargo.toml b/iroh-js/Cargo.toml index 1ebc5fa9..591faebd 100644 --- a/iroh-js/Cargo.toml +++ b/iroh-js/Cargo.toml @@ -1,7 +1,7 @@ [package] edition = "2021" name = "number0_iroh" -version = "0.27.0" +version = "0.28.1" license = "MIT OR Apache-2.0" authors = ["n0 team"] repository = "https://github.com/n0-computer/iroh-ffi" @@ -10,14 +10,15 @@ repository = "https://github.com/n0-computer/iroh-ffi" crate-type = ["cdylib"] [dependencies] -napi = { version = "=3.0.0-alpha.12", default-features = false, features = ["napi8", "error_anyhow", "async", "chrono_date"] } -napi-derive = "=3.0.0-alpha.12" +napi = { version = "=3.0.0-alpha.19", default-features = false, features = ["napi8", "error_anyhow", "async", "chrono_date"] } +napi-derive = "=3.0.0-alpha.17" anyhow = "1.0.69" async-trait = "0.1.80" blake3 = "1.3.3" bytes = "1" data-encoding = { version = "2.3.3" } -iroh = { version = "0.27.0" } +iroh = "0.28.1" +iroh-gossip = "0.28.1" iroh-io = { version = "0.6" } libc = "0.2.141" num_cpus = { version = "1.15.0" } diff --git a/iroh-js/__test__/node.spec.mjs b/iroh-js/__test__/node.spec.mjs index 7002c1ac..e19807e5 100644 --- a/iroh-js/__test__/node.spec.mjs +++ b/iroh-js/__test__/node.spec.mjs @@ -19,7 +19,7 @@ test('node status', async (t) => { const iroh = await Iroh.memory() const status = await iroh.node.status() - t.is(status.version, '0.27.0') + t.is(status.version, '0.28.1') }) test('rpc client memory node', async (t) => { diff --git a/iroh-js/index.d.ts b/iroh-js/index.d.ts index 35200b37..5d60dcdb 100644 --- a/iroh-js/index.d.ts +++ b/iroh-js/index.d.ts @@ -342,7 +342,6 @@ export declare class DownloadPolicy { export declare class Endpoint { connect(nodeAddr: NodeAddr, alpn: Uint8Array): Promise - connectByNodeId(nodeId: string, alpn: Uint8Array): Promise } /** Filter strategy used in download policies. */ @@ -1541,4 +1540,3 @@ export interface WrapOption { /** Override the filename in the wrapping collection. */ wrapOverride?: string } - diff --git a/iroh-js/index.js b/iroh-js/index.js index 55bd87b1..cd710a32 100644 --- a/iroh-js/index.js +++ b/iroh-js/index.js @@ -1,9 +1,12 @@ // prettier-ignore /* eslint-disable */ +// @ts-nocheck /* auto-generated by NAPI-RS */ -const { readFileSync } = require('fs') +const { createRequire } = require('node:module') +require = createRequire(__filename) +const { readFileSync } = require('node:fs') let nativeBinding = null const loadErrors = [] diff --git a/iroh-js/package.json b/iroh-js/package.json index 0e5005e3..944611c5 100644 --- a/iroh-js/package.json +++ b/iroh-js/package.json @@ -12,7 +12,7 @@ "network", "protocol" ], - "version": "0.27.0", + "version": "0.28.1", "type": "commonjs", "main": "iroh-js/index.js", "types": "iroh-js/index.d.ts", @@ -42,7 +42,7 @@ }, "license": "MIT OR Apache-2.0", "devDependencies": { - "@napi-rs/cli": "^3.0.0-alpha.62", + "@napi-rs/cli": "^3.0.0-alpha.64", "ava": "^6.0.1" }, "ava": { diff --git a/iroh-js/src/gossip.rs b/iroh-js/src/gossip.rs index 5285d8a6..122c27c1 100644 --- a/iroh-js/src/gossip.rs +++ b/iroh-js/src/gossip.rs @@ -1,9 +1,9 @@ use std::pin::Pin; use futures::{Sink, SinkExt, StreamExt}; -use iroh::client::gossip::{SubscribeResponse, SubscribeUpdate}; use iroh::gossip::net::GossipEvent; use iroh::net::NodeId; +use iroh_gossip::rpc::{SubscribeResponse, SubscribeUpdate}; use napi::bindgen_prelude::*; use napi::threadsafe_function::ThreadsafeFunction; use napi_derive::napi; diff --git a/iroh-js/src/node.rs b/iroh-js/src/node.rs index ff83026f..1688a638 100644 --- a/iroh-js/src/node.rs +++ b/iroh-js/src/node.rs @@ -47,7 +47,7 @@ pub struct ProtocolHandler { pub shutdown: Option>, } -impl iroh::node::ProtocolHandler for ProtocolHandler { +impl iroh::router::ProtocolHandler for ProtocolHandler { fn accept( self: Arc, conn: iroh::net::endpoint::Connecting, @@ -353,7 +353,7 @@ impl From for NodeStatus { #[derive(Clone)] struct BlobProvideEvents { - callback: ThreadsafeFunction, + callback: Arc>, } impl std::fmt::Debug for BlobProvideEvents { @@ -364,7 +364,9 @@ impl std::fmt::Debug for BlobProvideEvents { impl BlobProvideEvents { fn new(callback: ThreadsafeFunction) -> Self { - Self { callback } + Self { + callback: Arc::new(callback), + } } } diff --git a/iroh-js/yarn.lock b/iroh-js/yarn.lock index b52ef395..1339c549 100644 --- a/iroh-js/yarn.lock +++ b/iroh-js/yarn.lock @@ -33,170 +33,188 @@ __metadata: languageName: node linkType: hard -"@inquirer/checkbox@npm:^2.4.7": - version: 2.4.7 - resolution: "@inquirer/checkbox@npm:2.4.7" +"@inquirer/checkbox@npm:^4.0.1": + version: 4.0.1 + resolution: "@inquirer/checkbox@npm:4.0.1" dependencies: - "@inquirer/core": "npm:^9.0.10" - "@inquirer/figures": "npm:^1.0.5" - "@inquirer/type": "npm:^1.5.2" + "@inquirer/core": "npm:^10.0.1" + "@inquirer/figures": "npm:^1.0.7" + "@inquirer/type": "npm:^3.0.0" ansi-escapes: "npm:^4.3.2" yoctocolors-cjs: "npm:^2.1.2" - checksum: 10c0/92bd2727f316e2304b150ef32eb3023200512de154b49b6e121f468c2ad6fa58cb3b37d9dc91d1a2dc039e932dd934df5ce481acb2555cacac2b0308acb05576 + peerDependencies: + "@types/node": ">=18" + checksum: 10c0/62a0dd67c799ca6f45a7892564eb4bde7d5697eda4cda0594cb948022e69d86b7190f1522b291a470b5d407fa9046713b6caa5417312fc190293c599b179b0c0 languageName: node linkType: hard -"@inquirer/confirm@npm:^3.1.22": - version: 3.1.22 - resolution: "@inquirer/confirm@npm:3.1.22" +"@inquirer/confirm@npm:^5.0.1": + version: 5.0.1 + resolution: "@inquirer/confirm@npm:5.0.1" dependencies: - "@inquirer/core": "npm:^9.0.10" - "@inquirer/type": "npm:^1.5.2" - checksum: 10c0/99e1a17e62a674d8e440a11bf4e9d5a62666247823b091314e52ee40929a6a6e8ce60086ec653bbeb59117bfc940d807c6f4b604cf5cf51f24009b9d09d5bf98 + "@inquirer/core": "npm:^10.0.1" + "@inquirer/type": "npm:^3.0.0" + peerDependencies: + "@types/node": ">=18" + checksum: 10c0/bd8fafd75d4d591b3c153cb2f76d7ac9163701cb0a032e8e589d51c918a41d1da70ae7aaeb4d8d7394979a9af24c23a7d71ea6106d3308004f9829f133765776 languageName: node linkType: hard -"@inquirer/core@npm:^9.0.10": - version: 9.0.10 - resolution: "@inquirer/core@npm:9.0.10" +"@inquirer/core@npm:^10.0.1": + version: 10.0.1 + resolution: "@inquirer/core@npm:10.0.1" dependencies: - "@inquirer/figures": "npm:^1.0.5" - "@inquirer/type": "npm:^1.5.2" - "@types/mute-stream": "npm:^0.0.4" - "@types/node": "npm:^22.1.0" - "@types/wrap-ansi": "npm:^3.0.0" + "@inquirer/figures": "npm:^1.0.7" + "@inquirer/type": "npm:^3.0.0" ansi-escapes: "npm:^4.3.2" - cli-spinners: "npm:^2.9.2" cli-width: "npm:^4.1.0" - mute-stream: "npm:^1.0.0" + mute-stream: "npm:^2.0.0" signal-exit: "npm:^4.1.0" strip-ansi: "npm:^6.0.1" wrap-ansi: "npm:^6.2.0" yoctocolors-cjs: "npm:^2.1.2" - checksum: 10c0/117f50a55b5ebee8bfc62ea6adec87035f28ee7ace1efea67895c3d32ab50bf569ecd3ca33c457d0c7ae4240b9fe4d7b698ab70946ac561ab579d0920ddc98bb + checksum: 10c0/d55682e5c26c41037cb80a3bef5a12ae4eedf14621786b44088f48aeb32eb815dfb0f241950b6dba2eb84bf22131c126a2cb59e8e2d4ef63ad3613d59339063a languageName: node linkType: hard -"@inquirer/editor@npm:^2.1.22": - version: 2.1.22 - resolution: "@inquirer/editor@npm:2.1.22" +"@inquirer/editor@npm:^4.0.1": + version: 4.0.1 + resolution: "@inquirer/editor@npm:4.0.1" dependencies: - "@inquirer/core": "npm:^9.0.10" - "@inquirer/type": "npm:^1.5.2" + "@inquirer/core": "npm:^10.0.1" + "@inquirer/type": "npm:^3.0.0" external-editor: "npm:^3.1.0" - checksum: 10c0/a2e65362ed187695450b092c8f5698661002e4e24e1e800dfbbfeaa8e71f60b5d5e1dfa98b9402457c02cab1762ac2b20d3364c11db0b5572aa61caf55f5beba + peerDependencies: + "@types/node": ">=18" + checksum: 10c0/0a48ed8a315ae4d481a29a4bb044861004455d598289dc9faa3a4a72a2b482c103dc92792cad1dc378500e57b1ea3b95c805779d2488309b86d0bec496cd7db3 languageName: node linkType: hard -"@inquirer/expand@npm:^2.1.22": - version: 2.1.22 - resolution: "@inquirer/expand@npm:2.1.22" +"@inquirer/expand@npm:^4.0.1": + version: 4.0.1 + resolution: "@inquirer/expand@npm:4.0.1" dependencies: - "@inquirer/core": "npm:^9.0.10" - "@inquirer/type": "npm:^1.5.2" + "@inquirer/core": "npm:^10.0.1" + "@inquirer/type": "npm:^3.0.0" yoctocolors-cjs: "npm:^2.1.2" - checksum: 10c0/0f9d3447ca6b9e24e0179b4ec53f463647a8323d8a041bc3321f19a2914176117a264bcc6deb723e3f9ec718d3faf672f3f840f0898bbff4371fa899b239b411 + peerDependencies: + "@types/node": ">=18" + checksum: 10c0/6dc890f726bd65e3971ed6e7d2965ecf534c7bbd99fb9334f71204e3809822424f1a27e47322b070ee265c4a84053208a72fca617dbe669082172b585b598443 languageName: node linkType: hard -"@inquirer/figures@npm:^1.0.5": - version: 1.0.5 - resolution: "@inquirer/figures@npm:1.0.5" - checksum: 10c0/ec9ba23db42cb33fa18eb919abf2a18e750e739e64c1883ce4a98345cd5711c60cac12d1faf56a859f52d387deb221c8d3dfe60344ee07955a9a262f8b821fe3 +"@inquirer/figures@npm:^1.0.7": + version: 1.0.7 + resolution: "@inquirer/figures@npm:1.0.7" + checksum: 10c0/d7b4cfcd38dd43d1ac79da52c4478aa89145207004a471aa2083856f1d9b99adef45563f09d66c09d6457b09200fcf784527804b70ad3bd517cbc5e11142c2df languageName: node linkType: hard -"@inquirer/input@npm:^2.2.9": - version: 2.2.9 - resolution: "@inquirer/input@npm:2.2.9" +"@inquirer/input@npm:^4.0.1": + version: 4.0.1 + resolution: "@inquirer/input@npm:4.0.1" dependencies: - "@inquirer/core": "npm:^9.0.10" - "@inquirer/type": "npm:^1.5.2" - checksum: 10c0/0fcdc5d9c17712f9a2c79f39d1e03ed4a58cfe1dd1095209b4c83621dba2cb94db03b7df0df34e22584bce9e53403a284c76721def66a452e4751666d945d99f + "@inquirer/core": "npm:^10.0.1" + "@inquirer/type": "npm:^3.0.0" + peerDependencies: + "@types/node": ">=18" + checksum: 10c0/94ce23165577659fb3a01491047146502c593839eb6892f1ddfbdb092d237cdd8acb5acc2ad98776cc5eb359754eeffea97f156fddb6ec83137e123b0779ec2c languageName: node linkType: hard -"@inquirer/number@npm:^1.0.10": - version: 1.0.10 - resolution: "@inquirer/number@npm:1.0.10" +"@inquirer/number@npm:^3.0.1": + version: 3.0.1 + resolution: "@inquirer/number@npm:3.0.1" dependencies: - "@inquirer/core": "npm:^9.0.10" - "@inquirer/type": "npm:^1.5.2" - checksum: 10c0/efa7c49322d8f36eeb8afb704bba673c10fcf7992babc8ad5f25d4c8db0fbafc0007439abdef05a462171b37a68b981981859587ff5b71e79002ffac65be859a + "@inquirer/core": "npm:^10.0.1" + "@inquirer/type": "npm:^3.0.0" + peerDependencies: + "@types/node": ">=18" + checksum: 10c0/98e7bee1b887d5733d86dcee30d837072a34350ce7c11452808a67a6958786cc8200970611f4790b494acfbe741bf9b64f467b839af77e1e230f03384e903cc2 languageName: node linkType: hard -"@inquirer/password@npm:^2.1.22": - version: 2.1.22 - resolution: "@inquirer/password@npm:2.1.22" +"@inquirer/password@npm:^4.0.1": + version: 4.0.1 + resolution: "@inquirer/password@npm:4.0.1" dependencies: - "@inquirer/core": "npm:^9.0.10" - "@inquirer/type": "npm:^1.5.2" + "@inquirer/core": "npm:^10.0.1" + "@inquirer/type": "npm:^3.0.0" ansi-escapes: "npm:^4.3.2" - checksum: 10c0/5cd5bab0026d673539710f424e6f7dda8abea4863a0cddf982278b15a250f5a2be0a0f17fdf970a900d33187a64ad987d24d038cfbed2599b5a2a97c169bbddc + peerDependencies: + "@types/node": ">=18" + checksum: 10c0/670b92b8083f7658800285de64b6999a35a84a481a344042a2bc41af75143dcd73fae434aafac9a5ac5c76459112d36166f8a46ba44e3ab266e69c5ac29b84ab languageName: node linkType: hard -"@inquirer/prompts@npm:^5.3.8": - version: 5.3.8 - resolution: "@inquirer/prompts@npm:5.3.8" - dependencies: - "@inquirer/checkbox": "npm:^2.4.7" - "@inquirer/confirm": "npm:^3.1.22" - "@inquirer/editor": "npm:^2.1.22" - "@inquirer/expand": "npm:^2.1.22" - "@inquirer/input": "npm:^2.2.9" - "@inquirer/number": "npm:^1.0.10" - "@inquirer/password": "npm:^2.1.22" - "@inquirer/rawlist": "npm:^2.2.4" - "@inquirer/search": "npm:^1.0.7" - "@inquirer/select": "npm:^2.4.7" - checksum: 10c0/2c49afb5e9f7d825c1489d8c587f985418e890508802e1483d1cb8da46644e9803b2f0a8b71f53f0ff5d9273ca39e28faeadf7d6691467eb5c0dbbde900e5233 +"@inquirer/prompts@npm:^7.0.0": + version: 7.0.1 + resolution: "@inquirer/prompts@npm:7.0.1" + dependencies: + "@inquirer/checkbox": "npm:^4.0.1" + "@inquirer/confirm": "npm:^5.0.1" + "@inquirer/editor": "npm:^4.0.1" + "@inquirer/expand": "npm:^4.0.1" + "@inquirer/input": "npm:^4.0.1" + "@inquirer/number": "npm:^3.0.1" + "@inquirer/password": "npm:^4.0.1" + "@inquirer/rawlist": "npm:^4.0.1" + "@inquirer/search": "npm:^3.0.1" + "@inquirer/select": "npm:^4.0.1" + peerDependencies: + "@types/node": ">=18" + checksum: 10c0/bf72a25de8c53267de740cf4bb9639b95e5c9da3890ca59303bfba0adab11276d8ae53dc831f456acd31d257c959db2b05ed26c2a90cde7eab04737d158d6e94 languageName: node linkType: hard -"@inquirer/rawlist@npm:^2.2.4": - version: 2.2.4 - resolution: "@inquirer/rawlist@npm:2.2.4" +"@inquirer/rawlist@npm:^4.0.1": + version: 4.0.1 + resolution: "@inquirer/rawlist@npm:4.0.1" dependencies: - "@inquirer/core": "npm:^9.0.10" - "@inquirer/type": "npm:^1.5.2" + "@inquirer/core": "npm:^10.0.1" + "@inquirer/type": "npm:^3.0.0" yoctocolors-cjs: "npm:^2.1.2" - checksum: 10c0/d7c5e0784bb357f6465b7ca08a22310f124fb61db6cce7a1860305d8d25dcdfa66db216d4cc52873d68ae379376984cf8d9cd14880fbca41b7b03802be49caf8 + peerDependencies: + "@types/node": ">=18" + checksum: 10c0/553aaf9c9a26041699e0a763d826264deaea8cbea561e4fb2e9fc75c8145acd170dc4c406df8b843bfa73266eeb972b465bdf567d0904e87d54408423610c504 languageName: node linkType: hard -"@inquirer/search@npm:^1.0.7": - version: 1.0.7 - resolution: "@inquirer/search@npm:1.0.7" +"@inquirer/search@npm:^3.0.1": + version: 3.0.1 + resolution: "@inquirer/search@npm:3.0.1" dependencies: - "@inquirer/core": "npm:^9.0.10" - "@inquirer/figures": "npm:^1.0.5" - "@inquirer/type": "npm:^1.5.2" + "@inquirer/core": "npm:^10.0.1" + "@inquirer/figures": "npm:^1.0.7" + "@inquirer/type": "npm:^3.0.0" yoctocolors-cjs: "npm:^2.1.2" - checksum: 10c0/29179cc32236689b956cccdc092b537c67e841c5cd0a6473b92f9e71f56c0fb737baa4856bf76572f07c0c3999b6b5ea1ce3b74ef56504e179098f700a85a5cf + peerDependencies: + "@types/node": ">=18" + checksum: 10c0/8b2a35a29d3a3db09ba66b11b0051598a413c02c49a13964a84c4f9f5613fe326c1b800a783955c0a3a54d5b401a1b5bfa0ab27f15dd58501deba336561c4979 languageName: node linkType: hard -"@inquirer/select@npm:^2.4.7": - version: 2.4.7 - resolution: "@inquirer/select@npm:2.4.7" +"@inquirer/select@npm:^4.0.1": + version: 4.0.1 + resolution: "@inquirer/select@npm:4.0.1" dependencies: - "@inquirer/core": "npm:^9.0.10" - "@inquirer/figures": "npm:^1.0.5" - "@inquirer/type": "npm:^1.5.2" + "@inquirer/core": "npm:^10.0.1" + "@inquirer/figures": "npm:^1.0.7" + "@inquirer/type": "npm:^3.0.0" ansi-escapes: "npm:^4.3.2" yoctocolors-cjs: "npm:^2.1.2" - checksum: 10c0/34e120a263ca2e7edeab08ef6ca24d0966135e8d1a9d6f167fbc03fa8f057391228d58292281609a25d51eb9d59d0b1d00146bd2a5811c5d3880800321cfe8e6 + peerDependencies: + "@types/node": ">=18" + checksum: 10c0/d852b49a7f1afed89e898f66fbb02d7f3317aeffc0e3abe8b7a785fbd8ffd51d26a8415737746b001c677cf019d42aef3ed986dce1bb66c4f6fa42426a388509 languageName: node linkType: hard -"@inquirer/type@npm:^1.5.2": - version: 1.5.2 - resolution: "@inquirer/type@npm:1.5.2" - dependencies: - mute-stream: "npm:^1.0.0" - checksum: 10c0/e2c91562c07440620bd805a60438b78c188d2727d86f396a68c480e4357469a72cd80bd2c158faa6b987671911566bd4fc12976f4bdda1a3441594e318c40058 +"@inquirer/type@npm:^3.0.0": + version: 3.0.0 + resolution: "@inquirer/type@npm:3.0.0" + peerDependencies: + "@types/node": ">=18" + checksum: 10c0/4c26595749782e3dfbfea0c7a19b1db603485e0fce4a9d4fe52be1c9c05fcb2cc3afbc849d03bddbde47896786df93d6f02657eeeae5dbc8cdc78cd8a4f80123 languageName: node linkType: hard @@ -233,21 +251,21 @@ __metadata: languageName: node linkType: hard -"@napi-rs/cli@npm:^3.0.0-alpha.62": - version: 3.0.0-alpha.62 - resolution: "@napi-rs/cli@npm:3.0.0-alpha.62" +"@napi-rs/cli@npm:^3.0.0-alpha.64": + version: 3.0.0-alpha.64 + resolution: "@napi-rs/cli@npm:3.0.0-alpha.64" dependencies: + "@inquirer/prompts": "npm:^7.0.0" "@napi-rs/cross-toolchain": "npm:^0.0.16" "@napi-rs/wasm-tools": "npm:^0.0.2" - "@octokit/rest": "npm:^21.0.0" + "@octokit/rest": "npm:^21.0.2" clipanion: "npm:^3.2.1" colorette: "npm:^2.0.20" - debug: "npm:^4.3.4" - emnapi: "npm:^1.2.0" - inquirer: "npm:^10.0.0" + debug: "npm:^4.3.7" + emnapi: "npm:^1.3.1" js-yaml: "npm:^4.1.0" lodash-es: "npm:^4.17.21" - semver: "npm:^7.5.4" + semver: "npm:^7.6.3" toml: "npm:^3.0.0" typanion: "npm:^3.14.0" wasm-sjlj: "npm:^1.0.5" @@ -262,7 +280,7 @@ __metadata: bin: napi: ./dist/cli.js napi-raw: ./cli.mjs - checksum: 10c0/5f667d6fe3f31745cbd41ae99b1a2576d36bb43d803493c15ee7d59932aa14b90bcb3a52f8cf76e7a8b52ce0d2fbbc47c6eb3122981ea18761578fc6408380de + checksum: 10c0/e10e111380b1ba595460a0cffee89b20d40b08d7fb15ac28a4fa81cafed03a89a51e62276f0f6498686f9d235e15638e1088f0bfce8918d41eaa9c6b706d5c1a languageName: node linkType: hard @@ -824,7 +842,7 @@ __metadata: version: 0.0.0-use.local resolution: "@number0/iroh@workspace:." dependencies: - "@napi-rs/cli": "npm:^3.0.0-alpha.62" + "@napi-rs/cli": "npm:^3.0.0-alpha.64" ava: "npm:^6.0.1" languageName: unknown linkType: soft @@ -931,15 +949,15 @@ __metadata: languageName: node linkType: hard -"@octokit/rest@npm:^21.0.0": - version: 21.0.1 - resolution: "@octokit/rest@npm:21.0.1" +"@octokit/rest@npm:^21.0.2": + version: 21.0.2 + resolution: "@octokit/rest@npm:21.0.2" dependencies: "@octokit/core": "npm:^6.1.2" "@octokit/plugin-paginate-rest": "npm:^11.0.0" "@octokit/plugin-request-log": "npm:^5.3.1" "@octokit/plugin-rest-endpoint-methods": "npm:^13.0.0" - checksum: 10c0/b1d54fa564ef2a96f9d25f17df6bbc845aa4a10eec7dd810b65ed616755a24c5cc9d98ad20cf9ba61eb0c9d8cf5ce44814e544f4247d0c1e4d2fc74f265188d2 + checksum: 10c0/4c7f0cf2797a7da5a6e3d8d7a7cfcc47b36de20a8d3e23289cc5dff2a32228254a6db459b0196f71efe229ef59fa6696591182c6c3bee7a4d658f2a0ef4c26bc languageName: node linkType: hard @@ -985,31 +1003,6 @@ __metadata: languageName: node linkType: hard -"@types/mute-stream@npm:^0.0.4": - version: 0.0.4 - resolution: "@types/mute-stream@npm:0.0.4" - dependencies: - "@types/node": "npm:*" - checksum: 10c0/944730fd7b398c5078de3c3d4d0afeec8584283bc694da1803fdfca14149ea385e18b1b774326f1601baf53898ce6d121a952c51eb62d188ef6fcc41f725c0dc - languageName: node - linkType: hard - -"@types/node@npm:*, @types/node@npm:^22.1.0": - version: 22.3.0 - resolution: "@types/node@npm:22.3.0" - dependencies: - undici-types: "npm:~6.18.2" - checksum: 10c0/855be3b97f4262a84818f889ff898e147dcef4f72b866e3551a8367380cdb63a45cf3929f09d9a0647f62706f8d4772e91a1ecd1bd7c6a80d6744c2b0cbca608 - languageName: node - linkType: hard - -"@types/wrap-ansi@npm:^3.0.0": - version: 3.0.0 - resolution: "@types/wrap-ansi@npm:3.0.0" - checksum: 10c0/8d8f53363f360f38135301a06b596c295433ad01debd082078c33c6ed98b05a5c8fe8853a88265432126096084f4a135ec1564e3daad631b83296905509f90b3 - languageName: node - linkType: hard - "@vercel/nft@npm:^0.26.2": version: 0.26.5 resolution: "@vercel/nft@npm:0.26.5" @@ -1399,13 +1392,6 @@ __metadata: languageName: node linkType: hard -"cli-spinners@npm:^2.9.2": - version: 2.9.2 - resolution: "cli-spinners@npm:2.9.2" - checksum: 10c0/907a1c227ddf0d7a101e7ab8b300affc742ead4b4ebe920a5bf1bc6d45dce2958fcd195eb28fa25275062fe6fa9b109b93b63bc8033396ed3bcb50297008b3a3 - languageName: node - linkType: hard - "cli-truncate@npm:^4.0.0": version: 4.0.0 resolution: "cli-truncate@npm:4.0.0" @@ -1571,6 +1557,18 @@ __metadata: languageName: node linkType: hard +"debug@npm:^4.3.7": + version: 4.3.7 + resolution: "debug@npm:4.3.7" + dependencies: + ms: "npm:^2.1.3" + peerDependenciesMeta: + supports-color: + optional: true + checksum: 10c0/1471db19c3b06d485a622d62f65947a19a23fbd0dd73f7fd3eafb697eec5360cde447fb075919987899b1a2096e85d35d4eb5a4de09a57600ac9cf7e6c8e768b + languageName: node + linkType: hard + "delegates@npm:^1.0.0": version: 1.0.0 resolution: "delegates@npm:1.0.0" @@ -1599,15 +1597,15 @@ __metadata: languageName: node linkType: hard -"emnapi@npm:^1.2.0": - version: 1.2.0 - resolution: "emnapi@npm:1.2.0" +"emnapi@npm:^1.3.1": + version: 1.3.1 + resolution: "emnapi@npm:1.3.1" peerDependencies: node-addon-api: ">= 6.1.0" peerDependenciesMeta: node-addon-api: optional: true - checksum: 10c0/55104c2fae30bbc7ef825731e6ab88109693c27e82554a68ba970338744aad9d6f34fcf1fe163caef3cce8f404e0e12789f498ea430496002b2a6531b749c25a + checksum: 10c0/db471d8ef056f6735a109367068d27d2f2c45d0cf1edc3efcc360485a585ce71130e43012b4d4936302780edbb68e3a23932fe3715114f2ce4229dc7ee0f5f2c languageName: node linkType: hard @@ -2019,21 +2017,6 @@ __metadata: languageName: node linkType: hard -"inquirer@npm:^10.0.0": - version: 10.1.8 - resolution: "inquirer@npm:10.1.8" - dependencies: - "@inquirer/prompts": "npm:^5.3.8" - "@inquirer/type": "npm:^1.5.2" - "@types/mute-stream": "npm:^0.0.4" - ansi-escapes: "npm:^4.3.2" - mute-stream: "npm:^1.0.0" - run-async: "npm:^3.0.0" - rxjs: "npm:^7.8.1" - checksum: 10c0/a80b99dadc4af45c49197879de9f706b02d9c79204caea453072993eb72b0a7922ba07a3e468de9139341bc9d74112b20040b68b3590ef927308a2a71a63dba7 - languageName: node - linkType: hard - "ip-address@npm:^9.0.5": version: 9.0.5 resolution: "ip-address@npm:9.0.5" @@ -2413,10 +2396,10 @@ __metadata: languageName: node linkType: hard -"mute-stream@npm:^1.0.0": - version: 1.0.0 - resolution: "mute-stream@npm:1.0.0" - checksum: 10c0/dce2a9ccda171ec979a3b4f869a102b1343dee35e920146776780de182f16eae459644d187e38d59a3d37adf85685e1c17c38cf7bfda7e39a9880f7a1d10a74c +"mute-stream@npm:^2.0.0": + version: 2.0.0 + resolution: "mute-stream@npm:2.0.0" + checksum: 10c0/2cf48a2087175c60c8dcdbc619908b49c07f7adcfc37d29236b0c5c612d6204f789104c98cc44d38acab7b3c96f4a3ec2cfdc4934d0738d876dbefa2a12c69f4 languageName: node linkType: hard @@ -2722,13 +2705,6 @@ __metadata: languageName: node linkType: hard -"run-async@npm:^3.0.0": - version: 3.0.0 - resolution: "run-async@npm:3.0.0" - checksum: 10c0/b18b562ae37c3020083dcaae29642e4cc360c824fbfb6b7d50d809a9d5227bb986152d09310255842c8dce40526e82ca768f02f00806c91ba92a8dfa6159cb85 - languageName: node - linkType: hard - "run-parallel@npm:^1.1.9": version: 1.2.0 resolution: "run-parallel@npm:1.2.0" @@ -2738,15 +2714,6 @@ __metadata: languageName: node linkType: hard -"rxjs@npm:^7.8.1": - version: 7.8.1 - resolution: "rxjs@npm:7.8.1" - dependencies: - tslib: "npm:^2.1.0" - checksum: 10c0/3c49c1ecd66170b175c9cacf5cef67f8914dcbc7cd0162855538d365c83fea631167cacb644b3ce533b2ea0e9a4d0b12175186985f89d75abe73dbd8f7f06f68 - languageName: node - linkType: hard - "safe-buffer@npm:~5.2.0": version: 5.2.1 resolution: "safe-buffer@npm:5.2.1" @@ -2770,7 +2737,7 @@ __metadata: languageName: node linkType: hard -"semver@npm:^7.3.2, semver@npm:^7.3.5, semver@npm:^7.5.4": +"semver@npm:^7.3.2, semver@npm:^7.3.5, semver@npm:^7.6.3": version: 7.6.3 resolution: "semver@npm:7.6.3" bin: @@ -3034,7 +3001,7 @@ __metadata: languageName: node linkType: hard -"tslib@npm:^2.1.0, tslib@npm:^2.4.0": +"tslib@npm:^2.4.0": version: 2.6.3 resolution: "tslib@npm:2.6.3" checksum: 10c0/2598aef53d9dbe711af75522464b2104724d6467b26a60f2bdac8297d2b5f1f6b86a71f61717384aa8fd897240467aaa7bcc36a0700a0faf751293d1331db39a @@ -3062,13 +3029,6 @@ __metadata: languageName: node linkType: hard -"undici-types@npm:~6.18.2": - version: 6.18.2 - resolution: "undici-types@npm:6.18.2" - checksum: 10c0/dea28163891a5af7624c120107dc07a74c369ee94c6dd1d0de29af061ee129fac4846f97130589f4436b85f6102c73d30328ca908be02626dd8ab9fec5642aba - languageName: node - linkType: hard - "unicorn-magic@npm:^0.1.0": version: 0.1.0 resolution: "unicorn-magic@npm:0.1.0" diff --git a/kotlin/iroh/iroh_ffi.kt b/kotlin/iroh/iroh_ffi.kt index 5dea30d0..0ea7563a 100644 --- a/kotlin/iroh/iroh_ffi.kt +++ b/kotlin/iroh/iroh_ffi.kt @@ -42,6 +42,9 @@ import kotlin.coroutines.resume // A rust-owned buffer is represented by its capacity, its current length, and a // pointer to the underlying data. +/** + * @suppress + */ @Structure.FieldOrder("capacity", "len", "data") open class RustBuffer : Structure() { // Note: `capacity` and `len` are actually `ULong` values, but JVM only supports signed values. @@ -107,6 +110,8 @@ open class RustBuffer : Structure() { * Required for callbacks taking in an out pointer. * * Size is the sum of all values in the struct. + * + * @suppress */ class RustBufferByReference : ByReference(16) { /** @@ -141,7 +146,7 @@ class RustBufferByReference : ByReference(16) { // completeness. @Structure.FieldOrder("len", "data") -open class ForeignBytes : Structure() { +internal open class ForeignBytes : Structure() { @JvmField var len: Int = 0 @JvmField var data: Pointer? = null @@ -151,10 +156,14 @@ open class ForeignBytes : Structure() { Structure.ByValue } -// The FfiConverter interface handles converter types to and from the FFI -// -// All implementing objects should be public to support external types. When a -// type is external we need to import it's FfiConverter. +/** + * The FfiConverter interface handles converter types to and from the FFI + * + * All implementing objects should be public to support external types. When a + * type is external we need to import it's FfiConverter. + * + * @suppress + */ public interface FfiConverter { // Convert an FFI type to a Kotlin type fun lift(value: FfiType): KotlinType @@ -221,7 +230,11 @@ public interface FfiConverter { } } -// FfiConverter that uses `RustBuffer` as the FfiType +/** + * FfiConverter that uses `RustBuffer` as the FfiType + * + * @suppress + */ public interface FfiConverterRustBuffer : FfiConverter { override fun lift(value: RustBuffer.ByValue) = liftFromRustBuffer(value) @@ -267,7 +280,11 @@ class InternalException( message: String, ) : kotlin.Exception(message) -// Each top-level error class has a companion object that can lift the error from the call status's rust buffer +/** + * Each top-level error class has a companion object that can lift the error from the call status's rust buffer + * + * @suppress + */ interface UniffiRustCallStatusErrorHandler { fun lift(error_buf: RustBuffer.ByValue): E } @@ -310,7 +327,11 @@ private fun uniffiCheckCallStatus( } } -// UniffiRustCallStatusErrorHandler implementation for times when we don't expect a CALL_ERROR +/** + * UniffiRustCallStatusErrorHandler implementation for times when we don't expect a CALL_ERROR + * + * @suppress + */ object UniffiNullRustCallStatusErrorHandler : UniffiRustCallStatusErrorHandler { override fun lift(error_buf: RustBuffer.ByValue): InternalException { RustBuffer.free(error_buf) @@ -2003,12 +2024,6 @@ internal interface UniffiLib : Library { `alpn`: RustBuffer.ByValue, ): Long - fun uniffi_iroh_ffi_fn_method_endpoint_connect_by_node_id( - `ptr`: Pointer, - `nodeId`: RustBuffer.ByValue, - `alpn`: RustBuffer.ByValue, - ): Long - fun uniffi_iroh_ffi_fn_clone_entry( `ptr`: Pointer, uniffi_out_err: UniffiRustCallStatus, @@ -3309,8 +3324,6 @@ internal interface UniffiLib : Library { fun uniffi_iroh_ffi_checksum_method_endpoint_connect(): Short - fun uniffi_iroh_ffi_checksum_method_endpoint_connect_by_node_id(): Short - fun uniffi_iroh_ffi_checksum_method_entry_author(): Short fun uniffi_iroh_ffi_checksum_method_entry_content_bytes(): Short @@ -3558,7 +3571,7 @@ internal interface UniffiLib : Library { private fun uniffiCheckContractApiVersion(lib: UniffiLib) { // Get the bindings contract version from our ComponentInterface - val bindings_contract_version = 27 + val bindings_contract_version = 26 // Get the scaffolding contract version by calling the into the dylib val scaffolding_contract_version = lib.ffi_iroh_ffi_uniffi_contract_version() if (bindings_contract_version != scaffolding_contract_version) { @@ -3979,9 +3992,6 @@ private fun uniffiCheckApiChecksums(lib: UniffiLib) { if (lib.uniffi_iroh_ffi_checksum_method_endpoint_connect() != 29734.toShort()) { throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project") } - if (lib.uniffi_iroh_ffi_checksum_method_endpoint_connect_by_node_id() != 56155.toShort()) { - throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - } if (lib.uniffi_iroh_ffi_checksum_method_entry_author() != 39787.toShort()) { throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project") } @@ -4491,6 +4501,9 @@ interface Disposable { } } +/** + * @suppress + */ inline fun T.use(block: (T) -> R) = try { block(this) @@ -4503,9 +4516,16 @@ inline fun T.use(block: (T) -> R) = } } -/** Used to instantiate an interface without an actual pointer, for fakes in tests, mostly. */ +/** + * Used to instantiate an interface without an actual pointer, for fakes in tests, mostly. + * + * @suppress + * */ object NoPointer +/** + * @suppress + */ public object FfiConverterUInt : FfiConverter { override fun lift(value: Int): UInt = value.toUInt() @@ -4523,6 +4543,9 @@ public object FfiConverterUInt : FfiConverter { } } +/** + * @suppress + */ public object FfiConverterInt : FfiConverter { override fun lift(value: Int): Int = value @@ -4540,6 +4563,9 @@ public object FfiConverterInt : FfiConverter { } } +/** + * @suppress + */ public object FfiConverterULong : FfiConverter { override fun lift(value: Long): ULong = value.toULong() @@ -4557,6 +4583,9 @@ public object FfiConverterULong : FfiConverter { } } +/** + * @suppress + */ public object FfiConverterBoolean : FfiConverter { override fun lift(value: Byte): Boolean = value.toInt() != 0 @@ -4574,6 +4603,9 @@ public object FfiConverterBoolean : FfiConverter { } } +/** + * @suppress + */ public object FfiConverterString : FfiConverter { // Note: we don't inherit from FfiConverterRustBuffer, because we use a // special encoding when lowering/lifting. We can use `RustBuffer.len` to @@ -4631,6 +4663,9 @@ public object FfiConverterString : FfiConverter { } } +/** + * @suppress + */ public object FfiConverterByteArray : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): ByteArray { val len = buf.getInt() @@ -4650,6 +4685,9 @@ public object FfiConverterByteArray : FfiConverterRustBuffer { } } +/** + * @suppress + */ public object FfiConverterTimestamp : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): java.time.Instant { val seconds = buf.getLong() @@ -4694,6 +4732,9 @@ public object FfiConverterTimestamp : FfiConverterRustBuffer } } +/** + * @suppress + */ public object FfiConverterDuration : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): java.time.Duration { // Type mismatch (should be u64) but we check for overflow/underflow below @@ -4831,12 +4872,16 @@ public object FfiConverterDuration : FfiConverterRustBuffer // [1] https://stackoverflow.com/questions/24376768/can-java-finalize-an-object-when-it-is-still-in-scope/24380219 // -// The cleaner interface for Object finalization code to run. -// This is the entry point to any implementation that we're using. -// -// The cleaner registers objects and returns cleanables, so now we are -// defining a `UniffiCleaner` with a `UniffiClenaer.Cleanable` to abstract the -// different implmentations available at compile time. +/** + * The cleaner interface for Object finalization code to run. + * This is the entry point to any implementation that we're using. + * + * The cleaner registers objects and returns cleanables, so now we are + * defining a `UniffiCleaner` with a `UniffiClenaer.Cleanable` to abstract the + * different implmentations available at compile time. + * + * @suppress + */ interface UniffiCleaner { interface Cleanable { fun clean() @@ -5033,6 +5078,9 @@ internal const val UNIFFI_CALLBACK_SUCCESS = 0 internal const val UNIFFI_CALLBACK_ERROR = 1 internal const val UNIFFI_CALLBACK_UNEXPECTED_ERROR = 2 +/** + * @suppress + */ public abstract class FfiConverterCallbackInterface : FfiConverter { internal val handleMap = UniffiHandleMap() @@ -5119,6 +5167,9 @@ internal object uniffiCallbackInterfaceAddCallback { } } +/** + * @suppress + */ public object FfiConverterTypeAddCallback : FfiConverter { internal val handleMap = UniffiHandleMap() @@ -5458,6 +5509,9 @@ open class AddProgress : companion object } +/** + * @suppress + */ public object FfiConverterTypeAddProgress : FfiConverter { override fun lower(value: AddProgress): Pointer = value.uniffiClonePointer() @@ -5725,6 +5779,9 @@ open class Author : } } +/** + * @suppress + */ public object FfiConverterTypeAuthor : FfiConverter { override fun lower(value: Author): Pointer = value.uniffiClonePointer() @@ -5989,6 +6046,9 @@ open class AuthorId : } } +/** + * @suppress + */ public object FfiConverterTypeAuthorId : FfiConverter { override fun lower(value: AuthorId): Pointer = value.uniffiClonePointer() @@ -6419,9 +6479,9 @@ open class Authors : ) }, { - future, - callback, - continuation, + future, + callback, + continuation, -> UniffiLib.INSTANCE.ffi_iroh_ffi_rust_future_poll_rust_buffer(future, callback, continuation) }, @@ -6436,6 +6496,9 @@ open class Authors : companion object } +/** + * @suppress + */ public object FfiConverterTypeAuthors : FfiConverter { override fun lower(value: Authors): Pointer = value.uniffiClonePointer() @@ -6675,6 +6738,9 @@ open class BiStream : companion object } +/** + * @suppress + */ public object FfiConverterTypeBiStream : FfiConverter { override fun lower(value: BiStream): Pointer = value.uniffiClonePointer() @@ -6907,6 +6973,9 @@ open class BlobDownloadOptions : companion object } +/** + * @suppress + */ public object FfiConverterTypeBlobDownloadOptions : FfiConverter { override fun lower(value: BlobDownloadOptions): Pointer = value.uniffiClonePointer() @@ -7304,6 +7373,9 @@ open class BlobProvideEvent : companion object } +/** + * @suppress + */ public object FfiConverterTypeBlobProvideEvent : FfiConverter { override fun lower(value: BlobProvideEvent): Pointer = value.uniffiClonePointer() @@ -7609,6 +7681,9 @@ internal object uniffiCallbackInterfaceBlobProvideEventCallback { } } +/** + * @suppress + */ public object FfiConverterTypeBlobProvideEventCallback : FfiConverter { internal val handleMap = UniffiHandleMap() @@ -7953,6 +8028,9 @@ open class BlobTicket : companion object } +/** + * @suppress + */ public object FfiConverterTypeBlobTicket : FfiConverter { override fun lower(value: BlobTicket): Pointer = value.uniffiClonePointer() @@ -8330,9 +8408,9 @@ open class Blobs : ) }, { - future, - callback, - continuation, + future, + callback, + continuation, -> UniffiLib.INSTANCE.ffi_iroh_ffi_rust_future_poll_rust_buffer(future, callback, continuation) }, @@ -8362,9 +8440,9 @@ open class Blobs : ) }, { - future, - callback, - continuation, + future, + callback, + continuation, -> UniffiLib.INSTANCE.ffi_iroh_ffi_rust_future_poll_rust_buffer(future, callback, continuation) }, @@ -8435,9 +8513,9 @@ open class Blobs : ) }, { - future, - callback, - continuation, + future, + callback, + continuation, -> UniffiLib.INSTANCE.ffi_iroh_ffi_rust_future_poll_rust_buffer(future, callback, continuation) }, @@ -8573,9 +8651,9 @@ open class Blobs : ) }, { - future, - callback, - continuation, + future, + callback, + continuation, -> UniffiLib.INSTANCE.ffi_iroh_ffi_rust_future_poll_rust_buffer(future, callback, continuation) }, @@ -8603,9 +8681,9 @@ open class Blobs : ) }, { - future, - callback, - continuation, + future, + callback, + continuation, -> UniffiLib.INSTANCE.ffi_iroh_ffi_rust_future_poll_rust_buffer(future, callback, continuation) }, @@ -8633,9 +8711,9 @@ open class Blobs : ) }, { - future, - callback, - continuation, + future, + callback, + continuation, -> UniffiLib.INSTANCE.ffi_iroh_ffi_rust_future_poll_rust_buffer(future, callback, continuation) }, @@ -8671,9 +8749,9 @@ open class Blobs : ) }, { - future, - callback, - continuation, + future, + callback, + continuation, -> UniffiLib.INSTANCE.ffi_iroh_ffi_rust_future_poll_rust_buffer(future, callback, continuation) }, @@ -8703,9 +8781,9 @@ open class Blobs : ) }, { - future, - callback, - continuation, + future, + callback, + continuation, -> UniffiLib.INSTANCE.ffi_iroh_ffi_rust_future_poll_rust_buffer(future, callback, continuation) }, @@ -8798,6 +8876,9 @@ open class Blobs : companion object } +/** + * @suppress + */ public object FfiConverterTypeBlobs : FfiConverter { override fun lower(value: Blobs): Pointer = value.uniffiClonePointer() @@ -9158,6 +9239,9 @@ open class Collection : companion object } +/** + * @suppress + */ public object FfiConverterTypeCollection : FfiConverter { override fun lower(value: Collection): Pointer = value.uniffiClonePointer() @@ -9384,9 +9468,9 @@ open class Connecting : ) }, { - future, - callback, - continuation, + future, + callback, + continuation, -> UniffiLib.INSTANCE.ffi_iroh_ffi_rust_future_poll_rust_buffer(future, callback, continuation) }, @@ -9426,9 +9510,9 @@ open class Connecting : ) }, { - future, - callback, - continuation, + future, + callback, + continuation, -> UniffiLib.INSTANCE.ffi_iroh_ffi_rust_future_poll_rust_buffer(future, callback, continuation) }, @@ -9450,9 +9534,9 @@ open class Connecting : ) }, { - future, - callback, - continuation, + future, + callback, + continuation, -> UniffiLib.INSTANCE.ffi_iroh_ffi_rust_future_poll_rust_buffer(future, callback, continuation) }, @@ -9467,6 +9551,9 @@ open class Connecting : companion object } +/** + * @suppress + */ public object FfiConverterTypeConnecting : FfiConverter { override fun lower(value: Connecting): Pointer = value.uniffiClonePointer() @@ -9790,9 +9877,9 @@ open class Connection : ) }, { - future, - callback, - continuation, + future, + callback, + continuation, -> UniffiLib.INSTANCE.ffi_iroh_ffi_rust_future_poll_rust_buffer(future, callback, continuation) }, @@ -9899,9 +9986,9 @@ open class Connection : ) }, { - future, - callback, - continuation, + future, + callback, + continuation, -> UniffiLib.INSTANCE.ffi_iroh_ffi_rust_future_poll_rust_buffer(future, callback, continuation) }, @@ -10019,6 +10106,9 @@ open class Connection : companion object } +/** + * @suppress + */ public object FfiConverterTypeConnection : FfiConverter { override fun lower(value: Connection): Pointer = value.uniffiClonePointer() @@ -10316,6 +10406,9 @@ open class ConnectionType : companion object } +/** + * @suppress + */ public object FfiConverterTypeConnectionType : FfiConverter { override fun lower(value: ConnectionType): Pointer = value.uniffiClonePointer() @@ -10613,6 +10706,9 @@ open class DirectAddrInfo : companion object } +/** + * @suppress + */ public object FfiConverterTypeDirectAddrInfo : FfiConverter { override fun lower(value: DirectAddrInfo): Pointer = value.uniffiClonePointer() @@ -11074,9 +11170,9 @@ open class Doc : ) }, { - future, - callback, - continuation, + future, + callback, + continuation, -> UniffiLib.INSTANCE.ffi_iroh_ffi_rust_future_poll_rust_buffer(future, callback, continuation) }, @@ -11105,9 +11201,9 @@ open class Doc : ) }, { - future, - callback, - continuation, + future, + callback, + continuation, -> UniffiLib.INSTANCE.ffi_iroh_ffi_rust_future_poll_rust_buffer(future, callback, continuation) }, @@ -11133,9 +11229,9 @@ open class Doc : ) }, { - future, - callback, - continuation, + future, + callback, + continuation, -> UniffiLib.INSTANCE.ffi_iroh_ffi_rust_future_poll_rust_buffer(future, callback, continuation) }, @@ -11160,9 +11256,9 @@ open class Doc : ) }, { - future, - callback, - continuation, + future, + callback, + continuation, -> UniffiLib.INSTANCE.ffi_iroh_ffi_rust_future_poll_rust_buffer(future, callback, continuation) }, @@ -11381,9 +11477,9 @@ open class Doc : ) }, { - future, - callback, - continuation, + future, + callback, + continuation, -> UniffiLib.INSTANCE.ffi_iroh_ffi_rust_future_poll_rust_buffer(future, callback, continuation) }, @@ -11420,6 +11516,9 @@ open class Doc : companion object } +/** + * @suppress + */ public object FfiConverterTypeDoc : FfiConverter { override fun lower(value: Doc): Pointer = value.uniffiClonePointer() @@ -11725,6 +11824,9 @@ internal object uniffiCallbackInterfaceDocExportFileCallback { } } +/** + * @suppress + */ public object FfiConverterTypeDocExportFileCallback : FfiConverter { internal val handleMap = UniffiHandleMap() @@ -12024,6 +12126,9 @@ open class DocExportProgress : companion object } +/** + * @suppress + */ public object FfiConverterTypeDocExportProgress : FfiConverter { override fun lower(value: DocExportProgress): Pointer = value.uniffiClonePointer() @@ -12329,6 +12434,9 @@ internal object uniffiCallbackInterfaceDocImportFileCallback { } } +/** + * @suppress + */ public object FfiConverterTypeDocImportFileCallback : FfiConverter { internal val handleMap = UniffiHandleMap() @@ -12668,6 +12776,9 @@ open class DocImportProgress : companion object } +/** + * @suppress + */ public object FfiConverterTypeDocImportProgress : FfiConverter { override fun lower(value: DocImportProgress): Pointer = value.uniffiClonePointer() @@ -12906,6 +13017,9 @@ open class DocTicket : companion object } +/** + * @suppress + */ public object FfiConverterTypeDocTicket : FfiConverter { override fun lower(value: DocTicket): Pointer = value.uniffiClonePointer() @@ -13267,9 +13381,9 @@ open class Docs : ) }, { - future, - callback, - continuation, + future, + callback, + continuation, -> UniffiLib.INSTANCE.ffi_iroh_ffi_rust_future_poll_rust_buffer(future, callback, continuation) }, @@ -13297,9 +13411,9 @@ open class Docs : ) }, { - future, - callback, - continuation, + future, + callback, + continuation, -> UniffiLib.INSTANCE.ffi_iroh_ffi_rust_future_poll_rust_buffer(future, callback, continuation) }, @@ -13314,6 +13428,9 @@ open class Docs : companion object } +/** + * @suppress + */ public object FfiConverterTypeDocs : FfiConverter { override fun lower(value: Docs): Pointer = value.uniffiClonePointer() @@ -13619,6 +13736,9 @@ internal object uniffiCallbackInterfaceDownloadCallback { } } +/** + * @suppress + */ public object FfiConverterTypeDownloadCallback : FfiConverter { internal val handleMap = UniffiHandleMap() @@ -13888,6 +14008,9 @@ open class DownloadPolicy : } } +/** + * @suppress + */ public object FfiConverterTypeDownloadPolicy : FfiConverter { override fun lower(value: DownloadPolicy): Pointer = value.uniffiClonePointer() @@ -14267,6 +14390,9 @@ open class DownloadProgress : companion object } +/** + * @suppress + */ public object FfiConverterTypeDownloadProgress : FfiConverter { override fun lower(value: DownloadProgress): Pointer = value.uniffiClonePointer() @@ -14393,11 +14519,6 @@ public interface EndpointInterface { `alpn`: kotlin.ByteArray, ): Connection - suspend fun `connectByNodeId`( - `nodeId`: kotlin.String, - `alpn`: kotlin.ByteArray, - ): Connection - companion object } @@ -14508,32 +14629,12 @@ open class Endpoint : IrohException.ErrorHandler, ) - @Throws(IrohException::class) - @Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE") - override suspend fun `connectByNodeId`( - `nodeId`: kotlin.String, - `alpn`: kotlin.ByteArray, - ): Connection = - uniffiRustCallAsync( - callWithPointer { thisPtr -> - UniffiLib.INSTANCE.uniffi_iroh_ffi_fn_method_endpoint_connect_by_node_id( - thisPtr, - FfiConverterString.lower(`nodeId`), - FfiConverterByteArray.lower(`alpn`), - ) - }, - { future, callback, continuation -> UniffiLib.INSTANCE.ffi_iroh_ffi_rust_future_poll_pointer(future, callback, continuation) }, - { future, continuation -> UniffiLib.INSTANCE.ffi_iroh_ffi_rust_future_complete_pointer(future, continuation) }, - { future -> UniffiLib.INSTANCE.ffi_iroh_ffi_rust_future_free_pointer(future) }, - // lift function - { FfiConverterTypeConnection.lift(it) }, - // Error FFI converter - IrohException.ErrorHandler, - ) - companion object } +/** + * @suppress + */ public object FfiConverterTypeEndpoint : FfiConverter { override fun lower(value: Endpoint): Pointer = value.uniffiClonePointer() @@ -14826,9 +14927,9 @@ open class Entry : ) }, { - future, - callback, - continuation, + future, + callback, + continuation, -> UniffiLib.INSTANCE.ffi_iroh_ffi_rust_future_poll_rust_buffer(future, callback, continuation) }, @@ -14918,6 +15019,9 @@ open class Entry : companion object } +/** + * @suppress + */ public object FfiConverterTypeEntry : FfiConverter { override fun lower(value: Entry): Pointer = value.uniffiClonePointer() @@ -15182,6 +15286,9 @@ open class FilterKind : } } +/** + * @suppress + */ public object FfiConverterTypeFilterKind : FfiConverter { override fun lower(value: FilterKind): Pointer = value.uniffiClonePointer() @@ -15430,6 +15537,9 @@ open class Gossip : companion object } +/** + * @suppress + */ public object FfiConverterTypeGossip : FfiConverter { override fun lower(value: Gossip): Pointer = value.uniffiClonePointer() @@ -15725,6 +15835,9 @@ internal object uniffiCallbackInterfaceGossipMessageCallback { } } +/** + * @suppress + */ public object FfiConverterTypeGossipMessageCallback : FfiConverter { internal val handleMap = UniffiHandleMap() @@ -16058,6 +16171,9 @@ open class Hash : } } +/** + * @suppress + */ public object FfiConverterTypeHash : FfiConverter { override fun lower(value: Hash): Pointer = value.uniffiClonePointer() @@ -16422,9 +16538,9 @@ open class Iroh : uniffiRustCallAsync( UniffiLib.INSTANCE.uniffi_iroh_ffi_fn_constructor_iroh_client(FfiConverterOptionalString.lower(`addr`)), { - future, - callback, - continuation, + future, + callback, + continuation, -> UniffiLib.INSTANCE.ffi_iroh_ffi_rust_future_poll_pointer(future, callback, continuation) }, @@ -16447,9 +16563,9 @@ open class Iroh : uniffiRustCallAsync( UniffiLib.INSTANCE.uniffi_iroh_ffi_fn_constructor_iroh_memory(), { - future, - callback, - continuation, + future, + callback, + continuation, -> UniffiLib.INSTANCE.ffi_iroh_ffi_rust_future_poll_pointer(future, callback, continuation) }, @@ -16470,9 +16586,9 @@ open class Iroh : uniffiRustCallAsync( UniffiLib.INSTANCE.uniffi_iroh_ffi_fn_constructor_iroh_memory_with_options(FfiConverterTypeNodeOptions.lower(`options`)), { - future, - callback, - continuation, + future, + callback, + continuation, -> UniffiLib.INSTANCE.ffi_iroh_ffi_rust_future_poll_pointer(future, callback, continuation) }, @@ -16496,9 +16612,9 @@ open class Iroh : uniffiRustCallAsync( UniffiLib.INSTANCE.uniffi_iroh_ffi_fn_constructor_iroh_persistent(FfiConverterString.lower(`path`)), { - future, - callback, - continuation, + future, + callback, + continuation, -> UniffiLib.INSTANCE.ffi_iroh_ffi_rust_future_poll_pointer(future, callback, continuation) }, @@ -16525,9 +16641,9 @@ open class Iroh : FfiConverterTypeNodeOptions.lower(`options`), ), { - future, - callback, - continuation, + future, + callback, + continuation, -> UniffiLib.INSTANCE.ffi_iroh_ffi_rust_future_poll_pointer(future, callback, continuation) }, @@ -16541,6 +16657,9 @@ open class Iroh : } } +/** + * @suppress + */ public object FfiConverterTypeIroh : FfiConverter { override fun lower(value: Iroh): Pointer = value.uniffiClonePointer() @@ -16783,6 +16902,9 @@ open class IrohException : } } +/** + * @suppress + */ public object FfiConverterTypeIrohError : FfiConverter { override fun lower(value: IrohException): Pointer = value.uniffiClonePointer() @@ -17140,6 +17262,9 @@ open class LiveEvent : companion object } +/** + * @suppress + */ public object FfiConverterTypeLiveEvent : FfiConverter { override fun lower(value: LiveEvent): Pointer = value.uniffiClonePointer() @@ -17441,6 +17566,9 @@ open class Message : companion object } +/** + * @suppress + */ public object FfiConverterTypeMessage : FfiConverter { override fun lower(value: Message): Pointer = value.uniffiClonePointer() @@ -17720,9 +17848,9 @@ open class Net : ) }, { - future, - callback, - continuation, + future, + callback, + continuation, -> UniffiLib.INSTANCE.ffi_iroh_ffi_rust_future_poll_rust_buffer(future, callback, continuation) }, @@ -17768,9 +17896,9 @@ open class Net : ) }, { - future, - callback, - continuation, + future, + callback, + continuation, -> UniffiLib.INSTANCE.ffi_iroh_ffi_rust_future_poll_rust_buffer(future, callback, continuation) }, @@ -17796,9 +17924,9 @@ open class Net : ) }, { - future, - callback, - continuation, + future, + callback, + continuation, -> UniffiLib.INSTANCE.ffi_iroh_ffi_rust_future_poll_rust_buffer(future, callback, continuation) }, @@ -17823,9 +17951,9 @@ open class Net : ) }, { - future, - callback, - continuation, + future, + callback, + continuation, -> UniffiLib.INSTANCE.ffi_iroh_ffi_rust_future_poll_rust_buffer(future, callback, continuation) }, @@ -17840,6 +17968,9 @@ open class Net : companion object } +/** + * @suppress + */ public object FfiConverterTypeNet : FfiConverter { override fun lower(value: Net): Pointer = value.uniffiClonePointer() @@ -18138,9 +18269,9 @@ open class Node : ) }, { - future, - callback, - continuation, + future, + callback, + continuation, -> UniffiLib.INSTANCE.ffi_iroh_ffi_rust_future_poll_rust_buffer(future, callback, continuation) }, @@ -18176,6 +18307,9 @@ open class Node : companion object } +/** + * @suppress + */ public object FfiConverterTypeNode : FfiConverter { override fun lower(value: Node): Pointer = value.uniffiClonePointer() @@ -18469,6 +18603,9 @@ open class NodeAddr : companion object } +/** + * @suppress + */ public object FfiConverterTypeNodeAddr : FfiConverter { override fun lower(value: NodeAddr): Pointer = value.uniffiClonePointer() @@ -18766,6 +18903,9 @@ open class NodeStatus : companion object } +/** + * @suppress + */ public object FfiConverterTypeNodeStatus : FfiConverter { override fun lower(value: NodeStatus): Pointer = value.uniffiClonePointer() @@ -19039,6 +19179,9 @@ internal object uniffiCallbackInterfaceProtocolCreator { } } +/** + * @suppress + */ public object FfiConverterTypeProtocolCreator : FfiConverter { internal val handleMap = UniffiHandleMap() @@ -19393,6 +19536,9 @@ internal object uniffiCallbackInterfaceProtocolHandler { } } +/** + * @suppress + */ public object FfiConverterTypeProtocolHandler : FfiConverter { internal val handleMap = UniffiHandleMap() @@ -19721,6 +19867,9 @@ open class PublicKey : } } +/** + * @suppress + */ public object FfiConverterTypePublicKey : FfiConverter { override fun lower(value: PublicKey): Pointer = value.uniffiClonePointer() @@ -20167,6 +20316,9 @@ open class Query : } } +/** + * @suppress + */ public object FfiConverterTypeQuery : FfiConverter { override fun lower(value: Query): Pointer = value.uniffiClonePointer() @@ -20424,6 +20576,9 @@ open class RangeSpec : companion object } +/** + * @suppress + */ public object FfiConverterTypeRangeSpec : FfiConverter { override fun lower(value: RangeSpec): Pointer = value.uniffiClonePointer() @@ -20670,6 +20825,9 @@ open class ReadAtLen : } } +/** + * @suppress + */ public object FfiConverterTypeReadAtLen : FfiConverter { override fun lower(value: ReadAtLen): Pointer = value.uniffiClonePointer() @@ -20899,9 +21057,9 @@ open class RecvStream : ) }, { - future, - callback, - continuation, + future, + callback, + continuation, -> UniffiLib.INSTANCE.ffi_iroh_ffi_rust_future_poll_rust_buffer(future, callback, continuation) }, @@ -20924,9 +21082,9 @@ open class RecvStream : ) }, { - future, - callback, - continuation, + future, + callback, + continuation, -> UniffiLib.INSTANCE.ffi_iroh_ffi_rust_future_poll_rust_buffer(future, callback, continuation) }, @@ -20949,9 +21107,9 @@ open class RecvStream : ) }, { - future, - callback, - continuation, + future, + callback, + continuation, -> UniffiLib.INSTANCE.ffi_iroh_ffi_rust_future_poll_rust_buffer(future, callback, continuation) }, @@ -20974,9 +21132,9 @@ open class RecvStream : ) }, { - future, - callback, - continuation, + future, + callback, + continuation, -> UniffiLib.INSTANCE.ffi_iroh_ffi_rust_future_poll_rust_buffer(future, callback, continuation) }, @@ -20998,9 +21156,9 @@ open class RecvStream : ) }, { - future, - callback, - continuation, + future, + callback, + continuation, -> UniffiLib.INSTANCE.ffi_iroh_ffi_rust_future_poll_rust_buffer(future, callback, continuation) }, @@ -21034,6 +21192,9 @@ open class RecvStream : companion object } +/** + * @suppress + */ public object FfiConverterTypeRecvStream : FfiConverter { override fun lower(value: RecvStream): Pointer = value.uniffiClonePointer() @@ -21285,9 +21446,9 @@ open class SendStream : ) }, { - future, - callback, - continuation, + future, + callback, + continuation, -> UniffiLib.INSTANCE.ffi_iroh_ffi_rust_future_poll_rust_buffer(future, callback, continuation) }, @@ -21365,9 +21526,9 @@ open class SendStream : ) }, { - future, - callback, - continuation, + future, + callback, + continuation, -> UniffiLib.INSTANCE.ffi_iroh_ffi_rust_future_poll_rust_buffer(future, callback, continuation) }, @@ -21420,6 +21581,9 @@ open class SendStream : companion object } +/** + * @suppress + */ public object FfiConverterTypeSendStream : FfiConverter { override fun lower(value: SendStream): Pointer = value.uniffiClonePointer() @@ -21717,6 +21881,9 @@ open class Sender : companion object } +/** + * @suppress + */ public object FfiConverterTypeSender : FfiConverter { override fun lower(value: Sender): Pointer = value.uniffiClonePointer() @@ -21959,6 +22126,9 @@ open class SetTagOption : } } +/** + * @suppress + */ public object FfiConverterTypeSetTagOption : FfiConverter { override fun lower(value: SetTagOption): Pointer = value.uniffiClonePointer() @@ -22264,6 +22434,9 @@ internal object uniffiCallbackInterfaceSubscribeCallback { } } +/** + * @suppress + */ public object FfiConverterTypeSubscribeCallback : FfiConverter { internal val handleMap = UniffiHandleMap() @@ -22531,9 +22704,9 @@ open class Tags : ) }, { - future, - callback, - continuation, + future, + callback, + continuation, -> UniffiLib.INSTANCE.ffi_iroh_ffi_rust_future_poll_rust_buffer(future, callback, continuation) }, @@ -22548,6 +22721,9 @@ open class Tags : companion object } +/** + * @suppress + */ public object FfiConverterTypeTags : FfiConverter { override fun lower(value: Tags): Pointer = value.uniffiClonePointer() @@ -22790,6 +22966,9 @@ open class WrapOption : } } +/** + * @suppress + */ public object FfiConverterTypeWrapOption : FfiConverter { override fun lower(value: WrapOption): Pointer = value.uniffiClonePointer() @@ -22822,6 +23001,9 @@ data class AddProgressAbort( companion object } +/** + * @suppress + */ public object FfiConverterTypeAddProgressAbort : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): AddProgressAbort = AddProgressAbort( @@ -22870,6 +23052,9 @@ data class AddProgressAllDone( companion object } +/** + * @suppress + */ public object FfiConverterTypeAddProgressAllDone : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): AddProgressAllDone = AddProgressAllDone( @@ -22918,6 +23103,9 @@ data class AddProgressDone( companion object } +/** + * @suppress + */ public object FfiConverterTypeAddProgressDone : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): AddProgressDone = AddProgressDone( @@ -22960,6 +23148,9 @@ data class AddProgressFound( companion object } +/** + * @suppress + */ public object FfiConverterTypeAddProgressFound : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): AddProgressFound = AddProgressFound( @@ -23001,6 +23192,9 @@ data class AddProgressProgress( companion object } +/** + * @suppress + */ public object FfiConverterTypeAddProgressProgress : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): AddProgressProgress = AddProgressProgress( @@ -23058,6 +23252,9 @@ data class BlobAddOutcome( companion object } +/** + * @suppress + */ public object FfiConverterTypeBlobAddOutcome : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): BlobAddOutcome = BlobAddOutcome( @@ -23115,6 +23312,9 @@ data class BlobInfo( companion object } +/** + * @suppress + */ public object FfiConverterTypeBlobInfo : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): BlobInfo = BlobInfo( @@ -23152,6 +23352,9 @@ data class ClientConnected( companion object } +/** + * @suppress + */ public object FfiConverterTypeClientConnected : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): ClientConnected = ClientConnected( @@ -23210,6 +23413,9 @@ data class CollectionInfo( companion object } +/** + * @suppress + */ public object FfiConverterTypeCollectionInfo : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): CollectionInfo = CollectionInfo( @@ -23254,6 +23460,9 @@ data class ConnectionTypeMixed( companion object } +/** + * @suppress + */ public object FfiConverterTypeConnectionTypeMixed : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): ConnectionTypeMixed = ConnectionTypeMixed( @@ -23292,6 +23501,9 @@ data class CounterStats( companion object } +/** + * @suppress + */ public object FfiConverterTypeCounterStats : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): CounterStats = CounterStats( @@ -23326,6 +23538,9 @@ data class DocExportProgressAbort( companion object } +/** + * @suppress + */ public object FfiConverterTypeDocExportProgressAbort : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): DocExportProgressAbort = DocExportProgressAbort( @@ -23357,6 +23572,9 @@ data class DocExportProgressDone( companion object } +/** + * @suppress + */ public object FfiConverterTypeDocExportProgressDone : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): DocExportProgressDone = DocExportProgressDone( @@ -23411,6 +23629,9 @@ data class DocExportProgressFound( companion object } +/** + * @suppress + */ public object FfiConverterTypeDocExportProgressFound : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): DocExportProgressFound = DocExportProgressFound( @@ -23455,6 +23676,9 @@ data class DocExportProgressProgress( companion object } +/** + * @suppress + */ public object FfiConverterTypeDocExportProgressProgress : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): DocExportProgressProgress = DocExportProgressProgress( @@ -23489,6 +23713,9 @@ data class DocImportProgressAbort( companion object } +/** + * @suppress + */ public object FfiConverterTypeDocImportProgressAbort : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): DocImportProgressAbort = DocImportProgressAbort( @@ -23520,6 +23747,9 @@ data class DocImportProgressAllDone( companion object } +/** + * @suppress + */ public object FfiConverterTypeDocImportProgressAllDone : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): DocImportProgressAllDone = DocImportProgressAllDone( @@ -23559,6 +23789,9 @@ data class DocImportProgressFound( companion object } +/** + * @suppress + */ public object FfiConverterTypeDocImportProgressFound : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): DocImportProgressFound = DocImportProgressFound( @@ -23607,6 +23840,9 @@ data class DocImportProgressIngestDone( companion object } +/** + * @suppress + */ public object FfiConverterTypeDocImportProgressIngestDone : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): DocImportProgressIngestDone = DocImportProgressIngestDone( @@ -23645,6 +23881,9 @@ data class DocImportProgressProgress( companion object } +/** + * @suppress + */ public object FfiConverterTypeDocImportProgressProgress : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): DocImportProgressProgress = DocImportProgressProgress( @@ -23676,6 +23915,9 @@ data class DownloadProgressAbort( companion object } +/** + * @suppress + */ public object FfiConverterTypeDownloadProgressAbort : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): DownloadProgressAbort = DownloadProgressAbort( @@ -23715,6 +23957,9 @@ data class DownloadProgressAllDone( companion object } +/** + * @suppress + */ public object FfiConverterTypeDownloadProgressAllDone : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): DownloadProgressAllDone = DownloadProgressAllDone( @@ -23752,6 +23997,9 @@ data class DownloadProgressDone( companion object } +/** + * @suppress + */ public object FfiConverterTypeDownloadProgressDone : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): DownloadProgressDone = DownloadProgressDone( @@ -23806,6 +24054,9 @@ data class DownloadProgressFound( companion object } +/** + * @suppress + */ public object FfiConverterTypeDownloadProgressFound : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): DownloadProgressFound = DownloadProgressFound( @@ -23857,6 +24108,9 @@ data class DownloadProgressFoundHashSeq( companion object } +/** + * @suppress + */ public object FfiConverterTypeDownloadProgressFoundHashSeq : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): DownloadProgressFoundHashSeq = DownloadProgressFoundHashSeq( @@ -23914,6 +24168,9 @@ data class DownloadProgressFoundLocal( companion object } +/** + * @suppress + */ public object FfiConverterTypeDownloadProgressFoundLocal : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): DownloadProgressFoundLocal = DownloadProgressFoundLocal( @@ -23951,6 +24208,9 @@ data class DownloadProgressInitialState( companion object } +/** + * @suppress + */ public object FfiConverterTypeDownloadProgressInitialState : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): DownloadProgressInitialState = DownloadProgressInitialState( @@ -23986,6 +24246,9 @@ data class DownloadProgressProgress( companion object } +/** + * @suppress + */ public object FfiConverterTypeDownloadProgressProgress : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): DownloadProgressProgress = DownloadProgressProgress( @@ -24037,6 +24300,9 @@ data class GetRequestReceived( companion object } +/** + * @suppress + */ public object FfiConverterTypeGetRequestReceived : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): GetRequestReceived = GetRequestReceived( @@ -24085,6 +24351,9 @@ data class HashAndTag( companion object } +/** + * @suppress + */ public object FfiConverterTypeHashAndTag : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): HashAndTag = HashAndTag( @@ -24136,6 +24405,9 @@ data class IncompleteBlobInfo( companion object } +/** + * @suppress + */ public object FfiConverterTypeIncompleteBlobInfo : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): IncompleteBlobInfo = IncompleteBlobInfo( @@ -24190,6 +24462,9 @@ data class InsertRemoteEvent( companion object } +/** + * @suppress + */ public object FfiConverterTypeInsertRemoteEvent : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): InsertRemoteEvent = InsertRemoteEvent( @@ -24231,6 +24506,9 @@ data class LatencyAndControlMsg( companion object } +/** + * @suppress + */ public object FfiConverterTypeLatencyAndControlMsg : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): LatencyAndControlMsg = LatencyAndControlMsg( @@ -24276,6 +24554,9 @@ data class LinkAndName( companion object } +/** + * @suppress + */ public object FfiConverterTypeLinkAndName : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): LinkAndName = LinkAndName( @@ -24314,6 +24595,9 @@ data class MessageContent( companion object } +/** + * @suppress + */ public object FfiConverterTypeMessageContent : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): MessageContent = MessageContent( @@ -24352,6 +24636,9 @@ data class NamespaceAndCapability( companion object } +/** + * @suppress + */ public object FfiConverterTypeNamespaceAndCapability : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): NamespaceAndCapability = NamespaceAndCapability( @@ -24443,6 +24730,9 @@ data class NodeOptions( companion object } +/** + * @suppress + */ public object FfiConverterTypeNodeOptions : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): NodeOptions = NodeOptions( @@ -24509,6 +24799,9 @@ data class OpenState( companion object } +/** + * @suppress + */ public object FfiConverterTypeOpenState : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): OpenState = OpenState( @@ -24564,6 +24857,9 @@ data class QueryOptions( companion object } +/** + * @suppress + */ public object FfiConverterTypeQueryOptions : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): QueryOptions = QueryOptions( @@ -24641,6 +24937,9 @@ data class RemoteInfo( companion object } +/** + * @suppress + */ public object FfiConverterTypeRemoteInfo : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): RemoteInfo = RemoteInfo( @@ -24716,6 +25015,9 @@ data class SyncEvent( companion object } +/** + * @suppress + */ public object FfiConverterTypeSyncEvent : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): SyncEvent = SyncEvent( @@ -24776,6 +25078,9 @@ data class TagInfo( companion object } +/** + * @suppress + */ public object FfiConverterTypeTagInfo : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): TagInfo = TagInfo( @@ -24830,6 +25135,9 @@ data class TaggedBlobAdded( companion object } +/** + * @suppress + */ public object FfiConverterTypeTaggedBlobAdded : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): TaggedBlobAdded = TaggedBlobAdded( @@ -24876,6 +25184,9 @@ data class TransferAborted( companion object } +/** + * @suppress + */ public object FfiConverterTypeTransferAborted : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): TransferAborted = TransferAborted( @@ -24942,6 +25253,9 @@ data class TransferBlobCompleted( companion object } +/** + * @suppress + */ public object FfiConverterTypeTransferBlobCompleted : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): TransferBlobCompleted = TransferBlobCompleted( @@ -24993,6 +25307,9 @@ data class TransferCompleted( companion object } +/** + * @suppress + */ public object FfiConverterTypeTransferCompleted : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): TransferCompleted = TransferCompleted( @@ -25038,6 +25355,9 @@ data class TransferHashSeqStarted( companion object } +/** + * @suppress + */ public object FfiConverterTypeTransferHashSeqStarted : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): TransferHashSeqStarted = TransferHashSeqStarted( @@ -25101,6 +25421,9 @@ data class TransferProgress( companion object } +/** + * @suppress + */ public object FfiConverterTypeTransferProgress : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): TransferProgress = TransferProgress( @@ -25141,6 +25464,9 @@ data class TransferStats( companion object } +/** + * @suppress + */ public object FfiConverterTypeTransferStats : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): TransferStats = TransferStats( @@ -25197,6 +25523,9 @@ enum class AddProgressType { companion object } +/** + * @suppress + */ public object FfiConverterTypeAddProgressType : FfiConverterRustBuffer { override fun read(buf: ByteBuffer) = try { @@ -25247,6 +25576,9 @@ enum class AddrInfoOptions { companion object } +/** + * @suppress + */ public object FfiConverterTypeAddrInfoOptions : FfiConverterRustBuffer { override fun read(buf: ByteBuffer) = try { @@ -25293,6 +25625,9 @@ enum class BlobExportFormat { companion object } +/** + * @suppress + */ public object FfiConverterTypeBlobExportFormat : FfiConverterRustBuffer { override fun read(buf: ByteBuffer) = try { @@ -25346,6 +25681,9 @@ enum class BlobExportMode { companion object } +/** + * @suppress + */ public object FfiConverterTypeBlobExportMode : FfiConverterRustBuffer { override fun read(buf: ByteBuffer) = try { @@ -25384,6 +25722,9 @@ enum class BlobFormat { companion object } +/** + * @suppress + */ public object FfiConverterTypeBlobFormat : FfiConverterRustBuffer { override fun read(buf: ByteBuffer) = try { @@ -25454,6 +25795,9 @@ enum class BlobProvideEventType { companion object } +/** + * @suppress + */ public object FfiConverterTypeBlobProvideEventType : FfiConverterRustBuffer { override fun read(buf: ByteBuffer) = try { @@ -25483,6 +25827,9 @@ sealed class CallbackException : kotlin.Exception() { } } +/** + * @suppress + */ public object FfiConverterTypeCallbackError : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): CallbackException = when (buf.getInt()) { @@ -25527,6 +25874,9 @@ enum class CapabilityKind { companion object } +/** + * @suppress + */ public object FfiConverterTypeCapabilityKind : FfiConverterRustBuffer { override fun read(buf: ByteBuffer) = try { @@ -25575,6 +25925,9 @@ enum class ConnType { companion object } +/** + * @suppress + */ public object FfiConverterTypeConnType : FfiConverterRustBuffer { override fun read(buf: ByteBuffer) = try { @@ -25618,6 +25971,9 @@ enum class ContentStatus { companion object } +/** + * @suppress + */ public object FfiConverterTypeContentStatus : FfiConverterRustBuffer { override fun read(buf: ByteBuffer) = try { @@ -25673,6 +26029,9 @@ enum class DocExportProgressType { companion object } +/** + * @suppress + */ public object FfiConverterTypeDocExportProgressType : FfiConverterRustBuffer { override fun read(buf: ByteBuffer) = try { @@ -25728,6 +26087,9 @@ enum class DocImportProgressType { companion object } +/** + * @suppress + */ public object FfiConverterTypeDocImportProgressType : FfiConverterRustBuffer { override fun read(buf: ByteBuffer) = try { @@ -25765,6 +26127,9 @@ enum class DownloadProgressType { companion object } +/** + * @suppress + */ public object FfiConverterTypeDownloadProgressType : FfiConverterRustBuffer { override fun read(buf: ByteBuffer) = try { @@ -25836,6 +26201,9 @@ enum class LiveEventType { companion object } +/** + * @suppress + */ public object FfiConverterTypeLiveEventType : FfiConverterRustBuffer { override fun read(buf: ByteBuffer) = try { @@ -25870,6 +26238,9 @@ enum class LogLevel { companion object } +/** + * @suppress + */ public object FfiConverterTypeLogLevel : FfiConverterRustBuffer { override fun read(buf: ByteBuffer) = try { @@ -25900,6 +26271,9 @@ enum class MessageType { companion object } +/** + * @suppress + */ public object FfiConverterTypeMessageType : FfiConverterRustBuffer { override fun read(buf: ByteBuffer) = try { @@ -25953,6 +26327,9 @@ enum class NodeDiscoveryConfig { companion object } +/** + * @suppress + */ public object FfiConverterTypeNodeDiscoveryConfig : FfiConverterRustBuffer { override fun read(buf: ByteBuffer) = try { @@ -25992,6 +26369,9 @@ sealed class Origin { companion object } +/** + * @suppress + */ public object FfiConverterTypeOrigin : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): Origin = when (buf.getInt()) { @@ -26058,6 +26438,9 @@ enum class ShareMode { companion object } +/** + * @suppress + */ public object FfiConverterTypeShareMode : FfiConverterRustBuffer { override fun read(buf: ByteBuffer) = try { @@ -26096,6 +26479,9 @@ enum class SortBy { companion object } +/** + * @suppress + */ public object FfiConverterTypeSortBy : FfiConverterRustBuffer { override fun read(buf: ByteBuffer) = try { @@ -26134,6 +26520,9 @@ enum class SortDirection { companion object } +/** + * @suppress + */ public object FfiConverterTypeSortDirection : FfiConverterRustBuffer { override fun read(buf: ByteBuffer) = try { @@ -26182,6 +26571,9 @@ enum class SyncReason { companion object } +/** + * @suppress + */ public object FfiConverterTypeSyncReason : FfiConverterRustBuffer { override fun read(buf: ByteBuffer) = try { @@ -26200,6 +26592,9 @@ public object FfiConverterTypeSyncReason : FfiConverterRustBuffer { } } +/** + * @suppress + */ public object FfiConverterOptionalULong : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): kotlin.ULong? { if (buf.get().toInt() == 0) { @@ -26229,6 +26624,9 @@ public object FfiConverterOptionalULong : FfiConverterRustBuffer } } +/** + * @suppress + */ public object FfiConverterOptionalString : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): kotlin.String? { if (buf.get().toInt() == 0) { @@ -26258,6 +26656,9 @@ public object FfiConverterOptionalString : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): kotlin.ByteArray? { if (buf.get().toInt() == 0) { @@ -26287,6 +26688,9 @@ public object FfiConverterOptionalByteArray : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): java.time.Duration? { if (buf.get().toInt() == 0) { @@ -26316,6 +26720,9 @@ public object FfiConverterOptionalDuration : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): BlobProvideEventCallback? { if (buf.get().toInt() == 0) { @@ -26345,6 +26752,9 @@ public object FfiConverterOptionalTypeBlobProvideEventCallback : FfiConverterRus } } +/** + * @suppress + */ public object FfiConverterOptionalTypeDoc : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): Doc? { if (buf.get().toInt() == 0) { @@ -26374,6 +26784,9 @@ public object FfiConverterOptionalTypeDoc : FfiConverterRustBuffer { } } +/** + * @suppress + */ public object FfiConverterOptionalTypeDocExportFileCallback : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): DocExportFileCallback? { if (buf.get().toInt() == 0) { @@ -26403,6 +26816,9 @@ public object FfiConverterOptionalTypeDocExportFileCallback : FfiConverterRustBu } } +/** + * @suppress + */ public object FfiConverterOptionalTypeDocImportFileCallback : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): DocImportFileCallback? { if (buf.get().toInt() == 0) { @@ -26432,6 +26848,9 @@ public object FfiConverterOptionalTypeDocImportFileCallback : FfiConverterRustBu } } +/** + * @suppress + */ public object FfiConverterOptionalTypeEntry : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): Entry? { if (buf.get().toInt() == 0) { @@ -26461,6 +26880,9 @@ public object FfiConverterOptionalTypeEntry : FfiConverterRustBuffer { } } +/** + * @suppress + */ public object FfiConverterOptionalTypeLatencyAndControlMsg : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): LatencyAndControlMsg? { if (buf.get().toInt() == 0) { @@ -26490,6 +26912,9 @@ public object FfiConverterOptionalTypeLatencyAndControlMsg : FfiConverterRustBuf } } +/** + * @suppress + */ public object FfiConverterOptionalTypeQueryOptions : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): QueryOptions? { if (buf.get().toInt() == 0) { @@ -26519,6 +26944,9 @@ public object FfiConverterOptionalTypeQueryOptions : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): RemoteInfo? { if (buf.get().toInt() == 0) { @@ -26548,6 +26976,9 @@ public object FfiConverterOptionalTypeRemoteInfo : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): TransferStats? { if (buf.get().toInt() == 0) { @@ -26577,6 +27008,9 @@ public object FfiConverterOptionalTypeTransferStats : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): NodeDiscoveryConfig? { if (buf.get().toInt() == 0) { @@ -26606,6 +27040,9 @@ public object FfiConverterOptionalTypeNodeDiscoveryConfig : FfiConverterRustBuff } } +/** + * @suppress + */ public object FfiConverterOptionalSequenceByteArray : FfiConverterRustBuffer?> { override fun read(buf: ByteBuffer): List? { if (buf.get().toInt() == 0) { @@ -26635,6 +27072,9 @@ public object FfiConverterOptionalSequenceByteArray : FfiConverterRustBuffer?> { override fun read(buf: ByteBuffer): Map? { if (buf.get().toInt() == 0) { @@ -26664,6 +27104,9 @@ public object FfiConverterOptionalMapByteArrayTypeProtocolCreator : FfiConverter } } +/** + * @suppress + */ public object FfiConverterSequenceString : FfiConverterRustBuffer> { override fun read(buf: ByteBuffer): List { val len = buf.getInt() @@ -26689,6 +27132,9 @@ public object FfiConverterSequenceString : FfiConverterRustBuffer> { override fun read(buf: ByteBuffer): List { val len = buf.getInt() @@ -26714,6 +27160,9 @@ public object FfiConverterSequenceByteArray : FfiConverterRustBuffer> { override fun read(buf: ByteBuffer): List { val len = buf.getInt() @@ -26739,6 +27188,9 @@ public object FfiConverterSequenceTypeAuthorId : FfiConverterRustBuffer> { override fun read(buf: ByteBuffer): List { val len = buf.getInt() @@ -26764,6 +27216,9 @@ public object FfiConverterSequenceTypeDirectAddrInfo : FfiConverterRustBuffer
  • > { override fun read(buf: ByteBuffer): List { val len = buf.getInt() @@ -26789,6 +27244,9 @@ public object FfiConverterSequenceTypeEntry : FfiConverterRustBuffer } } +/** + * @suppress + */ public object FfiConverterSequenceTypeFilterKind : FfiConverterRustBuffer> { override fun read(buf: ByteBuffer): List { val len = buf.getInt() @@ -26814,6 +27272,9 @@ public object FfiConverterSequenceTypeFilterKind : FfiConverterRustBuffer> { override fun read(buf: ByteBuffer): List { val len = buf.getInt() @@ -26839,6 +27300,9 @@ public object FfiConverterSequenceTypeHash : FfiConverterRustBuffer> } } +/** + * @suppress + */ public object FfiConverterSequenceTypeNodeAddr : FfiConverterRustBuffer> { override fun read(buf: ByteBuffer): List { val len = buf.getInt() @@ -26864,6 +27328,9 @@ public object FfiConverterSequenceTypeNodeAddr : FfiConverterRustBuffer> { override fun read(buf: ByteBuffer): List { val len = buf.getInt() @@ -26889,6 +27356,9 @@ public object FfiConverterSequenceTypeCollectionInfo : FfiConverterRustBuffer
  • > { override fun read(buf: ByteBuffer): List { val len = buf.getInt() @@ -26914,6 +27384,9 @@ public object FfiConverterSequenceTypeIncompleteBlobInfo : FfiConverterRustBuffe } } +/** + * @suppress + */ public object FfiConverterSequenceTypeLinkAndName : FfiConverterRustBuffer> { override fun read(buf: ByteBuffer): List { val len = buf.getInt() @@ -26939,6 +27412,9 @@ public object FfiConverterSequenceTypeLinkAndName : FfiConverterRustBuffer> { override fun read(buf: ByteBuffer): List { val len = buf.getInt() @@ -26964,6 +27440,9 @@ public object FfiConverterSequenceTypeNamespaceAndCapability : FfiConverterRustB } } +/** + * @suppress + */ public object FfiConverterSequenceTypeRemoteInfo : FfiConverterRustBuffer> { override fun read(buf: ByteBuffer): List { val len = buf.getInt() @@ -26989,6 +27468,9 @@ public object FfiConverterSequenceTypeRemoteInfo : FfiConverterRustBuffer> { override fun read(buf: ByteBuffer): List { val len = buf.getInt() @@ -27014,6 +27496,9 @@ public object FfiConverterSequenceTypeTagInfo : FfiConverterRustBuffer> { override fun read(buf: ByteBuffer): Map { val len = buf.getInt() @@ -27052,6 +27537,9 @@ public object FfiConverterMapStringTypeCounterStats : FfiConverterRustBuffer> { override fun read(buf: ByteBuffer): Map { val len = buf.getInt() diff --git a/kotlin/node_test.kts b/kotlin/node_test.kts index cc1dbdb6..391846c5 100644 --- a/kotlin/node_test.kts +++ b/kotlin/node_test.kts @@ -21,10 +21,13 @@ class Subscriber : SubscribeCallback { runBlocking { // setLogLevel(LogLevel.DEBUG) // Create node_0 - val node0 = Iroh.memory() + val options = NodeOptions() + options.enableDocs = true + + val node0 = Iroh.memoryWithOptions(options) // Create node_1 - val node1 = Iroh.memory() + val node1 = Iroh.memoryWithOptions(options) // Create doc on node_0 val doc0 = node0.docs().create() diff --git a/python/node_test.py b/python/node_test.py index 453c6d83..18cf354d 100644 --- a/python/node_test.py +++ b/python/node_test.py @@ -104,11 +104,10 @@ def create(self, endpoint, client): node_2 = await Iroh.memory_with_options(options) alpn = b"example/protocol/0" - node_id = await node_1.net().node_id() + node_addr = await node_1.net().node_addr() endpoint = node_2.node().endpoint() - node_addr = NodeAddr(PublicKey.from_string(node_id), None, []) conn = await endpoint.connect(node_addr, alpn) remote = conn.get_remote_node_id() print("", remote) @@ -123,5 +122,5 @@ def create(self, endpoint, client): print("", out) assert b"hello", out - await node_2.node().shutdown(False) - await node_1.node().shutdown(False) + await node_2.node().shutdown(True) + await node_1.node().shutdown(True) diff --git a/src/gossip.rs b/src/gossip.rs index b0f8757a..6af8c67e 100644 --- a/src/gossip.rs +++ b/src/gossip.rs @@ -2,9 +2,9 @@ use std::pin::Pin; use std::sync::Arc; use futures::{Sink, SinkExt, StreamExt}; -use iroh::client::gossip::{SubscribeResponse, SubscribeUpdate}; use iroh::gossip::net::GossipEvent; use iroh::net::NodeId; +use iroh_gossip::rpc::{SubscribeResponse, SubscribeUpdate}; use tokio::sync::Mutex; use tokio_util::sync::CancellationToken; use tracing::warn; diff --git a/src/node.rs b/src/node.rs index 9743a6c6..0a599e8e 100644 --- a/src/node.rs +++ b/src/node.rs @@ -245,7 +245,7 @@ struct ProtocolWrapper { handler: Arc, } -impl iroh::node::ProtocolHandler for ProtocolWrapper { +impl iroh::router::ProtocolHandler for ProtocolWrapper { fn accept( self: Arc, conn: iroh::net::endpoint::Connecting,