From d3ebe8d8f54553900a434e554ecafa6292909d50 Mon Sep 17 00:00:00 2001 From: Tyera Eulberg Date: Wed, 2 Mar 2022 01:42:01 -0700 Subject: [PATCH] Remove unneeded jsonrpc dependencies/features; update do-audit (#23436) * Update generic-array note * Remove unneeded jsonrpc deps * Remove unneeded jsonrpc features * Rewrite slot-update test without websocket crate * Rewrite rpc-subscription test without websocket crate, and remove jsonrpc deps * Update expected balance to accommodate rent-exempt minimum transfer amount * Remove obsolete audit ignores --- Cargo.lock | 779 ++++++++---------------------------------- ci/do-audit.sh | 16 +- core/Cargo.toml | 4 - rpc-test/Cargo.toml | 3 +- rpc-test/tests/rpc.rs | 128 +++---- rpc/Cargo.toml | 2 +- validator/Cargo.toml | 2 +- 7 files changed, 224 insertions(+), 710 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index e4e634a8d..59b1b641e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -62,7 +62,7 @@ checksum = "fcb51a0695d8f838b1ee009b3fbf66bda078cd64590202a864a8f3e8c4315c47" dependencies = [ "getrandom 0.2.3", "once_cell", - "version_check 0.9.3", + "version_check", ] [[package]] @@ -188,12 +188,6 @@ dependencies = [ "winapi 0.3.9", ] -[[package]] -name = "autocfg" -version = "0.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d49d90015b3c36167a20fe2810c5cd875ad504b39cff3d4eae7977e6b7c1cb2" - [[package]] name = "autocfg" version = "1.0.1" @@ -220,25 +214,6 @@ version = "0.2.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a4521f3e3d031370679b3b140beb36dfe4801b09ac77e30c61941f97df3ef28b" -[[package]] -name = "base64" -version = "0.9.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "489d6c0ed21b11d038c31b6ceccca973e65d73ba3bd8ecb9a2babf5546164643" -dependencies = [ - "byteorder", - "safemem", -] - -[[package]] -name = "base64" -version = "0.10.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b25d992356d2eb0ed82172f5248873db5560c4721f564b13cb5193bda5e668e" -dependencies = [ - "byteorder", -] - [[package]] name = "base64" version = "0.12.3" @@ -525,16 +500,6 @@ version = "1.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610" -[[package]] -name = "bytes" -version = "0.4.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "206fdffcfa2df7cbe15601ef46c813fce0965eb3286db6b56c583b814b51c81c" -dependencies = [ - "byteorder", - "iovec", -] - [[package]] name = "bytes" version = "1.1.0" @@ -732,7 +697,7 @@ dependencies = [ "strsim 0.10.0", "termcolor", "textwrap 0.14.2", - "unicase 2.6.0", + "unicase", ] [[package]] @@ -748,15 +713,6 @@ dependencies = [ "syn 1.0.81", ] -[[package]] -name = "cloudabi" -version = "0.0.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ddfc5b9aa5d4507acaf872de71051dfd0e309860e88966e1051e462a077aac4f" -dependencies = [ - "bitflags", -] - [[package]] name = "combine" version = "3.8.1" @@ -801,7 +757,7 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "501a375961cef1a0d44767200e66e4a559283097e91d0730b1d75dfb2f8a1494" dependencies = [ - "log 0.4.14", + "log", "web-sys", ] @@ -915,7 +871,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e54ea8bc3fb1ee042f5aace6e3c6e025d3874866da222930f70ce62aceba0bfa" dependencies = [ "cfg-if 1.0.0", - "crossbeam-utils 0.8.5", + "crossbeam-utils", ] [[package]] @@ -926,7 +882,7 @@ checksum = "6455c0ca19f0d2fbf751b908d5c55c1f5cbc65e03c4225427254b46890bdde1e" dependencies = [ "cfg-if 1.0.0", "crossbeam-epoch", - "crossbeam-utils 0.8.5", + "crossbeam-utils", ] [[package]] @@ -936,23 +892,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4ec02e091aa634e2c3ada4a392989e7c3116673ef0ac5b72232439094d73b7fd" dependencies = [ "cfg-if 1.0.0", - "crossbeam-utils 0.8.5", + "crossbeam-utils", "lazy_static", "memoffset", "scopeguard", ] -[[package]] -name = "crossbeam-utils" -version = "0.7.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3c7c73a2d1e9fc0886a08b93e98eb643461230d5f1925e4036204d5f2e261a8" -dependencies = [ - "autocfg 1.0.1", - "cfg-if 0.1.10", - "lazy_static", -] - [[package]] name = "crossbeam-utils" version = "0.8.5" @@ -1327,7 +1272,7 @@ checksum = "a19187fea3ac7e84da7dacf48de0c45d63c6a76f9490dae389aead16c243fce3" dependencies = [ "atty", "humantime", - "log 0.4.14", + "log", "regex", "termcolor", ] @@ -1340,7 +1285,7 @@ checksum = "0b2cf0344971ee6c64c31be0d530793fba457d322dfec2810c453d0ef228f9c3" dependencies = [ "atty", "humantime", - "log 0.4.14", + "log", "regex", "termcolor", ] @@ -1441,7 +1386,7 @@ checksum = "975ccf83d8d9d0d84682850a38c8169027be83368805971cc4f238c2b245bc98" dependencies = [ "cfg-if 1.0.0", "libc", - "redox_syscall 0.2.10", + "redox_syscall", "winapi 0.3.9", ] @@ -1506,22 +1451,6 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a06f77d526c1a601b7c4cdd98f54b5eaabffc14d5f2f0296febdc7f357c6d3ba" -[[package]] -name = "fuchsia-zircon" -version = "0.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e9763c69ebaae630ba35f74888db465e49e259ba1bc0eda7d06f4a067615d82" -dependencies = [ - "bitflags", - "fuchsia-zircon-sys", -] - -[[package]] -name = "fuchsia-zircon-sys" -version = "0.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3dcaa9ae7725d12cdb85b3ad99a434db70b468c09ded17e012d86b5c1010f7a7" - [[package]] name = "funty" version = "1.1.0" @@ -1668,7 +1597,7 @@ checksum = "fd48d33ec7f05fbfa152300fdad764757cbded343c1aa1cff2fbaf4134851803" dependencies = [ "serde", "typenum", - "version_check 0.9.3", + "version_check", ] [[package]] @@ -1720,7 +1649,7 @@ dependencies = [ "aho-corasick", "bstr", "fnv", - "log 0.4.14", + "log", "regex", ] @@ -1732,7 +1661,7 @@ checksum = "38f3d68c8343245dc047982651b5afb8bd659c9959ed72efe5a73bf22684e5fd" dependencies = [ "arc-swap", "futures 0.3.19", - "log 0.4.14", + "log", "reqwest", "serde", "serde_derive", @@ -1749,7 +1678,7 @@ version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32401e89c6446dcd28185931a01b1093726d0356820ac744023e6850689bf926" dependencies = [ - "log 0.4.14", + "log", "plain", "scroll", ] @@ -1760,7 +1689,7 @@ version = "0.3.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d9f1f717ddc7b2ba36df7e871fd88db79326551d3d6f1fc406fbfd28b582ff8e" dependencies = [ - "bytes 1.1.0", + "bytes", "fnv", "futures-core", "futures-sink", @@ -1874,7 +1803,7 @@ version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1323096b05d41827dadeaee54c9981958c0f94e670bc94ed80037d1a7b8b186b" dependencies = [ - "bytes 1.1.0", + "bytes", "fnv", "itoa 0.4.8", ] @@ -1885,7 +1814,7 @@ version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1ff4f84919677303da5f147645dbea6b1881f368d03ac84e1dc09031ebd7b2c6" dependencies = [ - "bytes 1.1.0", + "bytes", "http", "pin-project-lite", ] @@ -1908,32 +1837,13 @@ version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" -[[package]] -name = "hyper" -version = "0.10.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0a0652d9a2609a968c14be1a9ea00bf4b1d64e2e1f53a1b51b6fff3a6e829273" -dependencies = [ - "base64 0.9.3", - "httparse", - "language-tags", - "log 0.3.9", - "mime 0.2.6", - "num_cpus", - "time 0.1.43", - "traitobject", - "typeable", - "unicase 1.4.2", - "url 1.7.2", -] - [[package]] name = "hyper" version = "0.14.14" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2b91bb1f221b6ea1f1e4371216b70f40748774c2fb5971b450c07773fb92d26b" dependencies = [ - "bytes 1.1.0", + "bytes", "futures-channel", "futures-core", "futures-util", @@ -1958,7 +1868,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d87c48c02e0dc5e3b849a2041db3029fd066650f8f717c07bf8ed78ccb895cac" dependencies = [ "http", - "hyper 0.14.14", + "hyper", "rustls 0.20.4", "tokio", "tokio-rustls 0.23.2", @@ -1970,7 +1880,7 @@ version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bbb958482e8c7be4bc3cf272a766a2b0bf1a6755e7a6ae777f017a31d11b13b1" dependencies = [ - "hyper 0.14.14", + "hyper", "pin-project-lite", "tokio", "tokio-io-timeout", @@ -1982,8 +1892,8 @@ version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d6183ddfa99b85da61a140bea0efc93fdf56ceaa041b37d553518030827f9905" dependencies = [ - "bytes 1.1.0", - "hyper 0.14.14", + "bytes", + "hyper", "native-tls", "tokio", "tokio-native-tls", @@ -2029,7 +1939,7 @@ version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "282a6247722caba404c065016bbfa522806e51714c34f5dfc3e4a3a46fcb4223" dependencies = [ - "autocfg 1.0.1", + "autocfg", "hashbrown", "rayon", ] @@ -2070,15 +1980,6 @@ version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec58677acfea8a15352d42fc87d11d63596ade9239e0a7c9352914417515dbe6" -[[package]] -name = "iovec" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2b3ea6ff95e175473f8ffe6a7eb7c00d054240321b84c57051175fe3c1e075e" -dependencies = [ - "libc", -] - [[package]] name = "ipnet" version = "2.3.1" @@ -2155,13 +2056,12 @@ dependencies = [ "jsonrpc-core", "jsonrpc-pubsub", "jsonrpc-server-utils", - "log 0.4.14", + "log", "parity-tokio-ipc", "serde", "serde_json", "tokio", "url 1.7.2", - "websocket", ] [[package]] @@ -2173,7 +2073,7 @@ dependencies = [ "futures 0.3.19", "futures-executor", "futures-util", - "log 0.4.14", + "log", "serde", "serde_derive", "serde_json", @@ -2208,13 +2108,13 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e1dea6e07251d9ce6a552abfb5d7ad6bc290a4596c8dcc3d795fae2bbdc1f3ff" dependencies = [ "futures 0.3.19", - "hyper 0.14.14", + "hyper", "jsonrpc-core", "jsonrpc-server-utils", - "log 0.4.14", + "log", "net2", "parking_lot 0.11.2", - "unicase 2.6.0", + "unicase", ] [[package]] @@ -2226,7 +2126,7 @@ dependencies = [ "futures 0.3.19", "jsonrpc-core", "jsonrpc-server-utils", - "log 0.4.14", + "log", "parity-tokio-ipc", "parking_lot 0.11.2", "tower-service", @@ -2241,7 +2141,7 @@ dependencies = [ "futures 0.3.19", "jsonrpc-core", "lazy_static", - "log 0.4.14", + "log", "parking_lot 0.11.2", "rand 0.7.3", "serde", @@ -2253,16 +2153,16 @@ version = "18.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fa4fdea130485b572c39a460d50888beb00afb3e35de23ccd7fad8ff19f0e0d4" dependencies = [ - "bytes 1.1.0", + "bytes", "futures 0.3.19", "globset", "jsonrpc-core", "lazy_static", - "log 0.4.14", + "log", "tokio", "tokio-stream", "tokio-util", - "unicase 2.6.0", + "unicase", ] [[package]] @@ -2281,12 +2181,6 @@ dependencies = [ "winapi-build", ] -[[package]] -name = "language-tags" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a91d884b6667cd606bb5a69aa0c99ba811a115fc68915e7056ec08a46e93199a" - [[package]] name = "lazy_static" version = "1.4.0" @@ -2425,15 +2319,6 @@ version = "0.0.42" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5284f00d480e1c39af34e72f8ad60b94f47007e3481cd3b731c1d67190ddc7b7" -[[package]] -name = "lock_api" -version = "0.3.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4da24a77a3d8a6d4862d95f72e6fdb9c09a643ecdb402d754004a557f2bec75" -dependencies = [ - "scopeguard", -] - [[package]] name = "lock_api" version = "0.4.6" @@ -2443,15 +2328,6 @@ dependencies = [ "scopeguard", ] -[[package]] -name = "log" -version = "0.3.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e19e8d5c34a3e0e2223db8e060f9e8264aeeb5c5fc64a4ee9965c062211c024b" -dependencies = [ - "log 0.4.14", -] - [[package]] name = "log" version = "0.4.14" @@ -2482,12 +2358,6 @@ version = "0.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a3e378b66a060d48947b590737b30a1be76706c8dd7b8ba0f2fe3989c68a853f" -[[package]] -name = "maybe-uninit" -version = "2.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "60302e4db3a61da70c0cb7991976248362f30319e88850c487b9b95bbf059e00" - [[package]] name = "memchr" version = "2.4.1" @@ -2518,7 +2388,7 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "59accc507f1338036a0477ef61afdae33cde60840f4dfe481319ce3ad116ddf9" dependencies = [ - "autocfg 1.0.1", + "autocfg", ] [[package]] @@ -2533,15 +2403,6 @@ dependencies = [ "zeroize", ] -[[package]] -name = "mime" -version = "0.2.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba626b8a6de5da682e1caa06bdb42a335aee5a84db8e5046a3e8ab17ba0a3ae0" -dependencies = [ - "log 0.3.9", -] - [[package]] name = "mime" version = "0.3.16" @@ -2561,26 +2422,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a92518e98c078586bc6c934028adcca4c92a53d6a958196de835170a01d84e4b" dependencies = [ "adler", - "autocfg 1.0.1", -] - -[[package]] -name = "mio" -version = "0.6.23" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4afd66f5b91bf2a3bc13fad0e21caedac168ca4c707504e75585648ae80e4cc4" -dependencies = [ - "cfg-if 0.1.10", - "fuchsia-zircon", - "fuchsia-zircon-sys", - "iovec", - "kernel32-sys", - "libc", - "log 0.4.14", - "miow 0.2.2", - "net2", - "slab", - "winapi 0.2.8", + "autocfg", ] [[package]] @@ -2590,8 +2432,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8067b404fe97c70829f082dec8bcf4f71225d7eaea1d8645349cb76fa06205cc" dependencies = [ "libc", - "log 0.4.14", - "miow 0.3.7", + "log", + "miow", "ntapi", "winapi 0.3.9", ] @@ -2603,24 +2445,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ba272f85fa0b41fc91872be579b3bbe0f56b792aa361a380eb669469f68dafb2" dependencies = [ "libc", - "log 0.4.14", - "miow 0.3.7", + "log", + "miow", "ntapi", "winapi 0.3.9", ] -[[package]] -name = "miow" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ebd808424166322d4a38da87083bfddd3ac4c131334ed55856112eb06d46944d" -dependencies = [ - "kernel32-sys", - "net2", - "winapi 0.2.8", - "ws2_32-sys", -] - [[package]] name = "miow" version = "0.3.7" @@ -2665,7 +2495,7 @@ checksum = "48ba9f7719b5a0f42f338907614285fb5fd70e53858141f69898a1fb7203b24d" dependencies = [ "lazy_static", "libc", - "log 0.4.14", + "log", "openssl", "openssl-probe", "openssl-sys", @@ -2708,7 +2538,7 @@ dependencies = [ "bitvec", "funty", "memchr", - "version_check 0.9.3", + "version_check", ] [[package]] @@ -2719,7 +2549,7 @@ checksum = "7ffd9d26838a953b4af82cbeb9f1592c6798916983959be223a7124e992742c1" dependencies = [ "memchr", "minimal-lexical", - "version_check 0.9.3", + "version_check", ] [[package]] @@ -2737,7 +2567,7 @@ version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "74e768dff5fb39a41b3bcd30bb25cf989706c90d028d1ad71971987aa309d535" dependencies = [ - "autocfg 1.0.1", + "autocfg", "num-integer", "num-traits", ] @@ -2759,7 +2589,7 @@ version = "0.1.44" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d2cc698a63b549a70bc047073d2949cce27cd1c7b0a4a862d08a8031bc2801db" dependencies = [ - "autocfg 1.0.1", + "autocfg", "num-traits", ] @@ -2769,7 +2599,7 @@ version = "0.2.14" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9a64b1ec5cda2586e284722486d802acf1f7dbdc623e2bfc57e65ca1cd099290" dependencies = [ - "autocfg 1.0.1", + "autocfg", ] [[package]] @@ -2872,7 +2702,7 @@ version = "0.9.70" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c6517987b3f8226b5da3661dad65ff7f300cc59fb5ea8333ca191fc65fde3edf" dependencies = [ - "autocfg 1.0.1", + "autocfg", "cc", "libc", "openssl-src", @@ -2938,23 +2768,12 @@ checksum = "9981e32fb75e004cc148f5fb70342f393830e0a4aa62e3cc93b50976218d42b6" dependencies = [ "futures 0.3.19", "libc", - "log 0.4.14", + "log", "rand 0.7.3", "tokio", "winapi 0.3.9", ] -[[package]] -name = "parking_lot" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f842b1982eb6c2fe34036a4fbfb06dd185a3f5c8edfaacdf7d1ea10b07de6252" -dependencies = [ - "lock_api 0.3.4", - "parking_lot_core 0.6.2", - "rustc_version 0.2.3", -] - [[package]] name = "parking_lot" version = "0.11.2" @@ -2962,7 +2781,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7d17b78036a60663b797adeaee46f5c9dfebb86948d1255007a1d6be0271ff99" dependencies = [ "instant", - "lock_api 0.4.6", + "lock_api", "parking_lot_core 0.8.5", ] @@ -2972,25 +2791,10 @@ version = "0.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "87f5ec2493a61ac0506c0f4199f99070cbe83857b0337006a30f3e6719b8ef58" dependencies = [ - "lock_api 0.4.6", + "lock_api", "parking_lot_core 0.9.1", ] -[[package]] -name = "parking_lot_core" -version = "0.6.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b876b1b9e7ac6e1a74a6da34d25c42e17e8862aa409cbbbdcfc8d86c6f3bc62b" -dependencies = [ - "cfg-if 0.1.10", - "cloudabi", - "libc", - "redox_syscall 0.1.57", - "rustc_version 0.2.3", - "smallvec 0.6.14", - "winapi 0.3.9", -] - [[package]] name = "parking_lot_core" version = "0.8.5" @@ -3000,8 +2804,8 @@ dependencies = [ "cfg-if 1.0.0", "instant", "libc", - "redox_syscall 0.2.10", - "smallvec 1.7.0", + "redox_syscall", + "smallvec", "winapi 0.3.9", ] @@ -3013,8 +2817,8 @@ checksum = "28141e0cc4143da2443301914478dc976a61ffdb3f043058310c70df2fed8954" dependencies = [ "cfg-if 1.0.0", "libc", - "redox_syscall 0.2.10", - "smallvec 1.7.0", + "redox_syscall", + "smallvec", "windows-sys 0.32.0", ] @@ -3264,7 +3068,7 @@ dependencies = [ "proc-macro2 1.0.32", "quote 1.0.10", "syn 1.0.81", - "version_check 0.9.3", + "version_check", ] [[package]] @@ -3275,7 +3079,7 @@ checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869" dependencies = [ "proc-macro2 1.0.32", "quote 1.0.10", - "version_check 0.9.3", + "version_check", ] [[package]] @@ -3316,7 +3120,7 @@ dependencies = [ "quick-error 2.0.1", "rand 0.8.4", "rand_chacha 0.3.1", - "rand_xorshift 0.3.0", + "rand_xorshift", "regex-syntax", "rusty-fork", "tempfile", @@ -3328,7 +3132,7 @@ version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "444879275cb4fd84958b1a1d5420d15e6fcf7c235fe47f053c9c2a80aceb6001" dependencies = [ - "bytes 1.1.0", + "bytes", "prost-derive", ] @@ -3338,11 +3142,11 @@ version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "62941722fb675d463659e49c4f3fe1fe792ff24fe5bbaa9c08cd3b98a1c354f5" dependencies = [ - "bytes 1.1.0", + "bytes", "heck", "itertools 0.10.3", "lazy_static", - "log 0.4.14", + "log", "multimap", "petgraph", "prost", @@ -3371,7 +3175,7 @@ version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "534b7a0e836e3c482d2693070f982e39e7611da9695d4d1f5a4b186b51faef0a" dependencies = [ - "bytes 1.1.0", + "bytes", "prost", ] @@ -3402,7 +3206,7 @@ version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "584865613896a1f644d757e52c45c573441c8b04cac38ac13990b0235203db66" dependencies = [ - "bytes 1.1.0", + "bytes", "futures-channel", "futures-util", "fxhash", @@ -3421,7 +3225,7 @@ version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "063dedf7983c8d57db474218f258daa85b627de6f2dbc458b690a93b1de790e8" dependencies = [ - "bytes 1.1.0", + "bytes", "fxhash", "rand 0.8.4", "ring", @@ -3487,25 +3291,6 @@ dependencies = [ "winapi 0.3.9", ] -[[package]] -name = "rand" -version = "0.6.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d71dacdc3c88c1fde3885a3be3fbab9f35724e6ce99467f7d9c5026132184ca" -dependencies = [ - "autocfg 0.1.7", - "libc", - "rand_chacha 0.1.1", - "rand_core 0.4.2", - "rand_hc 0.1.0", - "rand_isaac", - "rand_jitter", - "rand_os", - "rand_pcg 0.1.2", - "rand_xorshift 0.1.1", - "winapi 0.3.9", -] - [[package]] name = "rand" version = "0.7.3" @@ -3517,7 +3302,7 @@ dependencies = [ "rand_chacha 0.2.2", "rand_core 0.5.1", "rand_hc 0.2.0", - "rand_pcg 0.2.1", + "rand_pcg", ] [[package]] @@ -3532,16 +3317,6 @@ dependencies = [ "rand_hc 0.3.1", ] -[[package]] -name = "rand_chacha" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "556d3a1ca6600bfcbab7c7c91ccb085ac7fbbcd70e008a98742e7847f4f7bcef" -dependencies = [ - "autocfg 0.1.7", - "rand_core 0.3.1", -] - [[package]] name = "rand_chacha" version = "0.2.2" @@ -3595,15 +3370,6 @@ dependencies = [ "getrandom 0.2.3", ] -[[package]] -name = "rand_hc" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b40677c7be09ae76218dc623efbf7b18e34bced3f38883af07bb75630a21bc4" -dependencies = [ - "rand_core 0.3.1", -] - [[package]] name = "rand_hc" version = "0.2.0" @@ -3622,50 +3388,6 @@ dependencies = [ "rand_core 0.6.3", ] -[[package]] -name = "rand_isaac" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ded997c9d5f13925be2a6fd7e66bf1872597f759fd9dd93513dd7e92e5a5ee08" -dependencies = [ - "rand_core 0.3.1", -] - -[[package]] -name = "rand_jitter" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1166d5c91dc97b88d1decc3285bb0a99ed84b05cfd0bc2341bdf2d43fc41e39b" -dependencies = [ - "libc", - "rand_core 0.4.2", - "winapi 0.3.9", -] - -[[package]] -name = "rand_os" -version = "0.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b75f676a1e053fc562eafbb47838d67c84801e38fc1ba459e8f180deabd5071" -dependencies = [ - "cloudabi", - "fuchsia-cprng", - "libc", - "rand_core 0.4.2", - "rdrand", - "winapi 0.3.9", -] - -[[package]] -name = "rand_pcg" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "abf9b09b01790cfe0364f52bf32995ea3c39f4d2dd011eac241d2914146d0b44" -dependencies = [ - "autocfg 0.1.7", - "rand_core 0.4.2", -] - [[package]] name = "rand_pcg" version = "0.2.1" @@ -3675,15 +3397,6 @@ dependencies = [ "rand_core 0.5.1", ] -[[package]] -name = "rand_xorshift" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cbf7e9e623549b0e21f6e97cf8ecf247c1a8fd2e8a992ae265314300b2455d5c" -dependencies = [ - "rand_core 0.3.1", -] - [[package]] name = "rand_xorshift" version = "0.3.0" @@ -3705,7 +3418,7 @@ version = "1.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c06aca804d41dbc8ba42dfd964f0d01334eceb64314b9ecf7c5fad5188a06d90" dependencies = [ - "autocfg 1.0.1", + "autocfg", "crossbeam-deque", "either", "rayon-core", @@ -3719,7 +3432,7 @@ checksum = "d78120e2c850279833f1dd3582f730c4ab53ed95aeaaaa862a2a5c71b1656d8e" dependencies = [ "crossbeam-channel", "crossbeam-deque", - "crossbeam-utils 0.8.5", + "crossbeam-utils", "lazy_static", "num_cpus", ] @@ -3759,12 +3472,6 @@ dependencies = [ "rand_core 0.3.1", ] -[[package]] -name = "redox_syscall" -version = "0.1.57" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41cc0f7e4d5d4544e8861606a285bb08d3e70712ccc7d2b84d7c0ccfaf4b05ce" - [[package]] name = "redox_syscall" version = "0.2.10" @@ -3781,7 +3488,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "528532f3d801c87aec9def2add9ca802fe569e44a544afe633765267840abe64" dependencies = [ "getrandom 0.2.3", - "redox_syscall 0.2.10", + "redox_syscall", ] [[package]] @@ -3794,7 +3501,7 @@ dependencies = [ "libc", "libm", "parking_lot 0.11.2", - "smallvec 1.7.0", + "smallvec", "spin 0.9.2", ] @@ -3837,21 +3544,21 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "87f242f1488a539a79bac6dbe7c8609ae43b7914b7736210f239a37cccb32525" dependencies = [ "base64 0.13.0", - "bytes 1.1.0", + "bytes", "encoding_rs", "futures-core", "futures-util", "h2", "http", "http-body", - "hyper 0.14.14", + "hyper", "hyper-rustls", "hyper-tls", "ipnet", "js-sys", "lazy_static", - "log 0.4.14", - "mime 0.3.16", + "log", + "mime", "native-tls", "percent-encoding 2.1.0", "pin-project-lite", @@ -3972,7 +3679,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "35edb675feee39aec9c99fa5ff985081995a06d594114ae14cbe797ad7b7a6d7" dependencies = [ "base64 0.13.0", - "log 0.4.14", + "log", "ring", "sct 0.6.1", "webpki 0.21.4", @@ -3984,7 +3691,7 @@ version = "0.20.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4fbfeb8d0ddb84706bc597a5574ab8912817c52a397f819e5b614e2265206921" dependencies = [ - "log 0.4.14", + "log", "ring", "sct 0.7.0", "webpki 0.22.0", @@ -4035,12 +3742,6 @@ version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "71d301d4193d031abdd79ff7e3dd721168a9572ef3fe51a1517aba235bd8f86e" -[[package]] -name = "safemem" -version = "0.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef703b7cb59335eae2eb93ceb664c0eb7ea6bf567079d843e09420219668e072" - [[package]] name = "same-file" version = "1.0.6" @@ -4409,15 +4110,6 @@ version = "0.4.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9def91fd1e018fe007022791f865d0ccc9b3a0d5001e01aabb8b40e46000afb5" -[[package]] -name = "smallvec" -version = "0.6.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b97fcaeba89edba30f044a10c6a3cc39df9c3f17d7cd829dd1446cab35f890e0" -dependencies = [ - "maybe-uninit", -] - [[package]] name = "smallvec" version = "1.7.0" @@ -4431,7 +4123,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4370044f8b20f944e05c35d77edd3518e6f21fc4de77e593919f287c6a3f428a" dependencies = [ "base64 0.13.0", - "log 0.4.14", + "log", "openssl", "serde", "serde_derive", @@ -4457,10 +4149,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "41d1c5305e39e09653383c2c7244f2f78b3bcae37cf50c64cb4789c9f5096ec2" dependencies = [ "base64 0.13.0", - "bytes 1.1.0", + "bytes", "futures 0.3.19", "httparse", - "log 0.4.14", + "log", "rand 0.8.4", "sha-1 0.9.8", ] @@ -4491,7 +4183,7 @@ name = "solana-accounts-bench" version = "1.10.0" dependencies = [ "clap 2.33.3", - "log 0.4.14", + "log", "rayon", "solana-logger 1.10.0", "solana-measure", @@ -4505,7 +4197,7 @@ name = "solana-accounts-cluster-bench" version = "1.10.0" dependencies = [ "clap 2.33.3", - "log 0.4.14", + "log", "rand 0.7.3", "rayon", "solana-account-decoder", @@ -4531,7 +4223,7 @@ dependencies = [ name = "solana-accountsdb-plugin-interface" version = "1.10.0" dependencies = [ - "log 0.4.14", + "log", "solana-sdk", "solana-transaction-status", "thiserror", @@ -4545,7 +4237,7 @@ dependencies = [ "crossbeam-channel", "json5", "libloading", - "log 0.4.14", + "log", "serde_json", "solana-accountsdb-plugin-interface", "solana-measure", @@ -4563,7 +4255,7 @@ version = "1.10.0" dependencies = [ "bincode", "bytemuck", - "log 0.4.14", + "log", "num-derive", "num-traits", "rustc_version 0.4.0", @@ -4592,7 +4284,7 @@ version = "1.10.0" dependencies = [ "clap 2.33.3", "crossbeam-channel", - "log 0.4.14", + "log", "rand 0.7.3", "rayon", "solana-core", @@ -4668,7 +4360,7 @@ version = "1.10.0" dependencies = [ "clap 2.33.3", "crossbeam-channel", - "log 0.4.14", + "log", "rayon", "serde_json", "serde_yaml", @@ -4695,7 +4387,7 @@ version = "1.10.0" dependencies = [ "bv", "fnv", - "log 0.4.14", + "log", "rand 0.7.3", "rayon", "rustc_version 0.4.0", @@ -4713,7 +4405,7 @@ dependencies = [ "bincode", "byteorder", "libsecp256k1 0.6.0", - "log 0.4.14", + "log", "rand 0.7.3", "solana-measure", "solana-metrics", @@ -4730,7 +4422,7 @@ name = "solana-bucket-map" version = "1.10.0" dependencies = [ "fs_extra", - "log 0.4.14", + "log", "memmap2 0.5.2", "modular-bitfield", "rand 0.7.3", @@ -4793,7 +4485,7 @@ dependencies = [ "crossbeam-channel", "ctrlc", "humantime", - "log 0.4.14", + "log", "num-traits", "pretty-hex", "reqwest", @@ -4875,7 +4567,7 @@ dependencies = [ "indicatif", "jsonrpc-core", "jsonrpc-http-server", - "log 0.4.14", + "log", "rayon", "reqwest", "semver 1.0.6", @@ -4962,11 +4654,7 @@ dependencies = [ "fs_extra", "histogram", "itertools 0.10.3", - "jsonrpc-core", - "jsonrpc-core-client", - "jsonrpc-derive", - "jsonrpc-pubsub", - "log 0.4.14", + "log", "lru", "matches", "rand 0.7.3", @@ -5023,7 +4711,7 @@ version = "1.10.0" dependencies = [ "bincode", "clap 2.33.3", - "log 0.4.14", + "log", "rand 0.7.3", "solana-client", "solana-core", @@ -5043,7 +4731,7 @@ version = "1.10.0" dependencies = [ "console", "indicatif", - "log 0.4.14", + "log", "reqwest", "solana-runtime", "solana-sdk", @@ -5068,7 +4756,7 @@ dependencies = [ "crossbeam-channel", "dlopen", "dlopen_derive", - "log 0.4.14", + "log", "matches", "rand 0.7.3", "rayon", @@ -5090,7 +4778,7 @@ dependencies = [ "byteorder", "clap 2.33.3", "crossbeam-channel", - "log 0.4.14", + "log", "serde", "serde_derive", "solana-clap-utils", @@ -5113,7 +4801,7 @@ dependencies = [ "bs58 0.3.1", "bv", "generic-array 0.14.5", - "log 0.4.14", + "log", "memmap2 0.1.0", "rustc_version 0.2.3", "serde", @@ -5131,7 +4819,7 @@ dependencies = [ "bs58 0.4.0", "bv", "generic-array 0.14.5", - "log 0.4.14", + "log", "memmap2 0.5.2", "rustc_version 0.4.0", "serde", @@ -5206,7 +4894,7 @@ dependencies = [ "flate2", "indexmap", "itertools 0.10.3", - "log 0.4.14", + "log", "lru", "matches", "num-traits", @@ -5304,7 +4992,7 @@ dependencies = [ "itertools 0.10.3", "lazy_static", "libc", - "log 0.4.14", + "log", "matches", "num-derive", "num-traits", @@ -5356,7 +5044,7 @@ dependencies = [ "dashmap", "histogram", "itertools 0.10.3", - "log 0.4.14", + "log", "regex", "serde", "serde_json", @@ -5388,7 +5076,7 @@ dependencies = [ "fs_extra", "gag", "itertools 0.10.3", - "log 0.4.14", + "log", "rand 0.7.3", "rayon", "serial_test", @@ -5428,7 +5116,7 @@ checksum = "356fc4bc5395d26e7d0f3c7e6272b1a28dc591a81f1ee6e577c1d8859e946422" dependencies = [ "env_logger 0.8.4", "lazy_static", - "log 0.4.14", + "log", ] [[package]] @@ -5437,14 +5125,14 @@ version = "1.10.0" dependencies = [ "env_logger 0.9.0", "lazy_static", - "log 0.4.14", + "log", ] [[package]] name = "solana-measure" version = "1.10.0" dependencies = [ - "log 0.4.14", + "log", "solana-sdk", ] @@ -5453,7 +5141,7 @@ name = "solana-merkle-root-bench" version = "1.10.0" dependencies = [ "clap 2.33.3", - "log 0.4.14", + "log", "solana-logger 1.10.0", "solana-measure", "solana-runtime", @@ -5479,7 +5167,7 @@ dependencies = [ "env_logger 0.9.0", "gethostname", "lazy_static", - "log 0.4.14", + "log", "rand 0.7.3", "reqwest", "serial_test", @@ -5504,7 +5192,7 @@ dependencies = [ "bincode", "clap 2.33.3", "crossbeam-channel", - "log 0.4.14", + "log", "nix", "rand 0.7.3", "serde", @@ -5521,7 +5209,7 @@ dependencies = [ name = "solana-notifier" version = "1.10.0" dependencies = [ - "log 0.4.14", + "log", "reqwest", "serde_json", ] @@ -5540,7 +5228,7 @@ dependencies = [ "fnv", "lazy_static", "libc", - "log 0.4.14", + "log", "matches", "nix", "rand 0.7.3", @@ -5561,7 +5249,7 @@ dependencies = [ "bincode", "core_affinity", "crossbeam-channel", - "log 0.4.14", + "log", "matches", "rand 0.7.3", "solana-entry", @@ -5581,7 +5269,7 @@ name = "solana-poh-bench" version = "1.10.0" dependencies = [ "clap 2.33.3", - "log 0.4.14", + "log", "rand 0.7.3", "rayon", "solana-entry", @@ -5611,7 +5299,7 @@ dependencies = [ "itertools 0.9.0", "lazy_static", "libsecp256k1 0.5.0", - "log 0.4.14", + "log", "num-derive", "num-traits", "rand 0.7.3", @@ -5652,7 +5340,7 @@ dependencies = [ "js-sys", "lazy_static", "libsecp256k1 0.6.0", - "log 0.4.14", + "log", "num-derive", "num-traits", "parking_lot 0.12.0", @@ -5684,7 +5372,7 @@ dependencies = [ "itertools 0.10.3", "libc", "libloading", - "log 0.4.14", + "log", "num-derive", "num-traits", "rustc_version 0.4.0", @@ -5705,7 +5393,7 @@ dependencies = [ "base64 0.12.3", "bincode", "chrono-humanize", - "log 0.4.14", + "log", "serde", "solana-banks-client", "solana-banks-server", @@ -5734,7 +5422,7 @@ dependencies = [ "console", "dialoguer", "hidapi", - "log 0.4.14", + "log", "num-derive", "num-traits", "parking_lot 0.12.0", @@ -5751,7 +5439,7 @@ version = "1.10.0" dependencies = [ "crossbeam-channel", "futures-util", - "log 0.4.14", + "log", "prost", "solana-rpc", "solana-runtime", @@ -5767,7 +5455,7 @@ version = "1.10.0" dependencies = [ "clap 2.33.3", "crossbeam-channel", - "log 0.4.14", + "log", "rand 0.7.3", "serial_test", "solana-clap-utils", @@ -5807,7 +5495,7 @@ dependencies = [ "jsonrpc-http-server", "jsonrpc-pubsub", "libc", - "log 0.4.14", + "log", "rayon", "regex", "serde", @@ -5851,9 +5539,8 @@ dependencies = [ "bincode", "bs58 0.4.0", "crossbeam-channel", - "jsonrpc-core", - "jsonrpc-core-client", - "log 0.4.14", + "futures-util", + "log", "reqwest", "serde", "serde_json", @@ -5891,7 +5578,7 @@ dependencies = [ "itertools 0.10.3", "lazy_static", "libsecp256k1 0.6.0", - "log 0.4.14", + "log", "memmap2 0.5.2", "num-derive", "num-traits", @@ -5953,7 +5640,7 @@ dependencies = [ "js-sys", "lazy_static", "libsecp256k1 0.6.0", - "log 0.4.14", + "log", "memmap2 0.5.2", "num-derive", "num-traits", @@ -6009,7 +5696,7 @@ name = "solana-send-transaction-service" version = "1.10.0" dependencies = [ "crossbeam-channel", - "log 0.4.14", + "log", "solana-logger 1.10.0", "solana-metrics", "solana-runtime", @@ -6035,7 +5722,7 @@ name = "solana-stake-program" version = "1.10.0" dependencies = [ "bincode", - "log 0.4.14", + "log", "num-derive", "num-traits", "proptest", @@ -6063,7 +5750,7 @@ dependencies = [ "enum-iterator", "flate2", "goauth", - "log 0.4.14", + "log", "openssl", "prost", "prost-types", @@ -6099,7 +5786,7 @@ name = "solana-store-tool" version = "1.10.0" dependencies = [ "clap 2.33.3", - "log 0.4.14", + "log", "solana-logger 1.10.0", "solana-runtime", "solana-version", @@ -6114,7 +5801,7 @@ dependencies = [ "histogram", "itertools 0.10.3", "libc", - "log 0.4.14", + "log", "nix", "pem", "pkcs8", @@ -6136,7 +5823,7 @@ version = "1.10.0" dependencies = [ "clap 2.33.3", "libc", - "log 0.4.14", + "log", "nix", "solana-logger 1.10.0", "solana-version", @@ -6150,7 +5837,7 @@ name = "solana-test-validator" version = "1.10.0" dependencies = [ "base64 0.12.3", - "log 0.4.14", + "log", "serde_derive", "serde_json", "solana-cli-output", @@ -6205,7 +5892,7 @@ version = "1.10.0" dependencies = [ "bincode", "clap 2.33.3", - "log 0.4.14", + "log", "rand 0.7.3", "rayon", "solana-clap-utils", @@ -6234,7 +5921,7 @@ dependencies = [ "bincode", "bs58 0.4.0", "lazy_static", - "log 0.4.14", + "log", "serde", "serde_derive", "serde_json", @@ -6275,7 +5962,7 @@ dependencies = [ "jsonrpc-ipc-server", "jsonrpc-server-utils", "libc", - "log 0.4.14", + "log", "num_cpus", "rand 0.7.3", "serde", @@ -6313,7 +6000,7 @@ dependencies = [ name = "solana-version" version = "1.10.0" dependencies = [ - "log 0.4.14", + "log", "rustc_version 0.4.0", "serde", "serde_derive", @@ -6327,7 +6014,7 @@ name = "solana-vote-program" version = "1.10.0" dependencies = [ "bincode", - "log 0.4.14", + "log", "num-derive", "num-traits", "rustc_version 0.4.0", @@ -6348,7 +6035,7 @@ version = "1.10.0" dependencies = [ "clap 2.33.3", "humantime", - "log 0.4.14", + "log", "solana-clap-utils", "solana-cli-config", "solana-cli-output", @@ -6412,7 +6099,7 @@ dependencies = [ "goblin", "hash32", "libc", - "log 0.4.14", + "log", "rand 0.7.3", "rustc-demangle", "scroll", @@ -6487,7 +6174,7 @@ version = "0.2.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e113fb6f3de07a243d434a56ec6f186dfd51cb08448239fe7bcae73f87ff28ff" dependencies = [ - "version_check 0.9.3", + "version_check", ] [[package]] @@ -6712,7 +6399,7 @@ dependencies = [ "cfg-if 1.0.0", "fastrand", "libc", - "redox_syscall 0.2.10", + "redox_syscall", "remove_dir_all", "winapi 0.3.9", ] @@ -6837,7 +6524,7 @@ dependencies = [ "standback", "stdweb", "time-macros", - "version_check 0.9.3", + "version_check", "winapi 0.3.9", ] @@ -6914,7 +6601,7 @@ version = "1.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2af73ac49756f3f7c01172e34a23e5d0216f6c32333757c2c61feb2bbff5a5ee" dependencies = [ - "bytes 1.1.0", + "bytes", "libc", "memchr", "mio 0.8.0", @@ -6928,38 +6615,6 @@ dependencies = [ "winapi 0.3.9", ] -[[package]] -name = "tokio-codec" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25b2998660ba0e70d18684de5d06b70b70a3a747469af9dea7618cc59e75976b" -dependencies = [ - "bytes 0.4.12", - "futures 0.1.31", - "tokio-io", -] - -[[package]] -name = "tokio-executor" -version = "0.1.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb2d1b8f4548dbf5e1f7818512e9c406860678f29c300cdf0ebac72d1a3a1671" -dependencies = [ - "crossbeam-utils 0.7.2", - "futures 0.1.31", -] - -[[package]] -name = "tokio-io" -version = "0.1.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57fc868aae093479e3131e3d165c93b1c7474109d13c90ec0dda2a1bbfff0674" -dependencies = [ - "bytes 0.4.12", - "futures 0.1.31", - "log 0.4.14", -] - [[package]] name = "tokio-io-timeout" version = "1.1.1" @@ -6991,25 +6646,6 @@ dependencies = [ "tokio", ] -[[package]] -name = "tokio-reactor" -version = "0.1.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09bc590ec4ba8ba87652da2068d150dcada2cfa2e07faae270a5e0409aa51351" -dependencies = [ - "crossbeam-utils 0.7.2", - "futures 0.1.31", - "lazy_static", - "log 0.4.14", - "mio 0.6.23", - "num_cpus", - "parking_lot 0.9.0", - "slab", - "tokio-executor", - "tokio-io", - "tokio-sync", -] - [[package]] name = "tokio-rustls" version = "0.22.0" @@ -7039,7 +6675,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "911a61637386b789af998ee23f50aa30d5fd7edcec8d6d3dedae5e5815205466" dependencies = [ "bincode", - "bytes 1.1.0", + "bytes", "educe", "futures-core", "futures-sink", @@ -7059,41 +6695,6 @@ dependencies = [ "tokio", ] -[[package]] -name = "tokio-sync" -version = "0.1.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "edfe50152bc8164fcc456dab7891fa9bf8beaf01c5ee7e1dd43a397c3cf87dee" -dependencies = [ - "fnv", - "futures 0.1.31", -] - -[[package]] -name = "tokio-tcp" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "98df18ed66e3b72e742f185882a9e201892407957e45fbff8da17ae7a7c51f72" -dependencies = [ - "bytes 0.4.12", - "futures 0.1.31", - "iovec", - "mio 0.6.23", - "tokio-io", - "tokio-reactor", -] - -[[package]] -name = "tokio-tls" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "354b8cd83825b3c20217a9dc174d6a0c67441a2fae5c41bcb1ea6679f6ae0f7c" -dependencies = [ - "futures 0.1.31", - "native-tls", - "tokio-io", -] - [[package]] name = "tokio-tungstenite" version = "0.17.1" @@ -7101,7 +6702,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "06cda1232a49558c46f8a504d5b93101d42c0bf7f911f12a105ba48168f821ae" dependencies = [ "futures-util", - "log 0.4.14", + "log", "rustls 0.20.4", "tokio", "tokio-rustls 0.23.2", @@ -7116,11 +6717,11 @@ version = "0.6.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9e99e1983e5d376cd8eb4b66604d2e99e79f5bd988c3055891dcd8c9e2604cc0" dependencies = [ - "bytes 1.1.0", + "bytes", "futures-core", "futures-io", "futures-sink", - "log 0.4.14", + "log", "pin-project-lite", "slab", "tokio", @@ -7144,13 +6745,13 @@ dependencies = [ "async-stream", "async-trait", "base64 0.13.0", - "bytes 1.1.0", + "bytes", "futures-core", "futures-util", "h2", "http", "http-body", - "hyper 0.14.14", + "hyper", "hyper-timeout", "percent-encoding 2.1.0", "pin-project", @@ -7219,7 +6820,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "375a639232caf30edfc78e8d89b2d4c375515393e7af7e16f01cd96917fb2105" dependencies = [ "cfg-if 1.0.0", - "log 0.4.14", + "log", "pin-project-lite", "tracing-attributes", "tracing-core", @@ -7278,12 +6879,6 @@ dependencies = [ "tracing-core", ] -[[package]] -name = "traitobject" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "efd1f82c56340fdf16f2a953d7bda4f8fdffba13d93b00844c25572110b26079" - [[package]] name = "trees" version = "0.4.2" @@ -7304,10 +6899,10 @@ checksum = "d96a2dea40e7570482f28eb57afbe42d97551905da6a9400acc5c328d24004f5" dependencies = [ "base64 0.13.0", "byteorder", - "bytes 1.1.0", + "bytes", "http", "httparse", - "log 0.4.14", + "log", "rand 0.8.4", "rustls 0.20.4", "sha-1 0.10.0", @@ -7318,12 +6913,6 @@ dependencies = [ "webpki-roots", ] -[[package]] -name = "typeable" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1410f6f91f21d1612654e7cc69193b0334f909dcf2c790c4826254fbb86f8887" - [[package]] name = "typenum" version = "1.14.0" @@ -7336,22 +6925,13 @@ version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "56dee185309b50d1f11bfedef0fe6d036842e3fb77413abef29f8f8d1c5d4c1c" -[[package]] -name = "unicase" -version = "1.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f4765f83163b74f957c797ad9253caf97f103fb064d3999aea9568d09fc8a33" -dependencies = [ - "version_check 0.1.5", -] - [[package]] name = "unicase" version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "50f37be617794602aabbeee0be4f259dc1778fabe05e2d67ee8f79326d5cb4f6" dependencies = [ - "version_check 0.9.3", + "version_check", ] [[package]] @@ -7467,7 +7047,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "aa4227e95324a443c9fcb06e03d4d85e91aabe9a5a02aa818688b6918b6af486" dependencies = [ "libc", - "log 0.4.14", + "log", ] [[package]] @@ -7494,12 +7074,6 @@ version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191" -[[package]] -name = "version_check" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "914b1a6776c4c929a602fafd8bc742e06365d4bcbe48c30f9cca5824f70dc9dd" - [[package]] name = "version_check" version = "0.9.3" @@ -7538,7 +7112,7 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1ce8a968cb1cd110d136ff8b819a556d6fb6d919363c61534f6860c7eb172ba0" dependencies = [ - "log 0.4.14", + "log", "try-lock", ] @@ -7572,7 +7146,7 @@ checksum = "a317bf8f9fba2476b4b2c85ef4c4af8ff39c3c7f0cdfeed4f82c34a880aa837b" dependencies = [ "bumpalo", "lazy_static", - "log 0.4.14", + "log", "proc-macro2 1.0.32", "quote 1.0.10", "syn 1.0.81", @@ -7659,47 +7233,6 @@ dependencies = [ "webpki 0.22.0", ] -[[package]] -name = "websocket" -version = "0.24.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "413b37840b9e27b340ce91b319ede10731de8c72f5bc4cb0206ec1ca4ce581d0" -dependencies = [ - "bytes 0.4.12", - "futures 0.1.31", - "hyper 0.10.16", - "native-tls", - "rand 0.6.5", - "tokio-codec", - "tokio-io", - "tokio-reactor", - "tokio-tcp", - "tokio-tls", - "unicase 1.4.2", - "url 1.7.2", - "websocket-base", -] - -[[package]] -name = "websocket-base" -version = "0.24.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e3810f0d00c4dccb54c30a4eee815e703232819dec7b007db115791c42aa374" -dependencies = [ - "base64 0.10.1", - "bitflags", - "byteorder", - "bytes 0.4.12", - "futures 0.1.31", - "native-tls", - "rand 0.6.5", - "sha1", - "tokio-codec", - "tokio-io", - "tokio-tcp", - "tokio-tls", -] - [[package]] name = "which" version = "4.2.2" @@ -7858,16 +7391,6 @@ dependencies = [ "winapi 0.3.9", ] -[[package]] -name = "ws2_32-sys" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d59cefebd0c892fa2dd6de581e937301d8552cb44489cdff035c6187cb63fa5e" -dependencies = [ - "winapi 0.2.8", - "winapi-build", -] - [[package]] name = "wyz" version = "0.2.0" diff --git a/ci/do-audit.sh b/ci/do-audit.sh index 66c7d9132..ea21a36eb 100755 --- a/ci/do-audit.sh +++ b/ci/do-audit.sh @@ -25,22 +25,10 @@ cargo_audit_ignores=( # generic-array: arr! macro erases lifetimes # - # Blocked on libsecp256k1 releasing with upgraded dependencies - # https://github.com/paritytech/libsecp256k1/issues/66 + # Blocked on new spl dependencies on solana-program v1.9 + # due to curve25519-dalek dependency --ignore RUSTSEC-2020-0146 - # hyper: Lenient `hyper` header parsing of `Content-Length` could allow request smuggling - # - # Blocked on jsonrpc removing dependency on unmaintained `websocket` - # https://github.com/paritytech/jsonrpc/issues/605 - --ignore RUSTSEC-2021-0078 - - # hyper: Integer overflow in `hyper`'s parsing of the `Transfer-Encoding` header leads to data loss - # - # Blocked on jsonrpc removing dependency on unmaintained `websocket` - # https://github.com/paritytech/jsonrpc/issues/605 - --ignore RUSTSEC-2021-0079 - # chrono: Potential segfault in `localtime_r` invocations # # Blocked due to no safe upgrade diff --git a/core/Cargo.toml b/core/Cargo.toml index 608e27628..1cdf442e4 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -64,10 +64,6 @@ tokio = { version = "1", features = ["full"] } trees = "0.4.2" [dev-dependencies] -jsonrpc-core = "18.0.0" -jsonrpc-core-client = { version = "18.0.0", features = ["ipc", "ws"] } -jsonrpc-derive = "18.0.0" -jsonrpc-pubsub = "18.0.0" matches = "0.1.9" raptorq = "1.6.5" reqwest = { version = "0.11.9", default-features = false, features = ["blocking", "rustls-tls", "json"] } diff --git a/rpc-test/Cargo.toml b/rpc-test/Cargo.toml index 087af4a18..6bf365f89 100644 --- a/rpc-test/Cargo.toml +++ b/rpc-test/Cargo.toml @@ -13,8 +13,7 @@ edition = "2021" bincode = "1.3.3" bs58 = "0.4.0" crossbeam-channel = "0.5" -jsonrpc-core = "18.0.0" -jsonrpc-core-client = { version = "18.0.0", features = ["ipc", "ws"] } +futures-util = "0.3.21" log = "0.4.11" reqwest = { version = "0.11.9", default-features = false, features = ["blocking", "rustls-tls", "json"] } serde = "1.0.136" diff --git a/rpc-test/tests/rpc.rs b/rpc-test/tests/rpc.rs index 3906bb4f6..f3acb3c0b 100644 --- a/rpc-test/tests/rpc.rs +++ b/rpc-test/tests/rpc.rs @@ -1,27 +1,26 @@ use { bincode::serialize, crossbeam_channel::unbounded, - jsonrpc_core::futures::StreamExt, - jsonrpc_core_client::transports::ws, + futures_util::StreamExt, log::*, reqwest::{self, header::CONTENT_TYPE}, serde_json::{json, Value}, solana_account_decoder::UiAccount, solana_client::{ client_error::{ClientErrorKind, Result as ClientResult}, + nonblocking::pubsub_client::PubsubClient, rpc_client::RpcClient, rpc_config::{RpcAccountInfoConfig, RpcSignatureSubscribeConfig}, rpc_request::RpcError, rpc_response::{Response as RpcResponse, RpcSignatureResult, SlotUpdate}, tpu_client::{TpuClient, TpuClientConfig}, }, - solana_rpc::rpc_pubsub::gen_client::Client as PubsubClient, solana_sdk::{ commitment_config::CommitmentConfig, hash::Hash, pubkey::Pubkey, rent::Rent, - signature::{Keypair, Signer}, + signature::{Keypair, Signature, Signer}, system_transaction, transaction::Transaction, }, @@ -171,23 +170,21 @@ fn test_rpc_slot_updates() { let test_validator = TestValidator::with_no_fees(Pubkey::new_unique(), None, SocketAddrSpace::Unspecified); + // Track when slot updates are ready + let (update_sender, update_receiver) = unbounded::(); // Create the pub sub runtime let rt = Runtime::new().unwrap(); let rpc_pubsub_url = test_validator.rpc_pubsub_url(); - let (update_sender, update_receiver) = unbounded::>(); - // Subscribe to slot updates rt.spawn(async move { - let connect = ws::try_connect::(&rpc_pubsub_url).unwrap(); - let client = connect.await.unwrap(); + let pubsub_client = PubsubClient::new(&rpc_pubsub_url).await.unwrap(); + let (mut slot_notifications, slot_unsubscribe) = + pubsub_client.slot_updates_subscribe().await.unwrap(); - tokio::spawn(async move { - let mut update_sub = client.slots_updates_subscribe().unwrap(); - loop { - let response = update_sub.next().await.unwrap(); - update_sender.send(response.unwrap()).unwrap(); - } - }); + while let Some(slot_update) = slot_notifications.next().await { + update_sender.send(slot_update).unwrap(); + } + slot_unsubscribe().await; }); let first_update = update_receiver @@ -212,7 +209,7 @@ fn test_rpc_slot_updates() { .recv_timeout(Duration::from_secs(2)) .unwrap(); if update.slot() == verify_slot { - let update_name = match *update { + let update_name = match update { SlotUpdate::CreatedBank { .. } => "CreatedBank", SlotUpdate::Completed { .. } => "Completed", SlotUpdate::Frozen { .. } => "Frozen", @@ -244,23 +241,22 @@ fn test_rpc_subscriptions() { let recent_blockhash = rpc_client.get_latest_blockhash().unwrap(); // Create transaction signatures to subscribe to + let transfer_amount = Rent::default().minimum_balance(0); let transactions: Vec = (0..1000) .map(|_| { system_transaction::transfer( &alice, &solana_sdk::pubkey::new_rand(), - Rent::default().minimum_balance(0), + transfer_amount, recent_blockhash, ) }) .collect(); - let mut signature_set: HashSet = transactions + let mut signature_set: HashSet = + transactions.iter().map(|tx| tx.signatures[0]).collect(); + let account_set: HashSet = transactions .iter() - .map(|tx| tx.signatures[0].to_string()) - .collect(); - let account_set: HashSet = transactions - .iter() - .map(|tx| tx.message.account_keys[1].to_string()) + .map(|tx| tx.message.account_keys[1]) .collect(); // Track when subscriptions are ready @@ -268,62 +264,74 @@ fn test_rpc_subscriptions() { // Track account notifications are received let (account_sender, account_receiver) = unbounded::>(); // Track when status notifications are received - let (status_sender, status_receiver) = unbounded::<(String, RpcResponse)>(); + let (status_sender, status_receiver) = + unbounded::<(Signature, RpcResponse)>(); // Create the pub sub runtime let rt = Runtime::new().unwrap(); let rpc_pubsub_url = test_validator.rpc_pubsub_url(); let signature_set_clone = signature_set.clone(); rt.spawn(async move { - let connect = ws::try_connect::(&rpc_pubsub_url).unwrap(); - let client = connect.await.unwrap(); + let pubsub_client = Arc::new(PubsubClient::new(&rpc_pubsub_url).await.unwrap()); // Subscribe to signature notifications - for sig in signature_set_clone { + for signature in signature_set_clone { let status_sender = status_sender.clone(); - let mut sig_sub = client - .signature_subscribe( - sig.clone(), - Some(RpcSignatureSubscribeConfig { - commitment: Some(CommitmentConfig::confirmed()), - ..RpcSignatureSubscribeConfig::default() - }), - ) - .unwrap_or_else(|err| panic!("sig sub err: {:#?}", err)); + tokio::spawn({ + let _pubsub_client = Arc::clone(&pubsub_client); + async move { + let (mut sig_notifications, sig_unsubscribe) = _pubsub_client + .signature_subscribe( + &signature, + Some(RpcSignatureSubscribeConfig { + commitment: Some(CommitmentConfig::confirmed()), + ..RpcSignatureSubscribeConfig::default() + }), + ) + .await + .unwrap(); - tokio::spawn(async move { - let response = sig_sub.next().await.unwrap(); - status_sender - .send((sig.clone(), response.unwrap())) - .unwrap(); + let response = sig_notifications.next().await.unwrap(); + status_sender.send((signature, response)).unwrap(); + sig_unsubscribe().await; + } }); } // Subscribe to account notifications for pubkey in account_set { let account_sender = account_sender.clone(); - let mut client_sub = client - .account_subscribe( - pubkey, - Some(RpcAccountInfoConfig { - commitment: Some(CommitmentConfig::confirmed()), - ..RpcAccountInfoConfig::default() - }), - ) - .unwrap_or_else(|err| panic!("acct sub err: {:#?}", err)); - tokio::spawn(async move { - let response = client_sub.next().await.unwrap(); - account_sender.send(response.unwrap()).unwrap(); + tokio::spawn({ + let _pubsub_client = Arc::clone(&pubsub_client); + async move { + let (mut account_notifications, account_unsubscribe) = _pubsub_client + .account_subscribe( + &pubkey, + Some(RpcAccountInfoConfig { + commitment: Some(CommitmentConfig::confirmed()), + ..RpcAccountInfoConfig::default() + }), + ) + .await + .unwrap(); + + let response = account_notifications.next().await.unwrap(); + account_sender.send(response).unwrap(); + account_unsubscribe().await; + } }); } // Signal ready after the next slot notification - let mut slot_sub = client - .slot_subscribe() - .unwrap_or_else(|err| panic!("sig sub err: {:#?}", err)); - tokio::spawn(async move { - let _response = slot_sub.next().await.unwrap(); - ready_sender.send(()).unwrap(); + tokio::spawn({ + let _pubsub_client = Arc::clone(&pubsub_client); + async move { + let (mut slot_notifications, slot_unsubscribe) = + _pubsub_client.slot_subscribe().await.unwrap(); + let _response = slot_notifications.next().await.unwrap(); + ready_sender.send(()).unwrap(); + slot_unsubscribe().await; + } }); }); @@ -346,7 +354,7 @@ fn test_rpc_subscriptions() { // Track mint balance to know when transactions have completed let now = Instant::now(); - let expected_mint_balance = mint_balance - transactions.len() as u64; + let expected_mint_balance = mint_balance - (transfer_amount * transactions.len() as u64); while mint_balance != expected_mint_balance && now.elapsed() < Duration::from_secs(15) { mint_balance = rpc_client .get_balance_with_commitment(&alice.pubkey(), CommitmentConfig::processed()) diff --git a/rpc/Cargo.toml b/rpc/Cargo.toml index e36bf44a2..ce6011927 100644 --- a/rpc/Cargo.toml +++ b/rpc/Cargo.toml @@ -17,7 +17,7 @@ crossbeam-channel = "0.5" dashmap = "4.0.2" itertools = "0.10.3" jsonrpc-core = "18.0.0" -jsonrpc-core-client = { version = "18.0.0", features = ["ipc", "ws"] } +jsonrpc-core-client = { version = "18.0.0" } jsonrpc-derive = "18.0.0" jsonrpc-http-server = "18.0.0" jsonrpc-pubsub = "18.0.0" diff --git a/validator/Cargo.toml b/validator/Cargo.toml index 0f9ef6a64..97b68d6e5 100644 --- a/validator/Cargo.toml +++ b/validator/Cargo.toml @@ -19,7 +19,7 @@ crossbeam-channel = "0.5" fd-lock = "3.0.4" indicatif = "0.16.2" jsonrpc-core = "18.0.0" -jsonrpc-core-client = { version = "18.0.0", features = ["ipc", "ws"] } +jsonrpc-core-client = { version = "18.0.0", features = ["ipc"] } jsonrpc-derive = "18.0.0" jsonrpc-ipc-server = "18.0.0" jsonrpc-server-utils= "18.0.0"