diff --git a/package.json b/package.json index 6770589..5be34d3 100644 --- a/package.json +++ b/package.json @@ -7,8 +7,8 @@ "license": "CAL-1.0", "main": "./out/main/index.js", "binaries": { - "holochain": "0.4.0-dev.12", - "lair_keystore": "0.4.5" + "holochain": "0.4.0-dev.20", + "lair_keystore": "0.5.0" }, "defaultApps": { "kando": "https://github.com/holochain-apps/kando/releases/download/v0.10.5/kando.webhapp", diff --git a/rust-utils/Cargo.lock b/rust-utils/Cargo.lock index b078d00..81c73bc 100644 --- a/rust-utils/Cargo.lock +++ b/rust-utils/Cargo.lock @@ -74,9 +74,9 @@ dependencies = [ [[package]] name = "aitia" -version = "0.3.0-dev.3" +version = "0.3.0-dev.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9931ae65299aa3623d7d5d671cf92aef6a4add0e0a38fd7914977e7e5d330f50" +checksum = "cf586cb9185c985fd25a4fae5cf2e8e2f590dd7c60beffd9cc62da64ac80d16a" dependencies = [ "anyhow", "derive_more", @@ -583,9 +583,9 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] name = "bitflags" -version = "2.5.0" +version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf4b9d6a944f767f8e5e0db018570623c85f3d925ac718db4e06d0187adb21c1" +checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" [[package]] name = "bitvec" @@ -768,9 +768,12 @@ dependencies = [ [[package]] name = "cc" -version = "1.0.94" +version = "1.1.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "17f6e324229dc011159fcc089755d1e2e216a90d43a7dea6853ca740b84f35e7" +checksum = "57b6a275aa2903740dc87da01c62040406b8812552e97129a63ea8850a17c6e6" +dependencies = [ + "shlex", +] [[package]] name = "cesu8" @@ -1752,9 +1755,9 @@ checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80" [[package]] name = "fixt" -version = "0.4.0-dev.2" +version = "0.4.0-dev.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f7d990d3dc39a57bdfc28947ec11c6045940f62bb04a862de3979a7e5c7fb66" +checksum = "58f00f6a51bfb4b9f808a7fc2accb891682bda7cfcafbf08a283393f7db49a80" dependencies = [ "holochain_serialized_bytes", "lazy_static", @@ -2178,11 +2181,36 @@ dependencies = [ "zip 0.5.13", ] +[[package]] +name = "hc_deepkey_sdk" +version = "0.7.0-dev.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e2bd21d01a9fab94eaed78c0e832de0638d2ac87feac4e377919c83a1fcf2af1" +dependencies = [ + "hc_deepkey_types", + "hdk", + "serde", + "serde_bytes", +] + +[[package]] +name = "hc_deepkey_types" +version = "0.8.0-dev.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b0489a841db4297d6ea2c19a8f57e1a92ef5c93688b3b6a27c20c01dff8c5854" +dependencies = [ + "hdi", + "holo_hash", + "holochain_integrity_types", + "rmpv", + "serde", +] + [[package]] name = "hc_r2d2_sqlite" -version = "0.24.0" +version = "0.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3a95a4a8a02468f63e725a3881594a6720933f4e620087e5c2e34681d14cef05" +checksum = "7f4044c2cadf3d960fa91a7ef91590da202797fe82cf687b029235f98be5ff49" dependencies = [ "r2d2", "rusqlite", @@ -2206,9 +2234,9 @@ dependencies = [ [[package]] name = "hc_sleuth" -version = "0.4.0-dev.12" +version = "0.4.0-dev.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0337881e0e595f327105cd4a7571e2f08799fee7275d68f2cd67e90c79747eb3" +checksum = "7679f50fee40e1a46d66cb529ccba84e2adae4598082a02159bf2200189cdf97" dependencies = [ "aitia", "anyhow", @@ -2227,6 +2255,60 @@ dependencies = [ "tracing-subscriber", ] +[[package]] +name = "hdi" +version = "0.5.0-dev.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6021690d57a5977b3317554fec7d66acc50eeadf4589ef1cbd95bfa3666c741a" +dependencies = [ + "getrandom 0.2.14", + "hdk_derive", + "holo_hash", + "holochain_integrity_types", + "holochain_wasmer_guest", + "paste", + "serde", + "serde_bytes", + "tracing", + "tracing-core", +] + +[[package]] +name = "hdk" +version = "0.4.0-dev.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07c6d356375a1d03dce0d2f9362e2f4840cd74a6558782a0c7f012f55d1200e1" +dependencies = [ + "getrandom 0.2.14", + "hdi", + "hdk_derive", + "holo_hash", + "holochain_wasmer_guest", + "holochain_zome_types", + "paste", + "serde", + "serde_bytes", + "thiserror", + "tracing", + "tracing-core", +] + +[[package]] +name = "hdk_derive" +version = "0.4.0-dev.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85905fbb6eb33b6da346f5d7b6b1b16b85c15d57b3fd2d0ed3e94dd78777c1b3" +dependencies = [ + "darling 0.14.4", + "heck 0.5.0", + "holochain_integrity_types", + "paste", + "proc-macro-error", + "proc-macro2", + "quote", + "syn 1.0.109", +] + [[package]] name = "headers" version = "0.3.9" @@ -2295,9 +2377,9 @@ checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" [[package]] name = "holo_hash" -version = "0.4.0-dev.8" +version = "0.4.0-dev.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4be7094460e2cbf0f2092fb7158ca5c0aeaa6e225fdcf417f091bb994dc8c919" +checksum = "8f168530890ae501c964763d6bfdd92c3d4c633b643a909704f99929c9112205" dependencies = [ "base64 0.22.1", "blake2b_simd", @@ -2318,9 +2400,9 @@ dependencies = [ [[package]] name = "holochain_conductor_api" -version = "0.4.0-dev.12" +version = "0.4.0-dev.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7dd3aabbd5bc3b2161136016c1572547f665d18f612180a98e24ae7ab5e9f207" +checksum = "6020a5641ceb344b8e93847cdb2dd42e73945f02463f3283eaf36958e17e0e12" dependencies = [ "derive_more", "holo_hash", @@ -2341,9 +2423,9 @@ dependencies = [ [[package]] name = "holochain_integrity_types" -version = "0.4.0-dev.9" +version = "0.4.0-dev.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "048f0ba891006a949a244543954977612b17a0acd7efbeac1914d0e7a119cf8b" +checksum = "d15fab21e6eab0af97cd1bb30494fe423b3740c438caf7bbda12e47979c926ea" dependencies = [ "derive_builder 0.20.0", "holo_hash", @@ -2360,9 +2442,9 @@ dependencies = [ [[package]] name = "holochain_keystore" -version = "0.4.0-dev.12" +version = "0.4.0-dev.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50203763524fc888d73b449f657fb4c403eaf9e0653029d912e095ecd184ac2a" +checksum = "1b39dd22818779c4ebfe4e173331b510e77a1b3494d87ab7000104e9b6235eb5" dependencies = [ "base64 0.22.1", "derive_more", @@ -2389,9 +2471,9 @@ dependencies = [ [[package]] name = "holochain_nonce" -version = "0.4.0-dev.4" +version = "0.4.0-dev.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d338a69a1d074d7ecc58e028bd3962c98741f5448830b0dcf7a853bbb6515f0" +checksum = "8fca689af4b640f52849faa1d79387810eb97cfe0e96175febccecaf82bd3261" dependencies = [ "getrandom 0.2.14", "holochain_secure_primitive", @@ -2400,9 +2482,9 @@ dependencies = [ [[package]] name = "holochain_p2p" -version = "0.4.0-dev.12" +version = "0.4.0-dev.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9410a660f06728332b6466282408d86293b3c9139a70d387acfac87a93880e07" +checksum = "86140a90d334d6ed98da46ac0bb17aa5a3b33754d6b65f345308f49293719edc" dependencies = [ "aitia", "async-trait", @@ -2468,12 +2550,13 @@ dependencies = [ [[package]] name = "holochain_sqlite" -version = "0.4.0-dev.12" +version = "0.4.0-dev.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "451cef8386abbb3b33324bb97988d2722c6cab7d75de977ca4839f6633d14043" +checksum = "a711e2d751f9fe3578bd466e525a8dd7c8741aa62571cebaf7950b51f872b916" dependencies = [ "anyhow", "async-trait", + "base64 0.22.1", "derive_more", "fallible-iterator 0.3.0", "futures", @@ -2502,6 +2585,7 @@ dependencies = [ "serde", "serde_json", "shrinkwraprs", + "sodoken 0.0.11", "sqlformat", "tempfile", "thiserror", @@ -2511,9 +2595,9 @@ dependencies = [ [[package]] name = "holochain_state_types" -version = "0.4.0-dev.9" +version = "0.4.0-dev.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "426e26174cbd8a48c17bb16b99537e13df4eb735f7acdb91c96a7ef0cb41293a" +checksum = "9fb6a729e02c4bcc3c32227a705d8ca5f984229018cb3b380439395fce7fae8c" dependencies = [ "holo_hash", "holochain_integrity_types", @@ -2522,9 +2606,9 @@ dependencies = [ [[package]] name = "holochain_trace" -version = "0.4.0-dev.3" +version = "0.4.0-dev.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e893ff1a7709195c73ad47dd5329ec9c96280743cdc2a92917709a626c34195" +checksum = "f3e00bdd969d61fab25573441a201ee8da89d34df655b4153e1d092e54dca29a" dependencies = [ "chrono", "derive_more", @@ -2540,20 +2624,24 @@ dependencies = [ [[package]] name = "holochain_types" -version = "0.4.0-dev.12" +version = "0.4.0-dev.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dac8dd94259b1a620a895e78f454b346f2eeadb09628dab3b8eb59e9241791c2" +checksum = "a981b13f06ef43203bb71c296b7986f492cdf43342f467d72b602b1e2bc89d69" dependencies = [ "anyhow", "async-trait", "automap", "backtrace", + "base64 0.13.1", + "cfg-if 0.1.10", + "chrono", "derive_builder 0.20.0", "derive_more", "fixt", "flate2", "futures", "getrandom 0.2.14", + "hc_deepkey_sdk", "holo_hash", "holochain_keystore", "holochain_nonce", @@ -2589,9 +2677,9 @@ dependencies = [ [[package]] name = "holochain_util" -version = "0.4.0-dev.2" +version = "0.4.0-dev.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "79b89c3542e1fe783d9505d14a83497abadcf84d5d87e73fe1dbff3ac21cfce8" +checksum = "ac1c491b6ba90c68041b393264b1e67c2990b68094caa7fdfe1ea5a959c82107" dependencies = [ "backtrace", "cfg-if 1.0.0", @@ -2619,11 +2707,25 @@ dependencies = [ "wasmer", ] +[[package]] +name = "holochain_wasmer_guest" +version = "0.0.95" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fce20cd8eb137a355394e57612cf2cf7836dab57948d56af9f9fe080ea168d41" +dependencies = [ + "holochain_serialized_bytes", + "holochain_wasmer_common", + "parking_lot 0.12.1", + "paste", + "serde", + "tracing", +] + [[package]] name = "holochain_zome_types" -version = "0.4.0-dev.10" +version = "0.4.0-dev.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c9338e9b985d6af6e788aa0036040dc98996ddbc7156a9240dc31d87adf81a9a" +checksum = "2e375679cf12d9add4bdff018d53dfb29d93610c3e91663830613acb2a2a9429" dependencies = [ "derive_builder 0.20.0", "derive_more", @@ -3041,9 +3143,9 @@ dependencies = [ [[package]] name = "kitsune_p2p" -version = "0.4.0-dev.11" +version = "0.4.0-dev.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d648a85179ac1fb08c6addd03d777b20846022657d4a35e895fef442910b5b4b" +checksum = "db66f3fcc82d9af5bc2fb23a5096501f34e3e5f939c7ae8f3c33519d42327ae7" dependencies = [ "arrayref", "base64 0.22.1", @@ -3084,9 +3186,9 @@ dependencies = [ [[package]] name = "kitsune_p2p_bin_data" -version = "0.4.0-dev.8" +version = "0.4.0-dev.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df3f80a3c52eef16808c654490e65d3403b7d2c958ab886e0bc1c74dfb1fb488" +checksum = "d5bc477873f3c25e263946caa431f236dec465d4c7c75a715bdf41cc87f45013" dependencies = [ "base64 0.22.1", "derive_more", @@ -3099,9 +3201,9 @@ dependencies = [ [[package]] name = "kitsune_p2p_block" -version = "0.4.0-dev.8" +version = "0.4.0-dev.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "70ada912be6060d3602b2b5d02edc5ae5e655a6f96ba225b237e5645c9416e65" +checksum = "cb37277cef33bacf6113448c8c224296c3ceb25ce1c72eca7911984f0bff0d65" dependencies = [ "kitsune_p2p_bin_data", "kitsune_p2p_timestamp", @@ -3110,9 +3212,9 @@ dependencies = [ [[package]] name = "kitsune_p2p_bootstrap" -version = "0.3.0-dev.10" +version = "0.3.0-dev.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ac7204800bdee3593f82891ec3adc5a6702014395f3654475e1eaf3270e3675" +checksum = "33224f105c4468e2daa01d1ecb55f4dcfe16ecfad63fe2a07a79edf8632db551" dependencies = [ "clap 4.5.4", "futures", @@ -3130,9 +3232,9 @@ dependencies = [ [[package]] name = "kitsune_p2p_bootstrap_client" -version = "0.4.0-dev.10" +version = "0.4.0-dev.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5631b7a44270a25284b67a72e3c2a69047dad4e88b1c0c3fc365f57a1186058" +checksum = "c771d5fddc2df2b879a70ac7c7af45c8ae14417f9aa1788f3907418072d7f350" dependencies = [ "kitsune_p2p_bin_data", "kitsune_p2p_bootstrap", @@ -3145,10 +3247,12 @@ dependencies = [ [[package]] name = "kitsune_p2p_dht" -version = "0.4.0-dev.7" +version = "0.4.0-dev.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b257c121606739785c4703d4db69cd0d91d7b0b5672462e9bdc373e51ad9880" +checksum = "724960e037263eca03dad008d68a28fcab20f14a7a93a6572ff9c2743becdb1a" dependencies = [ + "arbitrary", + "colored", "derivative", "derive_more", "futures", @@ -3156,6 +3260,8 @@ dependencies = [ "kitsune_p2p_timestamp", "must_future", "num-traits", + "proptest", + "proptest-derive", "rand 0.8.5", "serde", "statrs", @@ -3165,24 +3271,27 @@ dependencies = [ [[package]] name = "kitsune_p2p_dht_arc" -version = "0.4.0-dev.7" +version = "0.4.0-dev.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "241ded259c121ee17b34f95c81f6b0a11e3d28f379486c47b089102698a83556" +checksum = "49cefd7f1867eb14ade8fce5b6a9975c399780f4735aad7701ed1b2036b72ae9" dependencies = [ + "arbitrary", "derive_more", "gcollections", "intervallum", "kitsune_p2p_timestamp", "num-traits", + "proptest", + "proptest-derive", "rusqlite", "serde", ] [[package]] name = "kitsune_p2p_fetch" -version = "0.4.0-dev.9" +version = "0.4.0-dev.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c2702d618e6446fe82e292793186f89e80b4660dc1f07ff7448a6d575bee1b8" +checksum = "d528b0c488562552bbed8fe1fb9f8d7af1b0670e986e2827156bd0b40ca27d01" dependencies = [ "backon", "derive_more", @@ -3211,9 +3320,9 @@ dependencies = [ [[package]] name = "kitsune_p2p_proxy" -version = "0.4.0-dev.9" +version = "0.4.0-dev.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d42d614278ec11f9b424f37dab3db3c7601101415b308b8b4eeb268c1d32212" +checksum = "bf591fab44b5f4780320793753ef63f1a323b0123a35080ee79d9ecfa3d4a2da" dependencies = [ "base64 0.22.1", "derive_more", @@ -3228,20 +3337,25 @@ dependencies = [ [[package]] name = "kitsune_p2p_timestamp" -version = "0.4.0-dev.2" +version = "0.4.0-dev.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f75c6b5bdc4e3a9514c949975ab2a68f977e612bb638bd961ccab948d134af7a" +checksum = "27e44de630f9a0c27edb0c123d12cafe09d3b719845f966c742e9b2043efea07" dependencies = [ + "arbitrary", "chrono", + "once_cell", + "proptest", + "proptest-derive", + "rand 0.8.5", "rusqlite", "serde", ] [[package]] name = "kitsune_p2p_types" -version = "0.4.0-dev.9" +version = "0.4.0-dev.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5c87e769391648c0717996646bd4ccddacbcff1a050589f7ea65229834a9c8f" +checksum = "e166b2e7390b1791ceafecc14731d786881a1fd836712207926db2c144ac0172" dependencies = [ "base64 0.22.1", "derive_more", @@ -3279,9 +3393,9 @@ dependencies = [ [[package]] name = "lair_keystore" -version = "0.4.5" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f0da3e3e1bd2644dc2974ef622743cd83f2c661b3c6c67acb00cda4725646def" +checksum = "db43da034583683b3a25d473e6024c7f529c31115418a7b95e609d5b0f090e5b" dependencies = [ "lair_keystore_api", "pretty_assertions", @@ -3295,9 +3409,9 @@ dependencies = [ [[package]] name = "lair_keystore_api" -version = "0.4.5" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9519a48df54d2041f8697bba7c3957263a5f2bb720ae6c4954004bad51693c61" +checksum = "2da1e0069976825273a8ba0e36b09785dc83812a9b0cf2c5eef3d85351534592" dependencies = [ "base64 0.22.1", "dunce", @@ -3403,7 +3517,7 @@ version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c0ff37bd590ca25063e35af745c343cb7a0271906fb7b37e4813e8f79f00268d" dependencies = [ - "bitflags 2.5.0", + "bitflags 2.6.0", "libc", ] @@ -3427,9 +3541,9 @@ dependencies = [ [[package]] name = "libsqlite3-sys" -version = "0.28.0" +version = "0.30.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c10584274047cb335c23d3e61bcef8e323adae7c5c8c760540f73610177fc3f" +checksum = "2e99fb7a497b1e3339bc746195567ed8d3e24945ecd636e3619d20b9de9e9149" dependencies = [ "cc", "pkg-config", @@ -3672,9 +3786,9 @@ checksum = "7843ec2de400bcbc6a6328c958dc38e5359da6e93e72e37bc5246bf1ae776389" [[package]] name = "mr_bundle" -version = "0.4.0-dev.5" +version = "0.4.0-dev.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ecba74b5293658685ec724bbe6baced8b4ff86e7bbea69a787de085d1f90b38d" +checksum = "bec8cf33890b9d37580b77210cf52adc23b7a6528eaeb780b91c982374a19343" dependencies = [ "derive_more", "flate2", @@ -3769,7 +3883,7 @@ version = "2.16.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "70d04890ef4ec001fad791be785b8b920e2a3f5a6b1188e7a81dfa6197c0dee4" dependencies = [ - "bitflags 2.5.0", + "bitflags 2.6.0", "ctor", "napi-derive", "napi-sys", @@ -4046,7 +4160,7 @@ version = "0.10.64" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "95a0481286a310808298130d22dd1fef0fa571e05a8f44ec801801e84b216b1f" dependencies = [ - "bitflags 2.5.0", + "bitflags 2.6.0", "cfg-if 1.0.0", "foreign-types", "libc", @@ -4430,6 +4544,37 @@ dependencies = [ "unicode-ident", ] +[[package]] +name = "proptest" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b4c2511913b88df1637da85cc8d96ec8e43a3f8bb8ccb71ee1ac240d6f3df58d" +dependencies = [ + "bit-set", + "bit-vec", + "bitflags 2.6.0", + "lazy_static", + "num-traits", + "rand 0.8.5", + "rand_chacha 0.3.1", + "rand_xorshift", + "regex-syntax 0.8.3", + "rusty-fork", + "tempfile", + "unarray", +] + +[[package]] +name = "proptest-derive" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ff7ff745a347b87471d859a377a9a404361e7efc2a971d73424a6d183c0fc77" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.59", +] + [[package]] name = "ptr_meta" version = "0.1.4" @@ -4582,6 +4727,15 @@ dependencies = [ "rand_core 0.5.1", ] +[[package]] +name = "rand_xorshift" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d25bf25ec5ae4a3f1b92f929810509a2f53d7dca2f50b794ff57e3face536c8f" +dependencies = [ + "rand_core 0.6.4", +] + [[package]] name = "rawpointer" version = "0.2.1" @@ -4901,11 +5055,11 @@ dependencies = [ [[package]] name = "rusqlite" -version = "0.31.0" +version = "0.32.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b838eba278d213a8beaf485bd313fd580ca4505a00d5871caeb1457c55322cae" +checksum = "7753b721174eb8ff87a9a0e799e2d7bc3749323e773db92e0984debb00019d6e" dependencies = [ - "bitflags 2.5.0", + "bitflags 2.6.0", "fallible-iterator 0.3.0", "fallible-streaming-iterator", "hashlink", @@ -4948,7 +5102,7 @@ version = "0.38.32" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "65e04861e65f21776e67888bfbea442b3642beaa0138fdb1dd7a84a52dffdb89" dependencies = [ - "bitflags 2.5.0", + "bitflags 2.6.0", "errno", "libc", "linux-raw-sys 0.4.13", @@ -5037,6 +5191,18 @@ version = "1.0.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "80af6f9131f277a45a3fba6ce8e2258037bb0477a67e610d3c1fe046ab31de47" +[[package]] +name = "rusty-fork" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb3dcc6e454c328bb824492db107ab7c0ae8fcffe4ad210136ef014458c1bc4f" +dependencies = [ + "fnv", + "quick-error", + "tempfile", + "wait-timeout", +] + [[package]] name = "ryu" version = "1.0.17" @@ -5063,9 +5229,9 @@ dependencies = [ [[package]] name = "sbd-client" -version = "0.0.5-alpha" +version = "0.0.6-alpha" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2bff8b5e22ff3d13f41b3b8318dcfb5303eb9903399ce82d25bcbf84742a0509" +checksum = "66f0b06ca514d8666ff371c63a5913e3f1740312c13768f301d0e5578a03c7e2" dependencies = [ "base64 0.22.1", "ed25519-dalek 2.1.1", @@ -5082,9 +5248,9 @@ dependencies = [ [[package]] name = "sbd-e2e-crypto-client" -version = "0.0.5-alpha" +version = "0.0.6-alpha" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d7f9e9ed5e1e817c0b57cf9625b0a823109267d3bfb06d5feec69e626bde59e8" +checksum = "d257a338fa0fca74d013b69a9e49f3683a4766bcadd4fe583779783bec48dede" dependencies = [ "sbd-client", "sodoken 0.0.901-alpha", @@ -5451,6 +5617,12 @@ dependencies = [ "memmap2 0.6.2", ] +[[package]] +name = "shlex" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" + [[package]] name = "shrinkwraprs" version = "0.3.0" @@ -6322,9 +6494,9 @@ dependencies = [ [[package]] name = "tx5" -version = "0.0.13-alpha" +version = "0.1.3-beta" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f3fa6f0662915bdc6e50ead429b24c42b9aa8d3f8e4f2c3cfc5974203cd31b8" +checksum = "37f5c8ae702c58cd1a127fe5785db014ddba783e18c87ad936275bb6e4023a13" dependencies = [ "base64 0.22.1", "influxive-otel-atomic-obs", @@ -6338,11 +6510,12 @@ dependencies = [ [[package]] name = "tx5-connection" -version = "0.0.13-alpha" +version = "0.1.3-beta" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4af97cb5c4ef5c2c1c3a02a3b6025d7eacbfff0c7cc69c8ff49682668b7a1281" +checksum = "1f97d4960fe1d84c6cf6335df355841a43377feb57df4b4996e24d0f50e07774" dependencies = [ "bit_field", + "futures", "tokio", "tracing", "tx5-core", @@ -6352,9 +6525,9 @@ dependencies = [ [[package]] name = "tx5-core" -version = "0.0.13-alpha" +version = "0.1.3-beta" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5dbcda1421f6ffc361133d90d3ad8b9df813c62b3a2b0bd205dfc33205162bdf" +checksum = "bc52d9b50b494b1d92b6a12ab9d3f98d420d549e85b128f671abfb67c1cf8cba" dependencies = [ "app_dirs2", "base64 0.22.1", @@ -6371,9 +6544,9 @@ dependencies = [ [[package]] name = "tx5-go-pion" -version = "0.0.13-alpha" +version = "0.1.3-beta" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d18eeb48190fe7f1e2ae7a58802ef3cc8f6a3c8164550bd7a0bb6d9015a537a" +checksum = "450fffbc9207428bd387e319aa88fe226cad0950937e773f9bbf0672c6d0104e" dependencies = [ "futures", "parking_lot 0.12.1", @@ -6385,9 +6558,9 @@ dependencies = [ [[package]] name = "tx5-go-pion-sys" -version = "0.0.13-alpha" +version = "0.1.3-beta" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "594e080a0c0883f526337ffeed768908a711e5eddddeeec7b65851faf0c3d211" +checksum = "23094d66b8570e86418520c9317fe8d16c0b45ed3156bb01b5e14ed674136da9" dependencies = [ "Inflector", "base64 0.22.1", @@ -6404,9 +6577,9 @@ dependencies = [ [[package]] name = "tx5-signal" -version = "0.0.13-alpha" +version = "0.1.3-beta" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "509f9e2ab94e4513084a34c1f89d23a2935206ed65c5ea14afbb3b286f7af47b" +checksum = "7c67250845c61754644c82d76e5644cfdb21226f6c036ff7aa8d159db411e2b6" dependencies = [ "rand 0.8.5", "sbd-e2e-crypto-client", @@ -6427,6 +6600,12 @@ version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ed646292ffc8188ef8ea4d1e0e0150fb15a5c2e12ad9b8fc191ae7a8a7f3c4b9" +[[package]] +name = "unarray" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eaea85b334db583fe3274d12b4cd1880032beab409c0d774be044d4480ab9a94" + [[package]] name = "unicase" version = "2.7.0" @@ -6603,6 +6782,15 @@ version = "0.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" +[[package]] +name = "wait-timeout" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f200f5b12eb75f8c1ed65abd4b2db8a6e1b138a20de009dacee265a2498f3f6" +dependencies = [ + "libc", +] + [[package]] name = "waker-fn" version = "1.1.1" @@ -6915,7 +7103,7 @@ version = "0.121.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9dbe55c8f9d0dbd25d9447a5a889ff90c0cc3feaa7395310d3d826b2c703eaab" dependencies = [ - "bitflags 2.5.0", + "bitflags 2.6.0", "indexmap 2.2.6", "semver 1.0.20", ] diff --git a/rust-utils/Cargo.toml b/rust-utils/Cargo.toml index ff6c32a..6f16eb9 100644 --- a/rust-utils/Cargo.toml +++ b/rust-utils/Cargo.toml @@ -7,15 +7,15 @@ version = "0.203.2" crate-type = ["cdylib"] [dependencies] -holochain_conductor_api = "=0.4.0-dev.12" -holochain_integrity_types = "=0.4.0-dev.9" -holochain_p2p = "=0.4.0-dev.12" -holochain_types = "=0.4.0-dev.12" -holochain_zome_types = "=0.4.0-dev.10" -holo_hash = "=0.4.0-dev.8" -kitsune_p2p_timestamp = "=0.4.0-dev.2" +holochain_conductor_api = "=0.4.0-dev.20" +holochain_integrity_types = "=0.4.0-dev.12" +holochain_p2p = "=0.4.0-dev.20" +holochain_types = "=0.4.0-dev.20" +holochain_zome_types = "=0.4.0-dev.15" +holo_hash = "=0.4.0-dev.11" +kitsune_p2p_timestamp = "=0.4.0-dev.4" hc_seed_bundle = "0.2.4" -lair_keystore_api = "0.4.5" +lair_keystore_api = "0.5.0" base64 = "0.13.0" diff --git a/rust-utils/index.d.ts b/rust-utils/index.d.ts index e9719b0..9e0c75c 100644 --- a/rust-utils/index.d.ts +++ b/rust-utils/index.d.ts @@ -4,7 +4,7 @@ /* auto-generated by NAPI-RS */ export function overwriteConfig(adminPort: number, keystoreConnectionUrl: string, bootstrapServerUrl: string, signalingServerUrl: string, configPath: string, allowedOrigin: string, iceServerUrls?: Array | undefined | null): string -export function defaultConductorConfig(adminPort: number, keystoreConnectionUrl: string, bootstrapServerUrl: string, signalingServerUrl: string, conductorEnvironmentPath: string, allowedOrigin: string, iceServerUrls?: Array | undefined | null): string +export function defaultConductorConfig(adminPort: number, keystoreConnectionUrl: string, bootstrapServerUrl: string, signalingServerUrl: string, conductorEnvironmentPath: string, allowedOrigin: string, useDpki: boolean, iceServerUrls?: Array | undefined | null): string export function decodeHappOrWebhapp(happOrWebhappBytes: Array): Promise export function readAndDecodeHappOrWebhapp(path: string): Promise export function saveWebhapp(path: string, uiTargetDir: string): Promise diff --git a/rust-utils/src/conductor_config.rs b/rust-utils/src/conductor_config.rs index cc6c9c2..e04d101 100644 --- a/rust-utils/src/conductor_config.rs +++ b/rust-utils/src/conductor_config.rs @@ -1,7 +1,7 @@ #![deny(clippy::all)] use holochain_conductor_api::{ - conductor::{paths::DataRootPath, ConductorConfig, KeystoreConfig}, + conductor::{paths::DataRootPath, ConductorConfig, DpkiConfig, KeystoreConfig}, AdminInterfaceConfig, InterfaceDriver, }; use holochain_p2p::kitsune_p2p::dependencies::kitsune_p2p_types::config::{ @@ -152,6 +152,7 @@ pub fn default_conductor_config( signaling_server_url: String, conductor_environment_path: String, allowed_origin: String, + use_dpki: bool, ice_server_urls: Option>, ) -> Result { let mut network_config = KitsuneP2pConfig::default(); @@ -173,11 +174,16 @@ pub fn default_conductor_config( let mut allowed_origins_map = HashSet::new(); allowed_origins_map.insert(allowed_origin); + let dpki_config = match use_dpki { + true => DpkiConfig::default(), + false => DpkiConfig::disabled(), + }; + let config = ConductorConfig { data_root_path: Some(DataRootPath::from(PathBuf::from( conductor_environment_path, ))), - dpki: None, + dpki: dpki_config, keystore: KeystoreConfig::LairServer { connection_url: url2::url2!("{}", keystore_connection_url), }, diff --git a/src/main/holochainManager.ts b/src/main/holochainManager.ts index ce108e0..7bd9a43 100644 --- a/src/main/holochainManager.ts +++ b/src/main/holochainManager.ts @@ -221,6 +221,7 @@ export class HolochainManager { signalingUrl || DEFAULT_SIGNALING_SERVER, conductorEnvironmentPath, 'holochain-launcher', + false, iceUrls || DEFAULT_ICE_SERVERS, ); diff --git a/src/renderer/src/routes/(setup)/quick-setup-step-2/+page.svelte b/src/renderer/src/routes/(setup)/quick-setup-step-2/+page.svelte index 27dabda..2ded839 100644 --- a/src/renderer/src/routes/(setup)/quick-setup-step-2/+page.svelte +++ b/src/renderer/src/routes/(setup)/quick-setup-step-2/+page.svelte @@ -29,6 +29,7 @@ message: $i18n.t('passwordsDontMatch'), background: 'variant-filled-error' }); + launching = false; return; }