cargo update (for process_lib mostly)

This commit is contained in:
dr-frmr 2024-07-23 01:45:24 +03:00
parent bfd0267f66
commit db8c246582
No known key found for this signature in database
6 changed files with 128 additions and 125 deletions

206
Cargo.lock generated
View File

@ -78,7 +78,7 @@ name = "alias"
version = "0.1.0"
dependencies = [
"anyhow",
"kinode_process_lib 0.8.3",
"kinode_process_lib 0.9.0",
"serde",
"serde_json",
"wit-bindgen",
@ -199,7 +199,7 @@ dependencies = [
"itoa",
"serde",
"serde_json",
"winnow 0.6.13",
"winnow 0.6.15",
]
[[package]]
@ -402,7 +402,7 @@ checksum = "d83524c1f6162fcb5b0decf775498a125066c86dda6066ed609531b0e912f85a"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.71",
"syn 2.0.72",
]
[[package]]
@ -537,7 +537,7 @@ dependencies = [
"proc-macro-error",
"proc-macro2",
"quote",
"syn 2.0.71",
"syn 2.0.72",
]
[[package]]
@ -554,7 +554,7 @@ dependencies = [
"proc-macro-error",
"proc-macro2",
"quote",
"syn 2.0.71",
"syn 2.0.72",
"syn-solidity",
"tiny-keccak",
]
@ -572,7 +572,7 @@ dependencies = [
"proc-macro2",
"quote",
"serde_json",
"syn 2.0.71",
"syn 2.0.72",
"syn-solidity",
]
@ -583,7 +583,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cbcba3ca07cf7975f15d871b721fb18031eec8bce51103907f6dcce00b255d98"
dependencies = [
"serde",
"winnow 0.6.13",
"winnow 0.6.15",
]
[[package]]
@ -753,7 +753,7 @@ dependencies = [
"alloy-sol-types",
"anyhow",
"bincode",
"kinode_process_lib 0.8.3",
"kinode_process_lib 0.9.0",
"rand 0.8.5",
"serde",
"serde_json",
@ -923,7 +923,7 @@ checksum = "16e62a023e7c117e27523144c5d2459f4397fcc3cab0085af8e2224f643a0193"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.71",
"syn 2.0.72",
]
[[package]]
@ -934,7 +934,7 @@ checksum = "6e0c28dcc82d7c8ead5cb13beb15405b57b8546e93215673ff8ca0349a028107"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.71",
"syn 2.0.72",
]
[[package]]
@ -962,7 +962,7 @@ checksum = "3c87f3f15e7794432337fc718554eaa4dc8f04c9677a950ffe366f20a162ae42"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.71",
"syn 2.0.72",
]
[[package]]
@ -1057,7 +1057,7 @@ dependencies = [
"regex",
"rustc-hash",
"shlex",
"syn 2.0.71",
"syn 2.0.72",
]
[[package]]
@ -1273,7 +1273,7 @@ name = "cat"
version = "0.1.0"
dependencies = [
"anyhow",
"kinode_process_lib 0.8.3",
"kinode_process_lib 0.9.0",
"serde",
"serde_json",
"wit-bindgen",
@ -1281,9 +1281,9 @@ dependencies = [
[[package]]
name = "cc"
version = "1.1.5"
version = "1.1.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "324c74f2155653c90b04f25b2a47a8a631360cb908f92a772695f430c7e31052"
checksum = "2aba8f4e9906c7ce3c73463f62a7f0c65183ada1a2d47e397cc8810827f9694f"
dependencies = [
"jobserver",
"libc",
@ -1335,7 +1335,7 @@ dependencies = [
"anyhow",
"base64 0.22.1",
"bincode",
"kinode_process_lib 0.8.3",
"kinode_process_lib 0.9.0",
"pleco",
"serde",
"serde_json",
@ -1410,7 +1410,7 @@ dependencies = [
"heck 0.5.0",
"proc-macro2",
"quote",
"syn 2.0.71",
"syn 2.0.72",
]
[[package]]
@ -1795,7 +1795,7 @@ checksum = "f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.71",
"syn 2.0.72",
]
[[package]]
@ -1863,9 +1863,9 @@ dependencies = [
[[package]]
name = "deflate64"
version = "0.1.8"
version = "0.1.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "83ace6c86376be0b6cdcf3fb41882e81d94b31587573d1cfa9d01cd06bba210d"
checksum = "da692b8d1080ea3045efaab14434d40468c3d8657e42abddfffca87b428f4c1b"
[[package]]
name = "der"
@ -1905,7 +1905,7 @@ checksum = "67e77553c4162a157adbf834ebae5b415acbecbeafc7a74b0e886657506a7611"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.71",
"syn 2.0.72",
]
[[package]]
@ -1943,7 +1943,7 @@ dependencies = [
"proc-macro2",
"quote",
"rustc_version 0.4.0",
"syn 2.0.71",
"syn 2.0.72",
]
[[package]]
@ -2037,7 +2037,7 @@ checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.71",
"syn 2.0.72",
]
[[package]]
@ -2057,7 +2057,7 @@ name = "download"
version = "0.1.0"
dependencies = [
"anyhow",
"kinode_process_lib 0.8.3",
"kinode_process_lib 0.9.0",
"serde",
"serde_json",
"wit-bindgen",
@ -2088,7 +2088,7 @@ name = "echo"
version = "0.1.0"
dependencies = [
"anyhow",
"kinode_process_lib 0.8.3",
"kinode_process_lib 0.9.0",
"serde",
"serde_json",
"wit-bindgen",
@ -2307,7 +2307,7 @@ version = "0.2.0"
dependencies = [
"anyhow",
"bincode",
"kinode_process_lib 0.8.3",
"kinode_process_lib 0.9.0",
"rand 0.8.5",
"serde",
"serde_json",
@ -2382,7 +2382,7 @@ checksum = "87750cf4b7a4c0625b1529e4c543c2182106e4dedc60a2a6455e00d212c489ac"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.71",
"syn 2.0.72",
]
[[package]]
@ -2458,7 +2458,7 @@ dependencies = [
name = "get_block"
version = "0.1.0"
dependencies = [
"kinode_process_lib 0.8.3",
"kinode_process_lib 0.9.0",
"serde",
"serde_json",
"wit-bindgen",
@ -2658,7 +2658,7 @@ checksum = "6fe2267d4ed49bc07b63801559be28c718ea06c4738b7a03c94df7386d2cde46"
name = "hi"
version = "0.1.0"
dependencies = [
"kinode_process_lib 0.8.3",
"kinode_process_lib 0.9.0",
"serde",
"serde_json",
"wit-bindgen",
@ -2679,7 +2679,7 @@ version = "0.1.1"
dependencies = [
"anyhow",
"bincode",
"kinode_process_lib 0.8.3",
"kinode_process_lib 0.9.0",
"serde",
"serde_json",
"wit-bindgen",
@ -3007,7 +3007,7 @@ name = "install"
version = "0.1.0"
dependencies = [
"anyhow",
"kinode_process_lib 0.8.3",
"kinode_process_lib 0.9.0",
"serde",
"serde_json",
"wit-bindgen",
@ -3192,7 +3192,7 @@ name = "kfetch"
version = "0.1.0"
dependencies = [
"anyhow",
"kinode_process_lib 0.8.3",
"kinode_process_lib 0.9.0",
"rmp-serde",
"serde",
"serde_json",
@ -3204,7 +3204,7 @@ name = "kill"
version = "0.1.0"
dependencies = [
"anyhow",
"kinode_process_lib 0.8.3",
"kinode_process_lib 0.9.0",
"serde",
"serde_json",
"wit-bindgen",
@ -3297,8 +3297,8 @@ dependencies = [
[[package]]
name = "kinode_process_lib"
version = "0.8.3"
source = "git+https://github.com/kinode-dao/process_lib?branch=develop#fbf9079890dfb8dc1d12f61821c1d5f66b487c3b"
version = "0.9.0"
source = "git+https://github.com/kinode-dao/process_lib?branch=develop#290866f1f742b7179dcde30e6ed2249562a4a818"
dependencies = [
"alloy",
"alloy-primitives",
@ -3395,7 +3395,7 @@ dependencies = [
"anyhow",
"bincode",
"hex",
"kinode_process_lib 0.8.3",
"kinode_process_lib 0.9.0",
"rmp-serde",
"serde",
"serde_json",
@ -3459,9 +3459,9 @@ dependencies = [
[[package]]
name = "libloading"
version = "0.8.4"
version = "0.8.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e310b3a6b5907f99202fcdb4960ff45b93735d7c7d96b760fcff8db2dc0e103d"
checksum = "4979f22fdb869068da03c9f7528f8297c6fd2606bc3a4affe42e6a823fdb8da4"
dependencies = [
"cfg-if",
"windows-targets 0.52.6",
@ -3585,9 +3585,9 @@ dependencies = [
[[package]]
name = "lz4-sys"
version = "1.9.5"
version = "1.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e9764018d143cc854c9f17f0b907de70f14393b1f502da6375dce70f00514eb3"
checksum = "109de74d5d2353660401699a4174a4ff23fcc649caf553df71933c7fb45ad868"
dependencies = [
"cc",
"libc",
@ -3609,7 +3609,7 @@ version = "0.1.0"
dependencies = [
"anyhow",
"clap",
"kinode_process_lib 0.8.3",
"kinode_process_lib 0.9.0",
"regex",
"serde",
"serde_json",
@ -3758,7 +3758,7 @@ dependencies = [
name = "net_diagnostics"
version = "0.1.0"
dependencies = [
"kinode_process_lib 0.8.3",
"kinode_process_lib 0.9.0",
"rmp-serde",
"serde",
"wit-bindgen",
@ -3873,7 +3873,7 @@ dependencies = [
"proc-macro-crate",
"proc-macro2",
"quote",
"syn 2.0.71",
"syn 2.0.72",
]
[[package]]
@ -3913,9 +3913,9 @@ dependencies = [
[[package]]
name = "openssl"
version = "0.10.64"
version = "0.10.66"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "95a0481286a310808298130d22dd1fef0fa571e05a8f44ec801801e84b216b1f"
checksum = "9529f4786b70a3e8c61e11179af17ab6188ad8d0ded78c5529441ed39d4bd9c1"
dependencies = [
"bitflags 2.6.0",
"cfg-if",
@ -3934,7 +3934,7 @@ checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.71",
"syn 2.0.72",
]
[[package]]
@ -3945,9 +3945,9 @@ checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf"
[[package]]
name = "openssl-sys"
version = "0.9.102"
version = "0.9.103"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c597637d56fbc83893a35eb0dd04b2b8e7a50c91e64e9493e398b5df4fb45fa2"
checksum = "7f9e8deee91df40a943c71b917e5874b951d32a802526c85721ce3b776c929d6"
dependencies = [
"cc",
"libc",
@ -4042,7 +4042,7 @@ checksum = "1e401f977ab385c9e4e3ab30627d6f26d00e2c73eef317493c4ec6d468726cf8"
dependencies = [
"cfg-if",
"libc",
"redox_syscall 0.5.2",
"redox_syscall 0.5.3",
"smallvec",
"windows-targets 0.52.6",
]
@ -4096,7 +4096,7 @@ dependencies = [
name = "peer"
version = "0.1.0"
dependencies = [
"kinode_process_lib 0.8.3",
"kinode_process_lib 0.9.0",
"rmp-serde",
"serde",
"wit-bindgen",
@ -4106,7 +4106,7 @@ dependencies = [
name = "peers"
version = "0.1.0"
dependencies = [
"kinode_process_lib 0.8.3",
"kinode_process_lib 0.9.0",
"rmp-serde",
"serde",
"wit-bindgen",
@ -4156,7 +4156,7 @@ checksum = "2f38a4412a78282e09a2cf38d195ea5420d15ba0602cb375210efbc877243965"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.71",
"syn 2.0.72",
]
[[package]]
@ -4301,7 +4301,7 @@ version = "0.1.0"
source = "git+https://github.com/kinode-dao/process_macros?rev=626e501#626e501d351e3365480ec6f770d474ed4ae339bf"
dependencies = [
"quote",
"syn 2.0.71",
"syn 2.0.72",
]
[[package]]
@ -4570,9 +4570,9 @@ dependencies = [
[[package]]
name = "redox_syscall"
version = "0.5.2"
version = "0.5.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c82cf8cff14456045f55ec4241383baeff27af886adb72ffb2162f99911de0fd"
checksum = "2a908a6e00f1fdd0dfd9c0eb08ce85126f6d8bbda50017e74bc4a4b7d4a926a4"
dependencies = [
"bitflags 2.6.0",
]
@ -4937,9 +4937,9 @@ checksum = "976295e77ce332211c0d24d92c0e83e50f5c5f046d11082cea19f3df13a3562d"
[[package]]
name = "rustls-webpki"
version = "0.102.5"
version = "0.102.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f9a6fccd794a42c2c105b513a2f62bc3fd8f3ba57a4593677ceb0bd035164d78"
checksum = "8e6b52d4fda176fd835fdc55a835d4a89b8499cad995885a21149d5ad62f852e"
dependencies = [
"ring",
"rustls-pki-types",
@ -5084,7 +5084,7 @@ checksum = "e0cd7e117be63d3c3678776753929474f3b04a43a080c744d6b0ae2a8c28e222"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.71",
"syn 2.0.72",
]
[[package]]
@ -5126,7 +5126,7 @@ dependencies = [
"anyhow",
"base64 0.22.1",
"bincode",
"kinode_process_lib 0.8.3",
"kinode_process_lib 0.9.0",
"rmp-serde",
"serde",
"serde_json",
@ -5356,7 +5356,7 @@ checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3"
name = "state"
version = "0.1.0"
dependencies = [
"kinode_process_lib 0.8.3",
"kinode_process_lib 0.9.0",
"serde",
"serde_json",
"wit-bindgen",
@ -5416,7 +5416,7 @@ dependencies = [
"proc-macro2",
"quote",
"rustversion",
"syn 2.0.71",
"syn 2.0.72",
]
[[package]]
@ -5438,9 +5438,9 @@ dependencies = [
[[package]]
name = "syn"
version = "2.0.71"
version = "2.0.72"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b146dcf730474b4bcd16c311627b31ede9ab149045db4d6088b3becaea046462"
checksum = "dc4b9b9bf2add8093d3f2c0204471e951b2285580335de42f9d2534f3ae7a8af"
dependencies = [
"proc-macro2",
"quote",
@ -5456,7 +5456,7 @@ dependencies = [
"paste",
"proc-macro2",
"quote",
"syn 2.0.71",
"syn 2.0.72",
]
[[package]]
@ -5538,7 +5538,7 @@ version = "0.1.1"
dependencies = [
"anyhow",
"bincode",
"kinode_process_lib 0.8.3",
"kinode_process_lib 0.9.0",
"rand 0.8.5",
"regex",
"serde",
@ -5552,7 +5552,7 @@ version = "0.1.1"
dependencies = [
"anyhow",
"bincode",
"kinode_process_lib 0.8.3",
"kinode_process_lib 0.9.0",
"process_macros",
"serde",
"serde_json",
@ -5562,22 +5562,22 @@ dependencies = [
[[package]]
name = "thiserror"
version = "1.0.62"
version = "1.0.63"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f2675633b1499176c2dff06b0856a27976a8f9d436737b4cf4f312d4d91d8bbb"
checksum = "c0342370b38b6a11b6cc11d6a805569958d54cfa061a29969c3b5ce2ea405724"
dependencies = [
"thiserror-impl",
]
[[package]]
name = "thiserror-impl"
version = "1.0.62"
version = "1.0.63"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d20468752b09f49e909e55a5d338caa8bedf615594e9d80bc4c565d30faf798c"
checksum = "a4558b58466b9ad7ca0f102865eccc95938dca1a74a856f2b57b6629050da261"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.71",
"syn 2.0.72",
]
[[package]]
@ -5656,9 +5656,9 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
[[package]]
name = "tokio"
version = "1.38.0"
version = "1.38.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ba4f4a02a7a80d6f274636f0aa95c7e383b912d41fe721a31f29e29698585a4a"
checksum = "eb2caba9f80616f438e09748d5acda951967e1ea58508ef53d9c6402485a46df"
dependencies = [
"backtrace",
"bytes",
@ -5680,7 +5680,7 @@ checksum = "5f5ae998a069d4b5aba8ee9dad856af7d520c3699e6159b185c2acd48155d39a"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.71",
"syn 2.0.72",
]
[[package]]
@ -5761,14 +5761,14 @@ dependencies = [
[[package]]
name = "toml"
version = "0.8.14"
version = "0.8.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6f49eb2ab21d2f26bd6db7bf383edc527a7ebaee412d17af4d40fdccd442f335"
checksum = "ac2caab0bf757388c6c0ae23b3293fdb463fee59434529014f85e3263b995c28"
dependencies = [
"serde",
"serde_spanned",
"toml_datetime",
"toml_edit 0.22.15",
"toml_edit 0.22.16",
]
[[package]]
@ -5793,15 +5793,15 @@ dependencies = [
[[package]]
name = "toml_edit"
version = "0.22.15"
version = "0.22.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d59a3a72298453f564e2b111fa896f8d07fabb36f51f06d7e875fc5e0b5a3ef1"
checksum = "278f3d518e152219c994ce877758516bca5e118eaed6996192a774fb9fbf0788"
dependencies = [
"indexmap",
"serde",
"serde_spanned",
"toml_datetime",
"winnow 0.6.13",
"winnow 0.6.15",
]
[[package]]
@ -5810,7 +5810,7 @@ version = "0.2.0"
dependencies = [
"anyhow",
"clap",
"kinode_process_lib 0.8.3",
"kinode_process_lib 0.9.0",
"serde",
"serde_json",
"wit-bindgen",
@ -5876,7 +5876,7 @@ checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.71",
"syn 2.0.72",
]
[[package]]
@ -6127,7 +6127,7 @@ name = "uninstall"
version = "0.1.0"
dependencies = [
"anyhow",
"kinode_process_lib 0.8.3",
"kinode_process_lib 0.9.0",
"serde",
"serde_json",
"wit-bindgen",
@ -6318,7 +6318,7 @@ dependencies = [
"once_cell",
"proc-macro2",
"quote",
"syn 2.0.71",
"syn 2.0.72",
"wasm-bindgen-shared",
]
@ -6352,7 +6352,7 @@ checksum = "e94f17b526d0a461a191c78ea52bbce64071ed5c04c9ffe424dcb38f74171bb7"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.71",
"syn 2.0.72",
"wasm-bindgen-backend",
"wasm-bindgen-shared",
]
@ -6383,9 +6383,9 @@ dependencies = [
[[package]]
name = "wasm-encoder"
version = "0.213.0"
version = "0.214.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "850e4e6a56413a8f33567741a2388c8f6dafd841a939d945c7248671a8739dd8"
checksum = "ff694f02a8d7a50b6922b197ae03883fbf18cdb2ae9fbee7b6148456f5f44041"
dependencies = [
"leb128",
]
@ -6522,7 +6522,7 @@ dependencies = [
"anyhow",
"proc-macro2",
"quote",
"syn 2.0.71",
"syn 2.0.72",
"wasmtime-component-util",
"wasmtime-wit-bindgen",
"wit-parser 0.201.0",
@ -6696,7 +6696,7 @@ checksum = "ffaafa5c12355b1a9ee068e9295d50c4ca0a400c721950cdae4f5b54391a2da5"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.71",
"syn 2.0.72",
]
[[package]]
@ -6776,24 +6776,24 @@ dependencies = [
[[package]]
name = "wast"
version = "213.0.0"
version = "214.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cd051172bc72db3567b039f710f27d6d80f358b8333088eb4c4c12dac2a4d993"
checksum = "694bcdb24c49c8709bd8713768b71301a11e823923eee355d530f1d8d0a7f8e9"
dependencies = [
"bumpalo",
"leb128",
"memchr",
"unicode-width",
"wasm-encoder 0.213.0",
"wasm-encoder 0.214.0",
]
[[package]]
name = "wat"
version = "1.213.0"
version = "1.214.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5be77619385eca699d204399d2ffc9b1dfda1df3320266773d2d664ecb06cf3e"
checksum = "347249eb56773fa728df2656cfe3a8c19437ded61a922a0b5e0839d9790e278e"
dependencies = [
"wast 213.0.0",
"wast 214.0.0",
]
[[package]]
@ -6821,7 +6821,7 @@ version = "0.1.0"
dependencies = [
"anyhow",
"bincode",
"kinode_process_lib 0.8.3",
"kinode_process_lib 0.9.0",
"serde",
"serde_json",
"url",
@ -6854,7 +6854,7 @@ dependencies = [
"proc-macro2",
"quote",
"shellexpand",
"syn 2.0.71",
"syn 2.0.72",
"witx",
]
@ -6866,7 +6866,7 @@ checksum = "acdb12de36507498abaa3a042f895a43ee00a2f6125b6901b9a27edf72bfdbe7"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.71",
"syn 2.0.72",
"wiggle-generate",
]
@ -7076,9 +7076,9 @@ dependencies = [
[[package]]
name = "winnow"
version = "0.6.13"
version = "0.6.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "59b5e5f6c299a3c7890b876a2a587f3115162487e704907d9b6cd29473052ba1"
checksum = "557404e450152cd6795bb558bca69e43c585055f4606e3bcae5894fc6dac9ba0"
dependencies = [
"memchr",
]
@ -7165,7 +7165,7 @@ dependencies = [
"anyhow",
"proc-macro2",
"quote",
"syn 2.0.71",
"syn 2.0.72",
"wit-bindgen-core",
"wit-bindgen-rust",
]
@ -7282,7 +7282,7 @@ checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.71",
"syn 2.0.72",
]
[[package]]
@ -7302,7 +7302,7 @@ checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.71",
"syn 2.0.72",
]
[[package]]

View File

@ -346,11 +346,8 @@ impl State {
let note = Note::decode_log_data(log.data(), false)
.map_err(|_| AppStoreLogError::DecodeLogError)?;
let name =
get_name(&note.nodehash.to_string(), log.block_number, None).map_err(|e| {
println!("Error decoding name: {:?}", e);
AppStoreLogError::DecodeLogError
})?;
let name = get_name(&note.nodehash.to_string(), log.block_number, None)
.ok_or(AppStoreLogError::DecodeLogError)?;
let note_str = String::from_utf8_lossy(&note.note).to_string();

View File

@ -76,7 +76,7 @@ pub fn spawn_transfer(
None => None,
};
let mut req = Request::new()
.target((our.node.as_ref(), worker_process_id))
.target((&our.node, worker_process_id))
.inherit(!blob_or_inherit.is_some())
.expects_response(timeout + 1) // don't call with 2^64 lol
.body(
@ -102,7 +102,8 @@ pub fn spawn_transfer(
if let Some(blob) = blob_or_inherit {
req = req.blob(blob);
}
req.send()
req.send().unwrap();
Ok(())
}
/// A helper function to allow a process to easily handle an incoming transfer
@ -128,8 +129,10 @@ pub fn spawn_receive_transfer(our: &Address, body: &[u8]) -> anyhow::Result<()>
};
// forward receive command to worker
Request::new()
.target((our.node.as_ref(), worker_process_id))
.target((&our.node, worker_process_id))
.inherit(true)
.body(body)
.send()
.unwrap();
Ok(())
}

View File

@ -44,7 +44,7 @@ fn save_chess_state(state: &ChessState) {
}
fn load_chess_state() -> ChessState {
match get_typed_state(|bytes| Ok(bincode::deserialize::<HashMap<String, Game>>(bytes)?)) {
match get_typed_state(|bytes| bincode::deserialize::<HashMap<String, Game>>(bytes)) {
Some(games) => ChessState {
games,
clients: HashSet::new(),
@ -265,24 +265,27 @@ fn handle_chess_request(
// Remember, the other player is waiting for this.
Response::new()
.body(serde_json::to_vec(&ChessResponse::NewGameAccepted)?)
.send()
.send()?;
Ok(())
}
ChessRequest::Move(MoveRequest { ref move_str, .. }) => {
// Get the associated game, and respond with an error if
// we don't have it in our state.
let Some(game) = state.games.get_mut(game_id) else {
// If we don't have a game with them, reject the move.
return Response::new()
Response::new()
.body(serde_json::to_vec(&ChessResponse::MoveRejected)?)
.send();
.send()?;
return Ok(());
};
// Convert the saved board to one we can manipulate.
let mut board = Board::from_fen(&game.board).unwrap();
if !board.apply_uci_move(move_str) {
// Reject invalid moves!
return Response::new()
Response::new()
.body(serde_json::to_vec(&ChessResponse::MoveRejected)?)
.send();
.send()?;
return Ok(());
}
game.turns += 1;
if board.checkmate() || board.stalemate() {
@ -295,7 +298,8 @@ fn handle_chess_request(
// Send a response to tell them we've accepted the move.
Response::new()
.body(serde_json::to_vec(&ChessResponse::MoveAccepted)?)
.send()
.send()?;
Ok(())
}
ChessRequest::Resign(_) => {
// They've resigned. The sender isn't waiting for a response to this,
@ -336,7 +340,7 @@ fn handle_local_request(
// The request is exactly the same as what we got from terminal.
// We'll give them 5 seconds to respond...
let Ok(Message::Response { ref body, .. }) = Request::new()
.target((game_id.as_ref(), our.process.clone()))
.target((game_id, our.process.clone()))
.body(serde_json::to_vec(&action)?)
.send_and_await_response(5)?
else {
@ -382,7 +386,7 @@ fn handle_local_request(
// The request is exactly the same as what we got from terminal.
// We'll give them 5 seconds to respond...
let Ok(Message::Response { ref body, .. }) = Request::new()
.target((game_id.as_ref(), our.process.clone()))
.target((game_id, our.process.clone()))
.body(serde_json::to_vec(&action)?)
.send_and_await_response(5)?
else {
@ -408,7 +412,7 @@ fn handle_local_request(
};
// send the other player an end game request -- no response expected
Request::new()
.target((with_who.as_ref(), our.process.clone()))
.target((with_who, our.process.clone()))
.body(serde_json::to_vec(&action)?)
.send()?;
game.ended = true;

View File

@ -371,12 +371,11 @@ fn handle_log(our: &Address, state: &mut State, log: &eth::Log) -> anyhow::Resul
&& ((!node_info.ips.is_empty() && !node_info.ports.is_empty())
|| node_info.routers.len() > 0)
{
return Request::new()
.target((&our.node, "net", "distro", "sys"))
Request::to((&our.node, "net", "distro", "sys"))
.body(rmp_serde::to_vec(&net::NetAction::KnsUpdate(
node_info.clone(),
))?)
.send();
.send()?;
}
}
Ok(())

View File

@ -47,7 +47,7 @@ fn parse_command(state: &mut TerminalState, line: &str) -> anyhow::Result<()> {
call_init!(init);
fn init(our: Address) {
let mut state: TerminalState = match get_typed_state(|bytes| Ok(bincode::deserialize(bytes)?)) {
let mut state: TerminalState = match get_typed_state(|bytes| bincode::deserialize(bytes)) {
Some(s) => s,
None => {
let state = TerminalState {