diff --git a/.gitmodules b/.gitmodules index a8598c4fb..ac6b983ab 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,6 +1,3 @@ -[submodule "rpc-toolkit"] - path = rpc-toolkit - url = https://github.com/Start9Labs/rpc-toolkit.git [submodule "patch-db"] path = patch-db url = https://github.com/Start9Labs/patch-db.git diff --git a/backend/Cargo.lock b/backend/Cargo.lock index 03ceb5f05..768192739 100644 --- a/backend/Cargo.lock +++ b/backend/Cargo.lock @@ -87,6 +87,12 @@ version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "23b62fc65de8e4e7f52534fb52b0f3ed04746ae267519eef2a83941e8085068b" +[[package]] +name = "arrayvec" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8da52d66c7071e2e3fa2a1e5c6d088fec47b593032b254f5e980de8ea54454d6" + [[package]] name = "ascii-canvas" version = "3.0.0" @@ -144,9 +150,9 @@ dependencies = [ [[package]] name = "atoi" -version = "0.4.0" +version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "616896e05fc0e2649463a93a15183c6a16bf03413a7af88ef1285ddedfa9cda5" +checksum = "d7c57d12312ff59c811c0643f4d80830505833c9ffaebd193d819392b265be8e" dependencies = [ "num-traits", ] @@ -192,12 +198,6 @@ dependencies = [ "rustc-demangle", ] -[[package]] -name = "base-x" -version = "0.2.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc19a4937b4fbd3fe3379793130e42060d10627a360f2127802b10b87e7baf74" - [[package]] name = "base32" version = "0.4.0" @@ -218,9 +218,9 @@ checksum = "904dfeac50f3cdaba28fc6f57fdcddb75f49ed61346676a78c4ffe55877802fd" [[package]] name = "base64ct" -version = "1.5.0" +version = "1.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dea908e7347a8c64e378c17e30ef880ad73e3b4498346b055c2c00ea342f3179" +checksum = "3bdca834647821e0b13d9539a8634eb62d3501b6b6c2cec1722786ee6671b851" [[package]] name = "basic-cookies" @@ -252,7 +252,7 @@ dependencies = [ "cexpr", "cfg-if 0.1.10", "clang-sys", - "clap", + "clap 2.34.0", "env_logger 0.7.1", "lazy_static", "lazycell", @@ -296,6 +296,12 @@ dependencies = [ "typenum", ] +[[package]] +name = "bitmaps" +version = "3.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "703642b98a00b3b90513279a8ede3fcfa479c126c5fb46e78f3051522f021403" + [[package]] name = "bitvec" version = "0.19.6" @@ -315,7 +321,18 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "afa748e348ad3be8263be728124b24a24f268266f6f5d58af9d75f6a40b5c587" dependencies = [ "arrayref", - "arrayvec", + "arrayvec 0.5.2", + "constant_time_eq", +] + +[[package]] +name = "blake2b_simd" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72936ee4afc7f8f736d1c38383b56480b5497b4617b4a77bdbf1d2ababc76127" +dependencies = [ + "arrayref", + "arrayvec 0.7.2", "constant_time_eq", ] @@ -346,15 +363,13 @@ checksum = "8d696c370c750c948ada61c69a0ee2cbbb9c50b1019ddb86d9317157a99c2cae" [[package]] name = "bollard" -version = "0.11.1" +version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c92fed694fd5a7468c971538351c61b9c115f1ae6ed411cd2800f0f299403a4b" +checksum = "d82e7850583ead5f8bbef247e2a3c37a19bd576e8420cd262a6711921827e1e5" dependencies = [ "base64 0.13.0", "bollard-stubs", "bytes 1.1.0", - "chrono", - "dirs-next", "futures-core", "futures-util", "hex", @@ -362,25 +377,24 @@ dependencies = [ "hyper", "hyperlocal", "log", - "pin-project", + "pin-project-lite 0.2.9", "serde", "serde_derive", "serde_json", "serde_urlencoded", "thiserror", - "tokio 1.15.0", - "tokio-util 0.6.10", + "tokio 1.19.2", + "tokio-util", "url", "winapi", ] [[package]] name = "bollard-stubs" -version = "1.41.0" +version = "1.42.0-rc.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed2f2e73fffe9455141e170fb9c1feb0ac521ec7e7dcd47a7cab72a658490fb8" +checksum = "ed59b5c00048f48d7af971b71f800fdf23e858844a6f9e4d32ca72e9399e7864" dependencies = [ - "chrono", "serde", "serde_with", ] @@ -519,16 +533,40 @@ dependencies = [ "atty", "bitflags", "strsim 0.8.0", - "textwrap", + "textwrap 0.11.0", "unicode-width", "vec_map", ] [[package]] -name = "color-eyre" -version = "0.5.11" +name = "clap" +version = "3.2.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f1885697ee8a177096d42f158922251a41973117f6d8a234cee94b9509157b7" +checksum = "190814073e85d238f31ff738fcb0bf6910cedeb73376c87cd69291028966fd83" +dependencies = [ + "atty", + "bitflags", + "clap_lex", + "indexmap", + "strsim 0.10.0", + "termcolor", + "textwrap 0.15.0", +] + +[[package]] +name = "clap_lex" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2850f2f5a82cbf437dd5af4d49848fbdfc27c157c3d010345776f952765261c5" +dependencies = [ + "os_str_bytes", +] + +[[package]] +name = "color-eyre" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ebf286c900a6d5867aeff75cfee3192857bb7f24b547d4f0df2ed6baa812c90" dependencies = [ "backtrace", "color-spantrace", @@ -536,19 +574,19 @@ dependencies = [ "indenter", "once_cell", "owo-colors", - "tracing-error", + "tracing-error 0.2.0", ] [[package]] name = "color-spantrace" -version = "0.1.6" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6eee477a4a8a72f4addd4de416eb56d54bc307b284d6601bafdee1f4ea462d1" +checksum = "1ba75b3d9449ecdccb27ecbc479fdc0b87fa2dd43d2f8298f9bf0e59aacc8dce" dependencies = [ "once_cell", "owo-colors", "tracing-core", - "tracing-error", + "tracing-error 0.2.0", ] [[package]] @@ -557,12 +595,6 @@ version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "722e23542a15cea1f65d4a1419c4cfd7a26706c70871a13a04238ca3f40f1661" -[[package]] -name = "const_fn" -version = "0.4.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fbdcdcb6d86f71c5e97409ad45898af11cbc995b4ee8112d59095a28d376c935" - [[package]] name = "constant_time_eq" version = "0.1.5" @@ -577,20 +609,20 @@ checksum = "6245d59a3e82a7fc217c5828a6692dbc6dfb63a0c8c90495621f7b9d79704a0e" [[package]] name = "cookie" -version = "0.15.1" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d5f1c7727e460397e56abc4bddc1d49e07a1ad78fc98eb2e1c8f032a58a2f80d" +checksum = "94d4706de1b0fa5b132270cddffa8585166037822e260a944fe161acd137ca05" dependencies = [ "percent-encoding", - "time 0.2.27", + "time 0.3.11", "version_check", ] [[package]] name = "cookie_store" -version = "0.15.1" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3f7034c0932dc36f5bd8ec37368d971346809435824f277cb3b8299fc56167c" +checksum = "2e4b6aa369f41f5faa04bb80c9b1f4216ea81646ed6124d76ba5c49a7aafd9cd" dependencies = [ "cookie", "idna", @@ -598,7 +630,7 @@ dependencies = [ "publicsuffix", "serde", "serde_json", - "time 0.2.27", + "time 0.3.11", "url", ] @@ -629,18 +661,18 @@ dependencies = [ [[package]] name = "crc" -version = "2.1.0" +version = "3.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49fc9a695bca7f35f5f4c15cddc84415f66a74ea78eef08e90c5024f2b540e23" +checksum = "53757d12b596c16c78b83458d732a5d1a17ab3f53f2f7412f6fb57cc8a140ab3" dependencies = [ "crc-catalog", ] [[package]] name = "crc-catalog" -version = "1.1.1" +version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ccaeedb56da03b09f598226e25e80088cb4cd25f316e6e4df7d695f0feeb1403" +checksum = "2d0165d2900ae6778e36e80bbc4da3b5eefccee9ba939761f9c2882a5d9af3ff" [[package]] name = "crossbeam-queue" @@ -719,6 +751,12 @@ dependencies = [ "cipher", ] +[[package]] +name = "current_platform" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a74858bcfe44b22016cb49337d7b6f04618c58e5dbfdef61b06b8c434324a0bc" + [[package]] name = "curve25519-dalek" version = "3.2.0" @@ -971,12 +1009,6 @@ dependencies = [ "winapi", ] -[[package]] -name = "discard" -version = "1.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "212d0f5754cb6769937f4501cc0e67f4f4483c8d2c3e1e922ee9edbe4ab4c7c0" - [[package]] name = "divrem" version = "1.0.0" @@ -1054,9 +1086,10 @@ dependencies = [ "bollard", "chrono", "ciborium", - "clap", + "clap 3.2.8", "color-eyre", "cookie_store", + "current_platform", "digest 0.10.3", "digest 0.9.0", "divrem", @@ -1072,7 +1105,7 @@ dependencies = [ "http", "hyper", "hyper-ws-listener", - "imbl", + "imbl 2.0.0", "indexmap", "isocountry", "itertools 0.10.3", @@ -1082,7 +1115,7 @@ dependencies = [ "libc", "log", "models", - "nix 0.23.1", + "nix 0.24.1", "nom 7.1.1", "num", "num_enum", @@ -1092,17 +1125,17 @@ dependencies = [ "pbkdf2", "pin-project", "pkcs8", - "platforms", "prettytable-rs", "proptest", "proptest-derive", "rand 0.7.3", + "rand 0.8.5", "regex", "reqwest", "reqwest_cookie_store", "rpassword", "rpc-toolkit", - "rust-argon2", + "rust-argon2 1.0.0", "scopeguard", "serde", "serde_json", @@ -1115,18 +1148,18 @@ dependencies = [ "stderrlog", "tar", "thiserror", - "tokio 1.15.0", + "tokio 1.19.2", "tokio-compat-02", "tokio-stream", "tokio-tar", "tokio-tungstenite", - "tokio-util 0.6.10", + "tokio-util", "toml", "torut", "tracing", - "tracing-error", + "tracing-error 0.2.0", "tracing-futures", - "tracing-subscriber", + "tracing-subscriber 0.3.14", "trust-dns-server", "typed-builder", "url", @@ -1536,8 +1569,8 @@ dependencies = [ "http", "indexmap", "slab", - "tokio 1.15.0", - "tokio-util 0.7.2", + "tokio 1.19.2", + "tokio-util", "tracing", ] @@ -1552,23 +1585,23 @@ name = "hashbrown" version = "0.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e" -dependencies = [ - "ahash", -] [[package]] name = "hashbrown" version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "db0d4cf898abf0081f964436dc980e96670a0f36863e4b83aaacdb65c9d7ccc3" +dependencies = [ + "ahash", +] [[package]] name = "hashlink" -version = "0.7.0" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7249a3129cbc1ffccd74857f81464a323a152173cdb134e0fd81bc803b29facf" +checksum = "d452c155cb93fecdfb02a73dd57b5d8e442c2063bd7aac72f1bc5e4263a43086" dependencies = [ - "hashbrown 0.11.2", + "hashbrown 0.12.1", ] [[package]] @@ -1595,7 +1628,7 @@ version = "0.1.0" dependencies = [ "models", "pin-project", - "tokio 1.15.0", + "tokio 1.19.2", ] [[package]] @@ -1634,9 +1667,9 @@ dependencies = [ [[package]] name = "http" -version = "0.2.7" +version = "0.2.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff8670570af52249509a86f5e3e18a08c60b177071826898fde8997cf5f6bfbb" +checksum = "75f43d41e26995c17e71ee126451dd3941010b0514a81a9d11f3b341debc2399" dependencies = [ "bytes 1.1.0", "fnv", @@ -1683,9 +1716,9 @@ checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" [[package]] name = "hyper" -version = "0.14.19" +version = "0.14.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "42dc3c131584288d375f2d07f822b0cb012d8c6fb899a5b9fdb3cb7eb9b6004f" +checksum = "02c929dc5c39e335a03c405292728118860721b10190d98c2a0f0efd5baafbac" dependencies = [ "bytes 1.1.0", "futures-channel", @@ -1699,7 +1732,7 @@ dependencies = [ "itoa 1.0.2", "pin-project-lite 0.2.9", "socket2", - "tokio 1.15.0", + "tokio 1.19.2", "tower-service", "tracing", "want", @@ -1714,14 +1747,15 @@ dependencies = [ "bytes 1.1.0", "hyper", "native-tls", - "tokio 1.15.0", + "tokio 1.19.2", "tokio-native-tls", ] [[package]] name = "hyper-ws-listener" -version = "0.1.0" -source = "git+https://github.com/Start9Labs/hyper-ws-listener.git?branch=main#d5db3698d61293375384a5d8aa980c834d45028a" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b3fb761e568fdb34ff794d284bfe1769efc5d16b9d716286451ab3a70ab82bea" dependencies = [ "anyhow", "base64 0.13.0", @@ -1729,8 +1763,8 @@ dependencies = [ "futures", "hyper", "log", - "sha-1 0.10.0", - "tokio 1.15.0", + "sha-1", + "tokio 1.19.2", "tokio-tungstenite", ] @@ -1744,7 +1778,7 @@ dependencies = [ "hex", "hyper", "pin-project", - "tokio 1.15.0", + "tokio 1.19.2", ] [[package]] @@ -1776,7 +1810,7 @@ version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "543682c9082b25e63d03b5acbd65ad111fd49dd93e70843e5175db4ff81d606b" dependencies = [ - "bitmaps", + "bitmaps 2.1.0", "rand_core 0.6.3", "rand_xoshiro", "sized-chunks", @@ -1784,6 +1818,28 @@ dependencies = [ "version_check", ] +[[package]] +name = "imbl" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2806b69cd9f4664844027b64465eacb444c67c1db9c778e341adff0c25cdb0d" +dependencies = [ + "bitmaps 3.2.0", + "imbl-sized-chunks", + "rand_core 0.6.3", + "rand_xoshiro", + "version_check", +] + +[[package]] +name = "imbl-sized-chunks" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6957ea0b2541c5ca561d3ef4538044af79f8a05a1eb3a3b148936aaceaa1076" +dependencies = [ + "bitmaps 3.2.0", +] + [[package]] name = "indenter" version = "0.3.3" @@ -1792,24 +1848,15 @@ checksum = "ce23b50ad8242c51a442f3ff322d56b02f08852c77e4c0b4d3fd684abc89c683" [[package]] name = "indexmap" -version = "1.8.2" +version = "1.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6012d540c5baa3589337a98ce73408de9b5a25ec9fc2c6fd6be8f0d39e0ca5a" +checksum = "10a35a97730320ffe8e2d410b5d3b69279b98d2c14bdb8b70ea89ecf7888d41e" dependencies = [ "autocfg", - "hashbrown 0.11.2", + "hashbrown 0.12.1", "serde", ] -[[package]] -name = "input_buffer" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f97967975f448f1a7ddb12b0bc41069d09ed6a1c161a92687e057325db35d413" -dependencies = [ - "bytes 1.1.0", -] - [[package]] name = "instant" version = "0.1.12" @@ -1922,7 +1969,7 @@ dependencies = [ "swc_macros_common", "swc_visit", "swc_visit_macros", - "tokio 1.15.0", + "tokio 1.19.2", "tracing", ] @@ -2021,7 +2068,7 @@ version = "0.7.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6607c62aa161d23d17a9072cc5da0be67cdfc89d3afb1e8d9c842bebc2525ffe" dependencies = [ - "arrayvec", + "arrayvec 0.5.2", "bitflags", "cfg-if 1.0.0", "ryu", @@ -2146,9 +2193,9 @@ dependencies = [ [[package]] name = "matchers" -version = "0.0.1" +version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f099785f7595cc4b4553a174ce30dd7589ef93391ff414dbb67f62392b9e0ce1" +checksum = "8263075bb86c5a1b1427b5ae862e8889656f126e9f77c484496e8b47cf5c5558" dependencies = [ "regex-automata", ] @@ -2208,24 +2255,14 @@ dependencies = [ [[package]] name = "mio" -version = "0.7.14" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8067b404fe97c70829f082dec8bcf4f71225d7eaea1d8645349cb76fa06205cc" +checksum = "57ee1c23c7c63b0c9250c339ffdc69255f110b298b901b9f6c82547b7b87caaf" dependencies = [ "libc", "log", - "miow", - "ntapi", - "winapi", -] - -[[package]] -name = "miow" -version = "0.3.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9f1c5b025cda876f66ef43a113f91ebc9f4ccef34843000e0adf6ebbab84e21" -dependencies = [ - "winapi", + "wasi 0.11.0+wasi-snapshot-preview1", + "windows-sys", ] [[package]] @@ -2234,7 +2271,7 @@ version = "0.1.0" dependencies = [ "emver", "patch-db", - "rand 0.7.3", + "rand 0.8.5", "serde", "thiserror", ] @@ -2297,6 +2334,18 @@ dependencies = [ "memoffset", ] +[[package]] +name = "nix" +version = "0.24.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f17df307904acd05aa8e32e97bb20f2a0df1728bbc2d771ae8f9a90463441e9" +dependencies = [ + "bitflags", + "cfg-if 1.0.0", + "libc", + "memoffset", +] + [[package]] name = "nom" version = "5.1.2" @@ -2330,15 +2379,6 @@ dependencies = [ "minimal-lexical", ] -[[package]] -name = "ntapi" -version = "0.3.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c28774a7fd2fbb4f0babd8237ce554b73af68021b5f695a3cebd6c59bac0980f" -dependencies = [ - "winapi", -] - [[package]] name = "num" version = "0.4.0" @@ -2492,9 +2532,9 @@ dependencies = [ [[package]] name = "openssl" -version = "0.10.40" +version = "0.10.41" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb81a6430ac911acb25fe5ac8f1d2af1b4ea8a4fdfda0f1ee4292af2e2d8eb0e" +checksum = "618febf65336490dfcf20b73f885f5651a0c89c64c2d4a8c3662585a70bf5bd0" dependencies = [ "bitflags", "cfg-if 1.0.0", @@ -2533,9 +2573,9 @@ dependencies = [ [[package]] name = "openssl-sys" -version = "0.9.74" +version = "0.9.75" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "835363342df5fba8354c5b453325b110ffd54044e588c539cf2f20a8014e4cb1" +checksum = "e5f9bd0c2710541a3cda73d6f9ac4f1b240de4ae261065d309dbe73d9dceb42f" dependencies = [ "autocfg", "cc", @@ -2546,10 +2586,16 @@ dependencies = [ ] [[package]] -name = "owo-colors" -version = "1.3.0" +name = "os_str_bytes" +version = "6.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2386b4ebe91c2f7f51082d4cefa145d030e33a1842a96b12e4885cc3c01f7a55" +checksum = "21326818e99cfe6ce1e524c2a805c189a99b5ae555a35d19f9a284b427d86afa" + +[[package]] +name = "owo-colors" +version = "3.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "decf7381921fea4dcb2549c5667eda59b3ec297ab7e2b5fc33eac69d2e7da87b" [[package]] name = "parking_lot" @@ -2623,7 +2669,7 @@ dependencies = [ "async-trait", "fd-lock-rs", "futures", - "imbl", + "imbl 1.0.1", "json-patch", "json-ptr", "lazy_static", @@ -2633,9 +2679,9 @@ dependencies = [ "serde_cbor 0.11.1", "serde_json", "thiserror", - "tokio 1.15.0", + "tokio 1.19.2", "tracing", - "tracing-error", + "tracing-error 0.1.2", ] [[package]] @@ -2752,18 +2798,18 @@ checksum = "db8bcd96cb740d03149cbad5518db9fd87126a10ab519c011893b1754134c468" [[package]] name = "pin-project" -version = "1.0.10" +version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "58ad3879ad3baf4e44784bc6a718a8698867bb991f8ce24d1bcbe2cfb4c3a75e" +checksum = "78203e83c48cffbe01e4a2d35d566ca4de445d79a85372fc64e378bfc812a260" dependencies = [ "pin-project-internal", ] [[package]] name = "pin-project-internal" -version = "1.0.10" +version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "744b6f092ba29c3650faf274db506afd39944f48420f6c86b17cfe0ee1cb36bb" +checksum = "710faf75e1b33345361201d36d04e98ac1ed8909151a017ed384700836104c74" dependencies = [ "proc-macro2 1.0.39", "quote 1.0.18", @@ -2804,12 +2850,6 @@ version = "0.3.25" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1df8c4ec4b0627e53bdf214615ad287367e482558cf84b109250b37464dc03ae" -[[package]] -name = "platforms" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "989d43012e2ca1c4a02507c67282691a0a3207f9dc67cec596b43fe925b3d325" - [[package]] name = "pmutil" version = "0.5.3" @@ -3088,7 +3128,7 @@ checksum = "de0737333e7a9502c789a36d7c7fa6092a49895d4faa31ca5df163857ded2e9d" dependencies = [ "getrandom 0.1.16", "redox_syscall 0.1.57", - "rust-argon2", + "rust-argon2 0.8.3", ] [[package]] @@ -3104,9 +3144,9 @@ dependencies = [ [[package]] name = "regex" -version = "1.5.6" +version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d83f127d94bdbcda4c8cc2e50f6f84f4b611f69c902699ca385a39c3a75f9ff1" +checksum = "4c4eb3267174b8c6c2f654116623910a0fef09c4753f8dd83db29c48a0df988b" dependencies = [ "aho-corasick", "memchr", @@ -3124,9 +3164,9 @@ dependencies = [ [[package]] name = "regex-syntax" -version = "0.6.26" +version = "0.6.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49b3de9ec5dc0a3417da371aab17d729997c15010e7fd24ff707773a33bddb64" +checksum = "a3f87b73ce11b1619a3c6332f45341e0047173771e8b8b73f87bfeefb7b56244" [[package]] name = "remove_dir_all" @@ -3139,9 +3179,9 @@ dependencies = [ [[package]] name = "reqwest" -version = "0.11.10" +version = "0.11.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46a1f7aa4f35e5e8b4160449f51afc758f0ce6454315a9fa7d0d113e958c41eb" +checksum = "b75aa69a3f06bbcc66ede33af2af253c6f7a86b1ca0033f60c580a27074fbf92" dependencies = [ "base64 0.13.0", "bytes 1.1.0", @@ -3167,10 +3207,11 @@ dependencies = [ "serde", "serde_json", "serde_urlencoded", - "tokio 1.15.0", + "tokio 1.19.2", "tokio-native-tls", "tokio-socks", - "tokio-util 0.6.10", + "tokio-util", + "tower-service", "url", "wasm-bindgen", "wasm-bindgen-futures", @@ -3180,9 +3221,9 @@ dependencies = [ [[package]] name = "reqwest_cookie_store" -version = "0.2.0" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "48cbf3a2aeeeaa6d10a76db86068c3560320f6265c3a0e2642e0538e11c2d143" +checksum = "5fc7d9a4063adcdfbb061aa3011b813cce95d3a8990f9ccb5ea85017916a1b0b" dependencies = [ "bytes 1.1.0", "cookie", @@ -3208,36 +3249,43 @@ dependencies = [ [[package]] name = "rpassword" -version = "5.0.1" +version = "6.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ffc936cf8a7ea60c58f030fd36a612a48f440610214dc54bc36431f9ea0c3efb" +checksum = "2bf099a1888612545b683d2661a1940089f6c2e5a8e38979b2159da876bfd956" dependencies = [ "libc", + "serde", + "serde_json", "winapi", ] [[package]] name = "rpc-toolkit" -version = "0.1.0" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2b40671737dff8e63a1294536eea6e186f3700930fe92d8b5c7dfd636d0df16" dependencies = [ - "clap", + "clap 3.2.8", "futures", "hyper", "lazy_static", + "openssl", "reqwest", "rpc-toolkit-macro", "serde", "serde_cbor 0.11.2", "serde_json", "thiserror", - "tokio 1.15.0", + "tokio 1.19.2", "url", "yajrc", ] [[package]] name = "rpc-toolkit-macro" -version = "0.1.0" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ad6cd35336587eb0459cdc01f873ddd5a8a3480f97c5268a46a820e1b23b9aa" dependencies = [ "proc-macro2 1.0.39", "rpc-toolkit-macro-internals", @@ -3246,7 +3294,9 @@ dependencies = [ [[package]] name = "rpc-toolkit-macro-internals" -version = "0.1.0" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa57bace2d4fe20a2aeac1ef4e9f6f1574f07b72fde1e43c7bb55e963f1702e7" dependencies = [ "proc-macro2 1.0.39", "quote 1.0.18", @@ -3260,7 +3310,19 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4b18820d944b33caa75a71378964ac46f58517c92b6ae5f762636247c09e78fb" dependencies = [ "base64 0.13.0", - "blake2b_simd", + "blake2b_simd 0.5.11", + "constant_time_eq", + "crossbeam-utils", +] + +[[package]] +name = "rust-argon2" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b50162d19404029c1ceca6f6980fe40d45c8b369f6f44446fa14bb39573b5bb9" +dependencies = [ + "base64 0.13.0", + "blake2b_simd 1.0.0", "constant_time_eq", "crossbeam-utils", ] @@ -3297,17 +3359,25 @@ dependencies = [ [[package]] name = "rustls" -version = "0.19.1" +version = "0.20.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "35edb675feee39aec9c99fa5ff985081995a06d594114ae14cbe797ad7b7a6d7" +checksum = "5aab8ee6c7097ed6057f43c187a62418d0c05a4bd5f18b3571db50ee0f9ce033" dependencies = [ - "base64 0.13.0", "log", "ring", "sct", "webpki", ] +[[package]] +name = "rustls-pemfile" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7522c9de787ff061458fe9a829dc790a3f5b22dc571694fc5883f448b94d9a9" +dependencies = [ + "base64 0.13.0", +] + [[package]] name = "rustversion" version = "1.0.6" @@ -3356,9 +3426,9 @@ checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" [[package]] name = "sct" -version = "0.6.1" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b362b83898e0e69f38515b82ee15aa80636befe47c3b6d3d89a911e78fc228ce" +checksum = "d53dcdb7c9f8158937a7981b48accfd39a43af418591a5d008c7b22b5e1b7ca4" dependencies = [ "ring", "untrusted", @@ -3410,9 +3480,9 @@ checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" [[package]] name = "serde" -version = "1.0.137" +version = "1.0.139" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61ea8d54c77f8315140a05f4c7237403bf38b72704d031543aa1d16abbf517d1" +checksum = "0171ebb889e45aa68b44aee0859b3eede84c6f5f5c228e6f140c0b2a0a46cad6" dependencies = [ "serde_derive", ] @@ -3446,9 +3516,9 @@ dependencies = [ [[package]] name = "serde_derive" -version = "1.0.137" +version = "1.0.139" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f26faba0c3959972377d3b2d306ee9f71faee9714294e41bb777f83f88578be" +checksum = "dc1d3230c1de7932af58ad8ffbe1d784bd55efd5a9d84ac24f69c72d83543dfb" dependencies = [ "proc-macro2 1.0.39", "quote 1.0.18", @@ -3457,9 +3527,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.81" +version = "1.0.82" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b7ce2b32a1aed03c558dc61a5cd328f15aff2dbc17daad8fb8af04d2100e15c" +checksum = "82c2c1fdcd807d1098552c5b9a36e425e42e9fbd7c6a37a8425f390f781f7fa7" dependencies = [ "indexmap", "itoa 1.0.2", @@ -3516,9 +3586,9 @@ dependencies = [ [[package]] name = "serde_yaml" -version = "0.8.24" +version = "0.8.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "707d15895415db6628332b737c838b88c598522e4dc70647e59b72312924aebc" +checksum = "1ec0091e1f5aa338283ce049bd9dfefd55e1f168ac233e85c1ffe0038fb48cbe" dependencies = [ "indexmap", "ryu", @@ -3526,19 +3596,6 @@ dependencies = [ "yaml-rust", ] -[[package]] -name = "sha-1" -version = "0.9.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "99cd6713db3cf16b6c84e06321e049a9b9f699826e16096d23bbcc44d15d51a6" -dependencies = [ - "block-buffer 0.9.0", - "cfg-if 1.0.0", - "cpufeatures", - "digest 0.9.0", - "opaque-debug", -] - [[package]] name = "sha-1" version = "0.10.0" @@ -3550,21 +3607,6 @@ dependencies = [ "digest 0.10.3", ] -[[package]] -name = "sha1" -version = "0.6.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c1da05c97445caa12d05e848c4a4fcbbea29e748ac28f7e80e9b010392063770" -dependencies = [ - "sha1_smol", -] - -[[package]] -name = "sha1_smol" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae1a47186c03a32177042e55dbc5fd5aee900b8e0069a8d70fba96a9375cd012" - [[package]] name = "sha2" version = "0.9.9" @@ -3654,7 +3696,7 @@ version = "0.6.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "16d69225bde7a69b235da73377861095455d298f2b970996eec25ddbb42b3d1e" dependencies = [ - "bitmaps", + "bitmaps 2.1.0", "typenum", ] @@ -3734,9 +3776,9 @@ dependencies = [ [[package]] name = "sqlx" -version = "0.5.13" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "551873805652ba0d912fec5bbb0f8b4cdd96baf8e2ebf5970e5671092966019b" +checksum = "1f82cbe94f41641d6c410ded25bbf5097c240cefdf8e3b06d04198d0a96af6a4" dependencies = [ "sqlx-core", "sqlx-macros", @@ -3744,9 +3786,9 @@ dependencies = [ [[package]] name = "sqlx-core" -version = "0.5.13" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e48c61941ccf5ddcada342cd59e3e5173b007c509e1e8e990dafc830294d9dc5" +checksum = "6b69bf218860335ddda60d6ce85ee39f6cf6e5630e300e19757d1de15886a093" dependencies = [ "ahash", "atoi", @@ -3776,6 +3818,7 @@ dependencies = [ "paste", "percent-encoding", "rustls", + "rustls-pemfile", "serde", "sha2 0.10.2", "smallvec", @@ -3785,15 +3828,14 @@ dependencies = [ "thiserror", "tokio-stream", "url", - "webpki", "webpki-roots", ] [[package]] name = "sqlx-macros" -version = "0.5.13" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc0fba2b0cae21fc00fe6046f8baa4c7fcb49e379f0f592b04696607f69ed2e1" +checksum = "f40c63177cf23d356b159b60acd27c54af7423f1736988502e36bae9a712118f" dependencies = [ "dotenv", "either", @@ -3813,24 +3855,15 @@ dependencies = [ [[package]] name = "sqlx-rt" -version = "0.5.13" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4db708cd3e459078f85f39f96a00960bd841f66ee2a669e90bf36907f5a79aae" +checksum = "874e93a365a598dc3dadb197565952cb143ae4aa716f7bcc933a8d836f6bf89f" dependencies = [ "once_cell", - "tokio 1.15.0", + "tokio 1.19.2", "tokio-rustls", ] -[[package]] -name = "standback" -version = "0.2.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e113fb6f3de07a243d434a56ec6f186dfd51cb08448239fe7bcae73f87ff28ff" -dependencies = [ - "version_check", -] - [[package]] name = "static_assertions" version = "1.1.0" @@ -3839,9 +3872,9 @@ checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" [[package]] name = "stderrlog" -version = "0.5.1" +version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "45a53e2eff3e94a019afa6265e8ee04cb05b9d33fe9f5078b14e4e391d155a38" +checksum = "af95cb8a5f79db5b2af2a46f44da7594b5adbcbb65cbf87b8da0959bfdd82460" dependencies = [ "atty", "chrono", @@ -3850,55 +3883,6 @@ dependencies = [ "thread_local", ] -[[package]] -name = "stdweb" -version = "0.4.20" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d022496b16281348b52d0e30ae99e01a73d737b2f45d38fed4edf79f9325a1d5" -dependencies = [ - "discard", - "rustc_version 0.2.3", - "stdweb-derive", - "stdweb-internal-macros", - "stdweb-internal-runtime", - "wasm-bindgen", -] - -[[package]] -name = "stdweb-derive" -version = "0.5.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c87a60a40fccc84bef0652345bbbbbe20a605bf5d0ce81719fc476f5c03b50ef" -dependencies = [ - "proc-macro2 1.0.39", - "quote 1.0.18", - "serde", - "serde_derive", - "syn 1.0.96", -] - -[[package]] -name = "stdweb-internal-macros" -version = "0.2.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "58fa5ff6ad0d98d1ffa8cb115892b6e69d67799f6763e162a1c9db421dc22e11" -dependencies = [ - "base-x", - "proc-macro2 1.0.39", - "quote 1.0.18", - "serde", - "serde_derive", - "serde_json", - "sha1", - "syn 1.0.96", -] - -[[package]] -name = "stdweb-internal-runtime" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "213701ba3370744dcd1a12960caa4843b3d68b4d1c0a5d575e0d65b2ee9d16c0" - [[package]] name = "string_cache" version = "0.8.4" @@ -4199,7 +4183,7 @@ dependencies = [ "once_cell", "regex", "serde", - "sha-1 0.10.0", + "sha-1", "string_enum", "swc_atoms", "swc_common", @@ -4433,6 +4417,12 @@ dependencies = [ "unicode-width", ] +[[package]] +name = "textwrap" +version = "0.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1141d4d61095b28419e22cb0bbf02755f5e54e0526f97f1e3d1d160e60885fb" + [[package]] name = "thiserror" version = "1.0.31" @@ -4466,11 +4456,11 @@ dependencies = [ [[package]] name = "thread_local" -version = "1.0.1" +version = "1.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d40c6d1b69745a6ec6fb1ca717914848da4b44ae29d9b3080cbee91d72a69b14" +checksum = "5516c27b78311c50bf42c071425c560ac799b11c30b31f87e3081965fe5e0180" dependencies = [ - "lazy_static", + "once_cell", ] [[package]] @@ -4484,53 +4474,23 @@ dependencies = [ "winapi", ] -[[package]] -name = "time" -version = "0.2.27" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4752a97f8eebd6854ff91f1c1824cd6160626ac4bd44287f7f4ea2035a02a242" -dependencies = [ - "const_fn", - "libc", - "standback", - "stdweb", - "time-macros", - "version_check", - "winapi", -] - [[package]] name = "time" version = "0.3.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "72c91f41dcb2f096c05f0873d667dceec1087ce5bcf984ec8ffb19acddbb3217" dependencies = [ + "itoa 1.0.2", "libc", "num_threads", + "time-macros", ] [[package]] name = "time-macros" -version = "0.1.1" +version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "957e9c6e26f12cb6d0dd7fc776bb67a706312e7299aed74c8dd5b17ebb27e2f1" -dependencies = [ - "proc-macro-hack", - "time-macros-impl", -] - -[[package]] -name = "time-macros-impl" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd3c141a1b43194f3f56a1411225df8646c55781d5f26db825b3d98507eb482f" -dependencies = [ - "proc-macro-hack", - "proc-macro2 1.0.39", - "quote 1.0.18", - "standback", - "syn 1.0.96", -] +checksum = "42657b1a6f4d817cda8e7a0ace261fe0cc946cf3a80314390b22cc61ae080792" [[package]] name = "tiny-keccak" @@ -4570,9 +4530,9 @@ dependencies = [ [[package]] name = "tokio" -version = "1.15.0" +version = "1.19.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fbbf1c778ec206785635ce8ad57fe52b3009ae9e0c9f574a728f3049d3e55838" +checksum = "c51a52ed6686dd62c320f9b89299e9dfb46f730c7a48e635c19f21d116cb1439" dependencies = [ "bytes 1.1.0", "libc", @@ -4580,9 +4540,10 @@ dependencies = [ "mio", "num_cpus", "once_cell", - "parking_lot 0.11.2", + "parking_lot 0.12.1", "pin-project-lite 0.2.9", "signal-hook-registry", + "socket2", "tokio-macros", "winapi", ] @@ -4597,7 +4558,7 @@ dependencies = [ "once_cell", "pin-project-lite 0.2.9", "tokio 0.2.25", - "tokio 1.15.0", + "tokio 1.19.2", "tokio-stream", ] @@ -4619,17 +4580,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f7d995660bd2b7f8c1568414c1126076c13fbb725c40112dc0120b78eb9b717b" dependencies = [ "native-tls", - "tokio 1.15.0", + "tokio 1.19.2", ] [[package]] name = "tokio-rustls" -version = "0.22.0" +version = "0.23.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc6844de72e57df1980054b38be3a9f4702aba4858be64dd700181a8a6d0e1b6" +checksum = "c43ee83903113e03984cb9e5cebe6c04a5116269e900e3ddba8f068a62adda59" dependencies = [ "rustls", - "tokio 1.15.0", + "tokio 1.19.2", "webpki", ] @@ -4642,7 +4603,7 @@ dependencies = [ "either", "futures-util", "thiserror", - "tokio 1.15.0", + "tokio 1.19.2", ] [[package]] @@ -4653,8 +4614,8 @@ checksum = "df54d54117d6fdc4e4fea40fe1e4e566b3505700e148a6827e59b34b0d2600d9" dependencies = [ "futures-core", "pin-project-lite 0.2.9", - "tokio 1.15.0", - "tokio-util 0.7.2", + "tokio 1.19.2", + "tokio-util", ] [[package]] @@ -4666,49 +4627,34 @@ dependencies = [ "futures-core", "libc", "redox_syscall 0.2.13", - "tokio 1.15.0", + "tokio 1.19.2", "tokio-stream", "xattr", ] [[package]] name = "tokio-tungstenite" -version = "0.14.0" +version = "0.17.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e96bb520beab540ab664bd5a9cfeaa1fcd846fa68c830b42e2c8963071251d2" +checksum = "06cda1232a49558c46f8a504d5b93101d42c0bf7f911f12a105ba48168f821ae" dependencies = [ "futures-util", "log", - "pin-project", - "tokio 1.15.0", + "tokio 1.19.2", "tungstenite", ] [[package]] name = "tokio-util" -version = "0.6.10" +version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "36943ee01a6d67977dd3f84a5a1d2efeb4ada3a1ae771cadfaa535d9d9fc6507" -dependencies = [ - "bytes 1.1.0", - "futures-core", - "futures-sink", - "log", - "pin-project-lite 0.2.9", - "tokio 1.15.0", -] - -[[package]] -name = "tokio-util" -version = "0.7.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f988a1a1adc2fb21f9c12aa96441da33a1728193ae0b95d2be22dbd17fcb4e5c" +checksum = "cc463cd8deddc3770d20f9852143d50bf6094e640b485cb2e189a2099085ff45" dependencies = [ "bytes 1.1.0", "futures-core", "futures-sink", "pin-project-lite 0.2.9", - "tokio 1.15.0", + "tokio 1.19.2", "tracing", ] @@ -4738,7 +4684,7 @@ dependencies = [ "serde_derive", "sha2 0.9.9", "sha3", - "tokio 1.15.0", + "tokio 1.19.2", ] [[package]] @@ -4749,9 +4695,9 @@ checksum = "360dfd1d6d30e05fda32ace2c8c70e9c0a9da713275777f5a4dbb8a1893930c6" [[package]] name = "tracing" -version = "0.1.34" +version = "0.1.35" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d0ecdcb44a79f0fe9844f0c4f33a342cbcbb5117de8001e6ba0dc2351327d09" +checksum = "a400e31aa60b9d44a52a8ee0343b5b18566b03a8321e0d321f695cf56e940160" dependencies = [ "cfg-if 1.0.0", "pin-project-lite 0.2.9", @@ -4772,11 +4718,11 @@ dependencies = [ [[package]] name = "tracing-core" -version = "0.1.26" +version = "0.1.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f54c8ca710e81886d498c2fd3331b56c93aa248d49de2222ad2742247c60072f" +checksum = "7b7358be39f2f274f322d2aaed611acc57f382e8eb1e5b48cb9ae30933495ce7" dependencies = [ - "lazy_static", + "once_cell", "valuable", ] @@ -4787,7 +4733,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b4d7c0b83d4a500748fa5879461652b361edf5c9d51ede2a2ac03875ca185e24" dependencies = [ "tracing", - "tracing-subscriber", + "tracing-subscriber 0.2.25", +] + +[[package]] +name = "tracing-error" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d686ec1c0f384b1277f097b2f279a2ecc11afe8c133c1aabf036a27cb4cd206e" +dependencies = [ + "tracing", + "tracing-subscriber 0.3.14", ] [[package]] @@ -4811,36 +4767,33 @@ dependencies = [ "tracing-core", ] -[[package]] -name = "tracing-serde" -version = "0.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc6b213177105856957181934e4920de57730fc69bf42c37ee5bb664d406d9e1" -dependencies = [ - "serde", - "tracing-core", -] - [[package]] name = "tracing-subscriber" version = "0.2.25" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0e0d2eaa99c3c2e41547cfa109e910a68ea03823cccad4a0525dcbc9b01e8c71" +dependencies = [ + "sharded-slab", + "thread_local", + "tracing-core", +] + +[[package]] +name = "tracing-subscriber" +version = "0.3.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a713421342a5a666b7577783721d3117f1b69a393df803ee17bb73b1e122a59" dependencies = [ "ansi_term", - "chrono", - "lazy_static", "matchers", + "once_cell", "regex", - "serde", - "serde_json", "sharded-slab", "smallvec", "thread_local", "tracing", "tracing-core", "tracing-log", - "tracing-serde", ] [[package]] @@ -4868,7 +4821,7 @@ dependencies = [ "rand 0.8.5", "thiserror", "time 0.3.11", - "tokio 1.15.0", + "tokio 1.19.2", "trust-dns-proto", ] @@ -4893,7 +4846,7 @@ dependencies = [ "smallvec", "thiserror", "tinyvec", - "tokio 1.15.0", + "tokio 1.19.2", "url", ] @@ -4914,7 +4867,7 @@ dependencies = [ "serde", "thiserror", "time 0.3.11", - "tokio 1.15.0", + "tokio 1.19.2", "toml", "trust-dns-client", "trust-dns-proto", @@ -4928,19 +4881,18 @@ checksum = "59547bce71d9c38b83d9c0e92b6066c4253371f15005def0c30d9657f50c7642" [[package]] name = "tungstenite" -version = "0.13.0" +version = "0.17.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5fe8dada8c1a3aeca77d6b51a4f1314e0f4b8e438b7b1b71e3ddaca8080e4093" +checksum = "d96a2dea40e7570482f28eb57afbe42d97551905da6a9400acc5c328d24004f5" dependencies = [ "base64 0.13.0", "byteorder", "bytes 1.1.0", "http", "httparse", - "input_buffer", "log", "rand 0.8.5", - "sha-1 0.9.8", + "sha-1", "thiserror", "url", "utf-8", @@ -4954,9 +4906,9 @@ checksum = "0685c84d5d54d1c26f7d3eb96cd41550adb97baed141a761cf335d3d33bcd0ae" [[package]] name = "typed-builder" -version = "0.9.1" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a46ee5bd706ff79131be9c94e7edcb82b703c487766a114434e5790361cf08c5" +checksum = "89851716b67b937e393b3daa8423e67ddfc4bbbf1654bcf05488e95e0828db0c" dependencies = [ "proc-macro2 1.0.39", "quote 1.0.18", @@ -5134,6 +5086,12 @@ version = "0.10.0+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1a143597ca7c7793eff794def352d41792a93c481eb1042423ff7ff72ba2c31f" +[[package]] +name = "wasi" +version = "0.11.0+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" + [[package]] name = "wasm-bindgen" version = "0.2.80" @@ -5212,9 +5170,9 @@ dependencies = [ [[package]] name = "webpki" -version = "0.21.4" +version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b8e38c0608262c46d4a56202ebabdeb094cef7e560ca7a226c6bf055188aa4ea" +checksum = "f095d78192e208183081cc07bc5515ef55216397af48b873e5edcd72637fa1bd" dependencies = [ "ring", "untrusted", @@ -5222,9 +5180,9 @@ dependencies = [ [[package]] name = "webpki-roots" -version = "0.21.1" +version = "0.22.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aabe153544e473b775453675851ecc86863d2a81d786d741f6b76778f2a48940" +checksum = "f1c760f0d366a6c24a02ed7816e23e691f5d92291f94d15e836006fd11b04daf" dependencies = [ "webpki", ] @@ -5350,6 +5308,8 @@ dependencies = [ [[package]] name = "yajrc" version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b40687b4c165cb760e35730055c8840f36897e7c98099b2d3d66ba8cb624c79a" dependencies = [ "anyhow", "serde", diff --git a/backend/Cargo.toml b/backend/Cargo.toml index 40b8d0d58..a561a96b5 100644 --- a/backend/Cargo.toml +++ b/backend/Cargo.toml @@ -47,19 +47,20 @@ unstable = ["patch-db/unstable"] [dependencies] aes = { version = "0.7.5", features = ["ctr"] } async-stream = "0.3.3" -async-trait = "0.1.51" +async-trait = "0.1.56" avahi-sys = { git = "https://github.com/Start9Labs/avahi-sys", version = "0.10.0", branch = "feature/dynamic-linking", features = [ "dynamic", ], optional = true } base32 = "0.4.0" base64 = "0.13.0" -base64ct = "1.5.0" +base64ct = "1.5.1" basic-cookies = "0.1.4" -bollard = "0.11.0" +bollard = "0.13.0" chrono = { version = "0.4.19", features = ["serde"] } -clap = "2.33" -color-eyre = "0.5" -cookie_store = "0.15.0" +clap = "3.2.8" +color-eyre = "0.6.1" +cookie_store = "0.16.1" +current_platform = "0.2.0" digest = "0.10.3" digest-old = { package = "digest", version = "0.9.0" } divrem = "1.0.0" @@ -67,83 +68,80 @@ ed25519 = { version = "1.5.2", features = ["pkcs8", "pem", "alloc"] } ed25519-dalek = { version = "1.0.1", features = ["serde"] } emver = { version = "0.1.6", features = ["serde"] } fd-lock-rs = "0.1.3" -futures = "0.3.17" +futures = "0.3.21" git-version = "0.3.5" helpers = { path = "../libs/helpers" } hex = "0.4.3" hmac = "0.12.1" -http = "0.2.5" -hyper = "0.14.13" -hyper-ws-listener = { git = "https://github.com/Start9Labs/hyper-ws-listener.git", branch = "main" } -imbl = "1.0.1" -indexmap = { version = "1.8.1", features = ["serde"] } +http = "0.2.8" +hyper = "0.14.20" +hyper-ws-listener = "0.2.0" +imbl = "2.0.0" +indexmap = { version = "1.9.1", features = ["serde"] } isocountry = "0.3.2" -itertools = "0.10.1" +itertools = "0.10.3" js_engine = { path = '../libs/js_engine', optional = true } jsonpath_lib = "0.3.0" -lazy_static = "1.4" -libc = "0.2.103" -log = "0.4.14" +lazy_static = "1.4.0" +libc = "0.2.126" +log = "0.4.17" models = { version = "*", path = "../libs/models" } -nix = "0.23.0" -nom = "7.0.0" +nix = "0.24.1" +nom = "7.1.1" num = "0.4.0" -num_enum = "0.5.4" +num_enum = "0.5.7" openssh-keys = "0.5.0" -openssl = { version = "0.10.36", features = ["vendored"] } +openssl = { version = "0.10.41", features = ["vendored"] } patch-db = { version = "*", path = "../patch-db/patch-db", features = [ "trace", ] } pbkdf2 = "0.11.0" -pin-project = "1.0.8" +pin-project = "1.0.11" pkcs8 = { version = "0.9.0", features = ["std"] } -platforms = "1.1.0" prettytable-rs = "0.8.0" proptest = "1.0.0" proptest-derive = "0.3.0" -rand = "0.7.3" -regex = "1.5.4" -reqwest = { version = "0.11.4", features = ["stream", "json", "socks"] } -reqwest_cookie_store = "0.2.0" -rpassword = "5.0.1" -rpc-toolkit = { version = "*", path = "../rpc-toolkit/rpc-toolkit" } -rust-argon2 = "0.8.3" +rand = { version = "0.8.5", features = ["std"] } +rand-old = { package = "rand", version = "0.7.3" } +regex = "1.6.0" +reqwest = { version = "0.11.11", features = ["stream", "json", "socks"] } +reqwest_cookie_store = "0.3.0" +rpassword = "6.0.1" +rpc-toolkit = "0.2.0" +rust-argon2 = "1.0.0" scopeguard = "1.1" # because avahi-sys fucks your shit up -serde = { version = "1.0.130", features = ["derive", "rc"] } +serde = { version = "1.0.139", features = ["derive", "rc"] } serde_cbor = { package = "ciborium", version = "0.2.0" } -serde_json = "1.0.68" -serde_toml = { package = "toml", version = "0.5.8" } -serde_yaml = "0.8.21" +serde_json = "1.0.82" +serde_toml = { package = "toml", version = "0.5.9" } +serde_with = { version = "1.14.0", features = ["macros", "json"] } +serde_yaml = "0.8.25" sha2 = "0.10.2" -sha2-old = { package = "sha2", version = "0.9.8" } -simple-logging = "2.0" -sqlx = { version = "0.5.11", features = [ +sha2-old = { package = "sha2", version = "0.9.9" } +simple-logging = "2.0.2" +sqlx = { version = "0.6.0", features = [ "chrono", "offline", "runtime-tokio-rustls", "sqlite", ] } -stderrlog = "0.5.1" -tar = "0.4.37" -thiserror = "1.0.29" -tokio = { version = "1.15.0", features = ["full"] } +stderrlog = "0.5.3" +tar = "0.4.38" +thiserror = "1.0.31" +tokio = { version = "1.19.2", features = ["full"] } tokio-compat-02 = "0.2.0" -tokio-stream = { version = "0.1.7", features = ["io-util", "sync"] } +tokio-stream = { version = "0.1.9", features = ["io-util", "sync"] } tokio-tar = { git = "https://github.com/dr-bonez/tokio-tar.git" } -tokio-tungstenite = "0.14.0" -tokio-util = { version = "0.6.8", features = ["io"] } -torut = "0.2.0" -tracing = "0.1" -tracing-error = "0.1" -tracing-futures = "0.2" -tracing-subscriber = "0.2" +tokio-tungstenite = "0.17.1" +tokio-util = { version = "0.7.3", features = ["io"] } +torut = "0.2.1" +tracing = "0.1.35" +tracing-error = "0.2.0" +tracing-futures = "0.2.5" +tracing-subscriber = { version = "0.3.14", features = ["env-filter"] } trust-dns-server = "0.21.2" -typed-builder = "0.9.1" +typed-builder = "0.10.0" url = { version = "2.2.2", features = ["serde"] } -[dependencies.serde_with] -features = ["macros", "json"] -version = "1.10.0" - [profile.dev.package.backtrace] opt-level = 3 diff --git a/backend/src/action.rs b/backend/src/action.rs index 8f00e3f14..e554efd92 100644 --- a/backend/src/action.rs +++ b/backend/src/action.rs @@ -9,7 +9,7 @@ use tracing::instrument; use crate::config::{Config, ConfigSpec}; use crate::context::RpcContext; -use crate::id::{ ImageId}; +use crate::id::ImageId; use crate::procedure::{PackageProcedure, ProcedureName}; use crate::s9pk::manifest::PackageId; use crate::util::serde::{display_serializable, parse_stdin_deserializable, IoFormat}; @@ -99,7 +99,7 @@ impl Action { } } -fn display_action_result(action_result: ActionResult, matches: &ArgMatches<'_>) { +fn display_action_result(action_result: ActionResult, matches: &ArgMatches) { if matches.is_present("format") { return display_serializable(action_result, matches); } diff --git a/backend/src/auth.rs b/backend/src/auth.rs index 968c11c61..bc9492c11 100644 --- a/backend/src/auth.rs +++ b/backend/src/auth.rs @@ -24,7 +24,7 @@ pub fn auth() -> Result<(), Error> { Ok(()) } -pub fn parse_metadata(_: &str, _: &ArgMatches<'_>) -> Result { +pub fn parse_metadata(_: &str, _: &ArgMatches) -> Result { Ok(serde_json::json!({ "platforms": ["cli"], })) @@ -52,7 +52,7 @@ async fn cli_login( let password = if let Some(password) = password { password } else { - rpassword::prompt_password_stdout("Password: ")? + rpassword::prompt_password("Password: ")? }; rpc_toolkit::command_helpers::call_remote( @@ -169,7 +169,7 @@ pub async fn session() -> Result<(), Error> { Ok(()) } -fn display_sessions(arg: SessionList, matches: &ArgMatches<'_>) { +fn display_sessions(arg: SessionList, matches: &ArgMatches) { use prettytable::*; if matches.is_present("format") { @@ -235,7 +235,7 @@ pub async fn list( }) } -fn parse_comma_separated(arg: &str, _: &ArgMatches<'_>) -> Result, RpcError> { +fn parse_comma_separated(arg: &str, _: &ArgMatches) -> Result, RpcError> { Ok(arg.split(",").map(|s| s.trim().to_owned()).collect()) } @@ -267,14 +267,14 @@ async fn cli_reset_password( let old_password = if let Some(old_password) = old_password { old_password } else { - rpassword::prompt_password_stdout("Current Password: ")? + rpassword::prompt_password("Current Password: ")? }; let new_password = if let Some(new_password) = new_password { new_password } else { - let new_password = rpassword::prompt_password_stdout("New Password: ")?; - if new_password != rpassword::prompt_password_stdout("Confirm: ")? { + let new_password = rpassword::prompt_password("New Password: ")?; + if new_password != rpassword::prompt_password("Confirm: ")? { return Err(Error::new( eyre!("Passwords do not match"), crate::ErrorKind::IncorrectPassword, diff --git a/backend/src/backup/backup_bulk.rs b/backend/src/backup/backup_bulk.rs index 2b40efa17..40100948c 100644 --- a/backend/src/backup/backup_bulk.rs +++ b/backend/src/backup/backup_bulk.rs @@ -114,7 +114,7 @@ impl Serialize for OsBackup { } } -fn parse_comma_separated(arg: &str, _: &ArgMatches<'_>) -> Result, Error> { +fn parse_comma_separated(arg: &str, _: &ArgMatches) -> Result, Error> { arg.split(',') .map(|s| s.trim().parse().map_err(Error::from)) .collect() diff --git a/backend/src/backup/restore.rs b/backend/src/backup/restore.rs index 4a3994c85..ec58f69e9 100644 --- a/backend/src/backup/restore.rs +++ b/backend/src/backup/restore.rs @@ -37,7 +37,7 @@ use crate::util::serde::IoFormat; use crate::volume::{backup_dir, BACKUP_DIR, PKG_VOLUME_DIR}; use crate::{Error, ResultExt}; -fn parse_comma_separated(arg: &str, _: &ArgMatches<'_>) -> Result, Error> { +fn parse_comma_separated(arg: &str, _: &ArgMatches) -> Result, Error> { arg.split(',') .map(|s| s.trim().parse().map_err(Error::from)) .collect() diff --git a/backend/src/backup/target/mod.rs b/backend/src/backup/target/mod.rs index fb140c260..b1f53f51f 100644 --- a/backend/src/backup/target/mod.rs +++ b/backend/src/backup/target/mod.rs @@ -6,7 +6,7 @@ use chrono::{DateTime, Utc}; use clap::ArgMatches; use color_eyre::eyre::eyre; use digest::generic_array::GenericArray; -use digest::{Digest, OutputSizeUser}; +use digest::OutputSizeUser; use rpc_toolkit::command; use serde::{Deserialize, Serialize}; use sha2::Sha256; @@ -186,7 +186,7 @@ pub struct PackageBackupInfo { pub timestamp: DateTime, } -fn display_backup_info(info: BackupInfo, matches: &ArgMatches<'_>) { +fn display_backup_info(info: BackupInfo, matches: &ArgMatches) { use prettytable::*; if matches.is_present("format") { diff --git a/backend/src/bin/embassy-cli.rs b/backend/src/bin/embassy-cli.rs index e86957d50..2cfd0dde8 100644 --- a/backend/src/bin/embassy-cli.rs +++ b/backend/src/bin/embassy-cli.rs @@ -7,20 +7,24 @@ use rpc_toolkit::run_cli; use rpc_toolkit::yajrc::RpcError; use serde_json::Value; +lazy_static::lazy_static! { + static ref VERSION_STRING: String = Current::new().semver().to_string(); +} + fn inner_main() -> Result<(), Error> { run_cli!({ command: embassy::main_api, app: app => app .name("Embassy CLI") - .version(Current::new().semver().to_string().as_str()) + .version(&**VERSION_STRING) .arg( clap::Arg::with_name("config") - .short("c") + .short('c') .long("config") .takes_value(true), ) - .arg(Arg::with_name("host").long("host").short("h").takes_value(true)) - .arg(Arg::with_name("proxy").long("proxy").short("p").takes_value(true)), + .arg(Arg::with_name("host").long("host").short('h').takes_value(true)) + .arg(Arg::with_name("proxy").long("proxy").short('p').takes_value(true)), context: matches => { EmbassyLogger::init(); CliContext::init(matches)? diff --git a/backend/src/bin/embassy-init.rs b/backend/src/bin/embassy-init.rs index b437833f2..bee2285c5 100644 --- a/backend/src/bin/embassy-init.rs +++ b/backend/src/bin/embassy-init.rs @@ -210,7 +210,7 @@ fn main() { let matches = clap::App::new("embassyd") .arg( clap::Arg::with_name("config") - .short("c") + .short('c') .long("config") .takes_value(true), ) diff --git a/backend/src/bin/embassy-sdk.rs b/backend/src/bin/embassy-sdk.rs index 9a77c9988..56c462f53 100644 --- a/backend/src/bin/embassy-sdk.rs +++ b/backend/src/bin/embassy-sdk.rs @@ -6,15 +6,19 @@ use rpc_toolkit::run_cli; use rpc_toolkit::yajrc::RpcError; use serde_json::Value; +lazy_static::lazy_static! { + static ref VERSION_STRING: String = Current::new().semver().to_string(); +} + fn inner_main() -> Result<(), Error> { run_cli!({ command: embassy::portable_api, app: app => app .name("Embassy SDK") - .version(Current::new().semver().to_string().as_str()) + .version(&**VERSION_STRING) .arg( clap::Arg::with_name("config") - .short("c") + .short('c') .long("config") .takes_value(true), ), diff --git a/backend/src/bin/embassyd.rs b/backend/src/bin/embassyd.rs index 156c66097..a5b9e1d40 100644 --- a/backend/src/bin/embassyd.rs +++ b/backend/src/bin/embassyd.rs @@ -287,7 +287,7 @@ fn main() { let matches = clap::App::new("embassyd") .arg( clap::Arg::with_name("config") - .short("c") + .short('c') .long("config") .takes_value(true), ) diff --git a/backend/src/config/util.rs b/backend/src/config/util.rs index 1a64b1a09..8e29d6509 100644 --- a/backend/src/config/util.rs +++ b/backend/src/config/util.rs @@ -16,7 +16,7 @@ impl CharSet { self.0.iter().any(|r| r.0.contains(c)) } pub fn gen(&self, rng: &mut R) -> char { - let mut idx = rng.gen_range(0, self.1); + let mut idx = rng.gen_range(0..self.1); for r in &self.0 { if idx < r.1 { return std::convert::TryFrom::try_from( diff --git a/backend/src/developer/mod.rs b/backend/src/developer/mod.rs index ce169d2cc..7d346aa56 100644 --- a/backend/src/developer/mod.rs +++ b/backend/src/developer/mod.rs @@ -21,7 +21,7 @@ pub fn init(#[context] ctx: SdkContext) -> Result<(), Error> { .with_ctx(|_| (crate::ErrorKind::Filesystem, parent.display().to_string()))?; } tracing::info!("Generating new developer key..."); - let keypair = Keypair::generate(&mut rand::thread_rng()); + let keypair = Keypair::generate(&mut rand_old::thread_rng()); tracing::info!("Writing key to {}", ctx.developer_key_path.display()); let keypair_bytes = ed25519::KeypairBytes { secret_key: keypair.secret.to_bytes(), diff --git a/backend/src/disk/mod.rs b/backend/src/disk/mod.rs index 2dab5c467..8ba88424d 100644 --- a/backend/src/disk/mod.rs +++ b/backend/src/disk/mod.rs @@ -20,7 +20,7 @@ pub fn disk() -> Result<(), Error> { Ok(()) } -fn display_disk_info(info: DiskListResponse, matches: &ArgMatches<'_>) { +fn display_disk_info(info: DiskListResponse, matches: &ArgMatches) { use prettytable::*; if matches.is_present("format") { diff --git a/backend/src/install/mod.rs b/backend/src/install/mod.rs index 3ce5ae332..6cd400004 100644 --- a/backend/src/install/mod.rs +++ b/backend/src/install/mod.rs @@ -45,7 +45,7 @@ use crate::s9pk::manifest::{Manifest, PackageId}; use crate::s9pk::reader::S9pkReader; use crate::status::{MainStatus, Status}; use crate::util::io::{copy_and_shutdown, response_to_reader}; -use crate::util::serde::{display_serializable, IoFormat, Port}; +use crate::util::serde::{display_serializable, Port}; use crate::util::{display_none, AsyncFileExt, Version}; use crate::version::{Current, VersionT}; use crate::volume::{asset_dir, script_dir}; @@ -121,9 +121,9 @@ impl std::fmt::Display for MinMax { pub async fn install( #[context] ctx: RpcContext, #[arg] id: String, - #[arg(short = "m", long = "marketplace-url", rename = "marketplace-url")] + #[arg(short = 'm', long = "marketplace-url", rename = "marketplace-url")] marketplace_url: Option, - #[arg(short = "v", long = "version-spec", rename = "version-spec")] version_spec: Option< + #[arg(short = 'v', long = "version-spec", rename = "version-spec")] version_spec: Option< String, >, #[arg(long = "version-priority", rename = "version-priority")] version_priority: Option, @@ -143,7 +143,7 @@ pub async fn install( version, version_priority, Current::new().compat(), - platforms::TARGET_ARCH, + &*crate::ARCH, )) .await .with_kind(crate::ErrorKind::Registry)? @@ -159,7 +159,7 @@ pub async fn install( man.version, version_priority, Current::new().compat(), - platforms::TARGET_ARCH, + &*crate::ARCH, )) .await .with_kind(crate::ErrorKind::Registry)? @@ -191,7 +191,7 @@ pub async fn install( id, man.version, Current::new().compat(), - platforms::TARGET_ARCH, + &*crate::ARCH, )) .await? .error_for_status()?, @@ -210,7 +210,7 @@ pub async fn install( id, man.version, Current::new().compat(), - platforms::TARGET_ARCH, + &*crate::ARCH, )) .await? .error_for_status()?, @@ -229,7 +229,7 @@ pub async fn install( id, man.version, Current::new().compat(), - platforms::TARGET_ARCH, + &*crate::ARCH, )) .await? .error_for_status()?, @@ -959,7 +959,7 @@ pub async fn install_s9pk( dep, info.version, Current::new().compat(), - platforms::TARGET_ARCH, + &*crate::ARCH, )) .await .with_kind(crate::ErrorKind::Registry)? @@ -994,7 +994,7 @@ pub async fn install_s9pk( dep, info.version, Current::new().compat(), - platforms::TARGET_ARCH, + &*crate::ARCH, )) .await .with_kind(crate::ErrorKind::Registry)?; diff --git a/backend/src/lib.rs b/backend/src/lib.rs index 77e9f1b27..cef4164bb 100644 --- a/backend/src/lib.rs +++ b/backend/src/lib.rs @@ -1,6 +1,13 @@ pub const DEFAULT_MARKETPLACE: &str = "https://marketplace.start9.com"; pub const BUFFER_SIZE: usize = 1024; pub const HOST_IP: [u8; 4] = [172, 18, 0, 1]; +pub const TARGET: &str = current_platform::CURRENT_PLATFORM; +lazy_static::lazy_static! { + pub static ref ARCH: &'static str = { + let (arch, _) = TARGET.split_once("-").unwrap(); + arch + }; +} pub mod action; pub mod auth; diff --git a/backend/src/logs.rs b/backend/src/logs.rs index bc2f7a0a2..709171859 100644 --- a/backend/src/logs.rs +++ b/backend/src/logs.rs @@ -111,7 +111,7 @@ pub enum LogSource { Container(PackageId), } -pub fn display_logs(all: LogResponse, _: &ArgMatches<'_>) { +pub fn display_logs(all: LogResponse, _: &ArgMatches) { for entry in all.entries.iter() { println!("{}", entry); } diff --git a/backend/src/manager/mod.rs b/backend/src/manager/mod.rs index efe654481..282830218 100644 --- a/backend/src/manager/mod.rs +++ b/backend/src/manager/mod.rs @@ -229,7 +229,10 @@ async fn run_main( break; } } - Err(bollard::errors::Error::DockerResponseNotFoundError { .. }) => (), + Err(bollard::errors::Error::DockerResponseServerError { + status_code: 404, // NOT FOUND + .. + }) => (), Err(e) => Err(e)?, } match futures::poll!(&mut runtime) { @@ -375,8 +378,13 @@ impl Manager { .or_else(|e| { if matches!( e, - bollard::errors::Error::DockerResponseConflictError { .. } - | bollard::errors::Error::DockerResponseNotFoundError { .. } + bollard::errors::Error::DockerResponseServerError { + status_code: 409, // CONFLICT + .. + } | bollard::errors::Error::DockerResponseServerError { + status_code: 404, // NOT FOUND + .. + } ) { Ok(()) } else { @@ -413,9 +421,18 @@ impl Manager { ) .await { - Err(bollard::errors::Error::DockerResponseNotFoundError { .. }) - | Err(bollard::errors::Error::DockerResponseConflictError { .. }) - | Err(bollard::errors::Error::DockerResponseNotModifiedError { .. }) => (), // Already stopped + Err(bollard::errors::Error::DockerResponseServerError { + status_code: 404, // NOT FOUND + .. + }) + | Err(bollard::errors::Error::DockerResponseServerError { + status_code: 409, // CONFLICT + .. + }) + | Err(bollard::errors::Error::DockerResponseServerError { + status_code: 304, // NOT MODIFIED + .. + }) => (), // Already stopped a => a?, }; self.shared.status.store( @@ -566,9 +583,18 @@ async fn stop(shared: &ManagerSharedState) -> Result<(), Error> { ) .await { - Err(bollard::errors::Error::DockerResponseNotFoundError { .. }) - | Err(bollard::errors::Error::DockerResponseConflictError { .. }) - | Err(bollard::errors::Error::DockerResponseNotModifiedError { .. }) => (), // Already stopped + Err(bollard::errors::Error::DockerResponseServerError { + status_code: 404, // NOT FOUND + .. + }) + | Err(bollard::errors::Error::DockerResponseServerError { + status_code: 409, // CONFLICT + .. + }) + | Err(bollard::errors::Error::DockerResponseServerError { + status_code: 304, // NOT MODIFIED + .. + }) => (), // Already stopped a => a?, }; shared.status.store( diff --git a/backend/src/net/tor.rs b/backend/src/net/tor.rs index 3326c5258..a37ce4649 100644 --- a/backend/src/net/tor.rs +++ b/backend/src/net/tor.rs @@ -32,7 +32,7 @@ pub fn tor() -> Result<(), Error> { Ok(()) } -fn display_services(services: Vec, matches: &ArgMatches<'_>) { +fn display_services(services: Vec, matches: &ArgMatches) { use prettytable::*; if matches.is_present("format") { diff --git a/backend/src/net/wifi.rs b/backend/src/net/wifi.rs index 0d0a0d1d5..a179f116a 100644 --- a/backend/src/net/wifi.rs +++ b/backend/src/net/wifi.rs @@ -188,7 +188,7 @@ pub struct WifiListOut { security: Vec, } pub type WifiList = HashMap; -fn display_wifi_info(info: WiFiInfo, matches: &ArgMatches<'_>) { +fn display_wifi_info(info: WiFiInfo, matches: &ArgMatches) { use prettytable::*; if matches.is_present("format") { @@ -252,7 +252,7 @@ fn display_wifi_info(info: WiFiInfo, matches: &ArgMatches<'_>) { table_global.print_tty(false); } -fn display_wifi_list(info: Vec, matches: &ArgMatches<'_>) { +fn display_wifi_list(info: Vec, matches: &ArgMatches) { use prettytable::*; if matches.is_present("format") { @@ -764,7 +764,7 @@ pub async fn interface_connected(interface: &str) -> Result { Ok(v.is_some()) } -pub fn country_code_parse(code: &str, _matches: &ArgMatches<'_>) -> Result { +pub fn country_code_parse(code: &str, _matches: &ArgMatches) -> Result { CountryCode::for_alpha2(code).map_err(|_| { Error::new( color_eyre::eyre::eyre!("Invalid Country Code: {}", code), diff --git a/backend/src/procedure/docker.rs b/backend/src/procedure/docker.rs index ae82b1e85..afdb23f36 100644 --- a/backend/src/procedure/docker.rs +++ b/backend/src/procedure/docker.rs @@ -127,7 +127,11 @@ impl DockerProcedure { ) .await { - Ok(()) | Err(bollard::errors::Error::DockerResponseNotFoundError { .. }) => Ok(()), + Ok(()) + | Err(bollard::errors::Error::DockerResponseServerError { + status_code: 404, // NOT FOUND + .. + }) => Ok(()), Err(e) => Err(e), }?; } diff --git a/backend/src/properties.rs b/backend/src/properties.rs index 5dfabab1d..0a70e6e41 100644 --- a/backend/src/properties.rs +++ b/backend/src/properties.rs @@ -9,7 +9,7 @@ use crate::procedure::ProcedureName; use crate::s9pk::manifest::{Manifest, PackageId}; use crate::{Error, ErrorKind}; -pub fn display_properties(response: Value, _: &ArgMatches<'_>) { +pub fn display_properties(response: Value, _: &ArgMatches) { println!("{}", response); } diff --git a/backend/src/ssh.rs b/backend/src/ssh.rs index b4d35033d..02294a90b 100644 --- a/backend/src/ssh.rs +++ b/backend/src/ssh.rs @@ -114,7 +114,7 @@ pub async fn delete(#[context] ctx: RpcContext, #[arg] fingerprint: String) -> R } } -fn display_all_ssh_keys(all: Vec, matches: &ArgMatches<'_>) { +fn display_all_ssh_keys(all: Vec, matches: &ArgMatches) { use prettytable::*; if matches.is_present("format") { diff --git a/backend/src/update/mod.rs b/backend/src/update/mod.rs index d6f9b1b7c..d68a3f8f7 100644 --- a/backend/src/update/mod.rs +++ b/backend/src/update/mod.rs @@ -76,7 +76,7 @@ pub enum UpdateResult { Updating, } -fn display_update_result(status: WithRevision, _: &ArgMatches<'_>) { +fn display_update_result(status: WithRevision, _: &ArgMatches) { match status.response { UpdateResult::Updating => { println!("Updating..."); @@ -139,7 +139,7 @@ async fn maybe_do_update( "{}/eos/v0/latest?eos-version={}&arch={}", marketplace_url, Current::new().semver(), - platforms::TARGET_ARCH, + &*crate::ARCH, )) .await .with_kind(ErrorKind::Network)? @@ -304,7 +304,7 @@ impl std::fmt::Display for EosUrl { self.base, self.version, Current::new().semver(), - platforms::TARGET_ARCH, + &*crate::ARCH, ) } } diff --git a/backend/src/util/serde.rs b/backend/src/util/serde.rs index a9b5cb654..bc6038a30 100644 --- a/backend/src/util/serde.rs +++ b/backend/src/util/serde.rs @@ -412,7 +412,7 @@ impl IoFormat { } } -pub fn display_serializable(t: T, matches: &ArgMatches<'_>) { +pub fn display_serializable(t: T, matches: &ArgMatches) { let format = match matches.value_of("format").map(|f| f.parse()) { Some(Ok(f)) => f, Some(Err(_)) => { @@ -428,7 +428,7 @@ pub fn display_serializable(t: T, matches: &ArgMatches<'_>) { pub fn parse_stdin_deserializable Deserialize<'de>>( stdin: &mut std::io::Stdin, - matches: &ArgMatches<'_>, + matches: &ArgMatches, ) -> Result { let format = match matches.value_of("format").map(|f| f.parse()) { Some(Ok(f)) => f, diff --git a/libs/Cargo.lock b/libs/Cargo.lock index 4e99737fc..0053094db 100644 --- a/libs/Cargo.lock +++ b/libs/Cargo.lock @@ -18,7 +18,7 @@ version = "0.7.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fcb51a0695d8f838b1ee009b3fbf66bda078cd64590202a864a8f3e8c4315c47" dependencies = [ - "getrandom 0.2.6", + "getrandom", "once_cell", "version_check", ] @@ -241,7 +241,7 @@ dependencies = [ "cfg-if", "hashbrown 0.12.1", "lock_api", - "parking_lot_core 0.9.3", + "parking_lot_core", ] [[package]] @@ -291,7 +291,7 @@ dependencies = [ "libc", "log", "once_cell", - "parking_lot 0.12.1", + "parking_lot", "pin-project", "serde", "serde_json", @@ -575,17 +575,6 @@ dependencies = [ "version_check", ] -[[package]] -name = "getrandom" -version = "0.1.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce" -dependencies = [ - "cfg-if", - "libc", - "wasi 0.9.0+wasi-snapshot-preview1", -] - [[package]] name = "getrandom" version = "0.2.6" @@ -762,7 +751,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "543682c9082b25e63d03b5acbd65ad111fd49dd93e70843e5175db4ff81d606b" dependencies = [ "bitmaps", - "rand_core 0.6.3", + "rand_core", "rand_xoshiro", "sized-chunks", "typenum", @@ -1035,24 +1024,14 @@ checksum = "2a60c7ce501c71e03a9c9c0d35b861413ae925bd979cc7a4e30d060069aaac8d" [[package]] name = "mio" -version = "0.7.14" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8067b404fe97c70829f082dec8bcf4f71225d7eaea1d8645349cb76fa06205cc" +checksum = "57ee1c23c7c63b0c9250c339ffdc69255f110b298b901b9f6c82547b7b87caaf" dependencies = [ "libc", "log", - "miow", - "ntapi", - "winapi", -] - -[[package]] -name = "miow" -version = "0.3.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9f1c5b025cda876f66ef43a113f91ebc9f4ccef34843000e0adf6ebbab84e21" -dependencies = [ - "winapi", + "wasi 0.11.0+wasi-snapshot-preview1", + "windows-sys", ] [[package]] @@ -1061,7 +1040,7 @@ version = "0.1.0" dependencies = [ "emver", "patch-db", - "rand 0.7.3", + "rand", "serde", "thiserror", ] @@ -1128,15 +1107,6 @@ dependencies = [ "version_check", ] -[[package]] -name = "ntapi" -version = "0.3.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c28774a7fd2fbb4f0babd8237ce554b73af68021b5f695a3cebd6c59bac0980f" -dependencies = [ - "winapi", -] - [[package]] name = "num-bigint" version = "0.4.3" @@ -1229,17 +1199,6 @@ dependencies = [ "vcpkg", ] -[[package]] -name = "parking_lot" -version = "0.11.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d17b78036a60663b797adeaee46f5c9dfebb86948d1255007a1d6be0271ff99" -dependencies = [ - "instant", - "lock_api", - "parking_lot_core 0.8.5", -] - [[package]] name = "parking_lot" version = "0.12.1" @@ -1247,21 +1206,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" dependencies = [ "lock_api", - "parking_lot_core 0.9.3", -] - -[[package]] -name = "parking_lot_core" -version = "0.8.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d76e8e1493bcac0d2766c42737f34458f1c8c50c0d23bcb24ea953affb273216" -dependencies = [ - "cfg-if", - "instant", - "libc", - "redox_syscall", - "smallvec", - "winapi", + "parking_lot_core", ] [[package]] @@ -1342,7 +1287,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5d5285893bb5eb82e6aaf5d59ee909a06a16737a8970984dd7746ba9283498d6" dependencies = [ "phf_shared", - "rand 0.8.5", + "rand", ] [[package]] @@ -1370,18 +1315,18 @@ dependencies = [ [[package]] name = "pin-project" -version = "1.0.10" +version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "58ad3879ad3baf4e44784bc6a718a8698867bb991f8ce24d1bcbe2cfb4c3a75e" +checksum = "78203e83c48cffbe01e4a2d35d566ca4de445d79a85372fc64e378bfc812a260" dependencies = [ "pin-project-internal", ] [[package]] name = "pin-project-internal" -version = "1.0.10" +version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "744b6f092ba29c3650faf274db506afd39944f48420f6c86b17cfe0ee1cb36bb" +checksum = "710faf75e1b33345361201d36d04e98ac1ed8909151a017ed384700836104c74" dependencies = [ "proc-macro2", "quote", @@ -1469,19 +1414,6 @@ version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "941ba9d78d8e2f7ce474c015eea4d9c6d25b6a3327f9832ee29a4de27f91bbb8" -[[package]] -name = "rand" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03" -dependencies = [ - "getrandom 0.1.16", - "libc", - "rand_chacha 0.2.2", - "rand_core 0.5.1", - "rand_hc", -] - [[package]] name = "rand" version = "0.8.5" @@ -1489,18 +1421,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" dependencies = [ "libc", - "rand_chacha 0.3.1", - "rand_core 0.6.3", -] - -[[package]] -name = "rand_chacha" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402" -dependencies = [ - "ppv-lite86", - "rand_core 0.5.1", + "rand_chacha", + "rand_core", ] [[package]] @@ -1510,16 +1432,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" dependencies = [ "ppv-lite86", - "rand_core 0.6.3", -] - -[[package]] -name = "rand_core" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19" -dependencies = [ - "getrandom 0.1.16", + "rand_core", ] [[package]] @@ -1528,16 +1441,7 @@ version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d34f1408f55294453790c48b2f1ebbb1c5b4b7563eb1f418bcfcfdbb06ebb4e7" dependencies = [ - "getrandom 0.2.6", -] - -[[package]] -name = "rand_hc" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c" -dependencies = [ - "rand_core 0.5.1", + "getrandom", ] [[package]] @@ -1546,7 +1450,7 @@ version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6f97cdb2a36ed4183de61b2f824cc45c9f1037f28afe0a322e9fff4c108b5aaa" dependencies = [ - "rand_core 0.6.3", + "rand_core", ] [[package]] @@ -1719,9 +1623,9 @@ checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" [[package]] name = "serde" -version = "1.0.137" +version = "1.0.139" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61ea8d54c77f8315140a05f4c7237403bf38b72704d031543aa1d16abbf517d1" +checksum = "0171ebb889e45aa68b44aee0859b3eede84c6f5f5c228e6f140c0b2a0a46cad6" dependencies = [ "serde_derive", ] @@ -1736,9 +1640,9 @@ dependencies = [ [[package]] name = "serde_derive" -version = "1.0.137" +version = "1.0.139" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f26faba0c3959972377d3b2d306ee9f71faee9714294e41bb777f83f88578be" +checksum = "dc1d3230c1de7932af58ad8ffbe1d784bd55efd5a9d84ac24f69c72d83543dfb" dependencies = [ "proc-macro2", "quote", @@ -1747,9 +1651,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.81" +version = "1.0.82" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b7ce2b32a1aed03c558dc61a5cd328f15aff2dbc17daad8fb8af04d2100e15c" +checksum = "82c2c1fdcd807d1098552c5b9a36e425e42e9fbd7c6a37a8425f390f781f7fa7" dependencies = [ "indexmap", "itoa", @@ -1887,7 +1791,7 @@ checksum = "213494b7a2b503146286049378ce02b482200519accc31872ee8be91fa820a08" dependencies = [ "new_debug_unreachable", "once_cell", - "parking_lot 0.12.1", + "parking_lot", "phf_shared", "precomputed-hash", "serde", @@ -2357,9 +2261,9 @@ checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c" [[package]] name = "tokio" -version = "1.15.0" +version = "1.19.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fbbf1c778ec206785635ce8ad57fe52b3009ae9e0c9f574a728f3049d3e55838" +checksum = "c51a52ed6686dd62c320f9b89299e9dfb46f730c7a48e635c19f21d116cb1439" dependencies = [ "bytes", "libc", @@ -2367,9 +2271,10 @@ dependencies = [ "mio", "num_cpus", "once_cell", - "parking_lot 0.11.2", + "parking_lot", "pin-project-lite", "signal-hook-registry", + "socket2", "tokio-macros", "winapi", ] @@ -2613,18 +2518,18 @@ dependencies = [ "try-lock", ] -[[package]] -name = "wasi" -version = "0.9.0+wasi-snapshot-preview1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519" - [[package]] name = "wasi" version = "0.10.2+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6" +[[package]] +name = "wasi" +version = "0.11.0+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" + [[package]] name = "wasm-bindgen" version = "0.2.81" diff --git a/libs/helpers/Cargo.toml b/libs/helpers/Cargo.toml index 05f48984e..e7fe8841b 100644 --- a/libs/helpers/Cargo.toml +++ b/libs/helpers/Cargo.toml @@ -6,6 +6,6 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -pin-project = "1.0.8" -tokio = { version = "1.15.*", features = ["full"] } -models = {path = "../models"} \ No newline at end of file +pin-project = "1.0.11" +tokio = { version = "1.19.2", features = ["full"] } +models = { path = "../models" } diff --git a/libs/js_engine/Cargo.toml b/libs/js_engine/Cargo.toml index fbc5af6c7..86fb1aac8 100644 --- a/libs/js_engine/Cargo.toml +++ b/libs/js_engine/Cargo.toml @@ -6,11 +6,11 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -dashmap = "5.1.0" -deno_core = "=0.136.0" -deno_ast = {version="=0.15.0", features = ["transpiling"]} +dashmap = "5.3.4" +deno_core = "=0.136.0" +deno_ast = { version = "=0.15.0", features = ["transpiling"] } dprint-swc-ext = "=0.1.1" -reqwest = { version = "0.11.4" } +reqwest = { version = "0.11.11" } swc_atoms = "=0.2.11" swc_common = "=0.18.7" swc_config = "=0.1.1" @@ -33,9 +33,9 @@ swc_eq_ignore_macros = "=0.1.0" swc_macros_common = "=0.3.5" swc_visit = "=0.3.0" swc_visit_macros = "=0.3.1" -models = {path = "../models"} -helpers = {path = "../helpers"} -serde = { version = "1.0.*", features = ["derive", "rc"] } -serde_json = "1.0.*" -tokio = { version = "1.*.*", features = ["full"] } +models = { path = "../models" } +helpers = { path = "../helpers" } +serde = { version = "1.0", features = ["derive", "rc"] } +serde_json = "1.0" +tokio = { version = "1", features = ["full"] } tracing = "0.1" diff --git a/libs/models/Cargo.toml b/libs/models/Cargo.toml index c4c48d437..60d46db16 100644 --- a/libs/models/Cargo.toml +++ b/libs/models/Cargo.toml @@ -9,7 +9,7 @@ edition = "2021" patch-db = { version = "*", path = "../../patch-db/patch-db", features = [ "trace", ] } -serde = { version = "1.0.*", features = ["derive", "rc"] } -thiserror = "1.0.*" -emver = { version = "0.1.6", features = ["serde"] } -rand = "0.7.*" \ No newline at end of file +serde = { version = "1.0", features = ["derive", "rc"] } +thiserror = "1.0" +emver = { version = "0.1", features = ["serde"] } +rand = "0.8" diff --git a/libs/snapshot-creator/Cargo.toml b/libs/snapshot-creator/Cargo.toml index 1c9236385..7d508fa7b 100644 --- a/libs/snapshot-creator/Cargo.toml +++ b/libs/snapshot-creator/Cargo.toml @@ -6,6 +6,6 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -dashmap = "5.1.0" -deno_core = "0.136.0" -deno_ast = {version="0.15.0", features = ["transpiling"]} \ No newline at end of file +dashmap = "5.3.4" +deno_core = "=0.136.0" +deno_ast = { version = "=0.15.0", features = ["transpiling"] } diff --git a/rpc-toolkit b/rpc-toolkit deleted file mode 160000 index b4d19d71e..000000000 --- a/rpc-toolkit +++ /dev/null @@ -1 +0,0 @@ -Subproject commit b4d19d71e03990ef192587b4d4bf87fd801af601