diff --git a/Cargo.lock b/Cargo.lock index e806d45..4949889 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -952,6 +952,18 @@ dependencies = [ "want", ] +[[package]] +name = "hyper-timeout" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbb958482e8c7be4bc3cf272a766a2b0bf1a6755e7a6ae777f017a31d11b13b1" +dependencies = [ + "hyper", + "pin-project-lite", + "tokio", + "tokio-io-timeout", +] + [[package]] name = "idna" version = "0.1.5" @@ -1018,6 +1030,15 @@ dependencies = [ "either", ] +[[package]] +name = "itertools" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "69ddb889f9d0d08a67338271fa9b62996bc788c7796a5c18cf057420aaed5eaf" +dependencies = [ + "either", +] + [[package]] name = "itoa" version = "0.4.7" @@ -1520,9 +1541,9 @@ dependencies = [ [[package]] name = "prost" -version = "0.7.0" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e6984d2f1a23009bd270b8bb56d0926810a3d483f59c987d77969e9d8e840b2" +checksum = "de5e2533f59d08fcf364fd374ebda0692a70bd6d7e66ef97f306f45c6c5d8020" dependencies = [ "bytes", "prost-derive", @@ -1530,13 +1551,13 @@ dependencies = [ [[package]] name = "prost-build" -version = "0.7.0" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32d3ebd75ac2679c2af3a92246639f9fcc8a442ee420719cc4fe195b98dd5fa3" +checksum = "355f634b43cdd80724ee7848f95770e7e70eefa6dcf14fea676216573b8fd603" dependencies = [ "bytes", "heck", - "itertools 0.9.0", + "itertools 0.10.1", "log", "multimap", "petgraph", @@ -1548,12 +1569,12 @@ dependencies = [ [[package]] name = "prost-derive" -version = "0.7.0" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "169a15f3008ecb5160cba7d37bcd690a7601b6d30cfb87a117d45e59d52af5d4" +checksum = "600d2f334aa05acb02a755e217ef1ab6dea4d51b58b7846588b747edec04efba" dependencies = [ "anyhow", - "itertools 0.9.0", + "itertools 0.10.1", "proc-macro2 1.0.28", "quote 1.0.9", "syn 1.0.74", @@ -1561,9 +1582,9 @@ dependencies = [ [[package]] name = "prost-types" -version = "0.7.0" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b518d7cdd93dab1d1122cf07fa9a60771836c668dde9d9e2a139f957f0d9f1bb" +checksum = "603bbd6394701d13f3f25aada59c7de9d35a6a5887cfc156181234a44002771b" dependencies = [ "bytes", "prost", @@ -2164,6 +2185,16 @@ dependencies = [ "winapi", ] +[[package]] +name = "tokio-io-timeout" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "90c49f106be240de154571dd31fbe48acb10ba6c6dd6f6517ad603abffa42de9" +dependencies = [ + "pin-project-lite", + "tokio", +] + [[package]] name = "tokio-macros" version = "1.3.0" @@ -2212,9 +2243,9 @@ dependencies = [ [[package]] name = "tonic" -version = "0.4.3" +version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2ac42cd97ac6bd2339af5bcabf105540e21e45636ec6fa6aae5e85d44db31be0" +checksum = "796c5e1cd49905e65dd8e700d4cb1dffcbfdb4fc9d017de08c1a537afd83627c" dependencies = [ "async-stream", "async-trait", @@ -2226,6 +2257,7 @@ dependencies = [ "http", "http-body", "hyper", + "hyper-timeout", "percent-encoding 2.1.0", "pin-project", "prost", @@ -2234,6 +2266,7 @@ dependencies = [ "tokio-stream", "tokio-util", "tower", + "tower-layer", "tower-service", "tracing", "tracing-futures", @@ -2241,9 +2274,9 @@ dependencies = [ [[package]] name = "tonic-build" -version = "0.4.2" +version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c695de27302f4697191dda1c7178131a8cb805463dda02864acb80fe1322fdcf" +checksum = "12b52d07035516c2b74337d2ac7746075e7dcae7643816c1b12c5ff8a7484c08" dependencies = [ "proc-macro2 1.0.28", "prost-build", diff --git a/Cargo.toml b/Cargo.toml index 9c01f2c..3ce6ea0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -31,16 +31,16 @@ itertools = "0.8.1" log = "0.4.11" num-bigint = "0.2.3" num-traits = "0.2.8" -prost = { version = "0.7.0", optional = true } +prost = { version = "0.8.0", optional = true } rand = "0.4" serde = { version = "1.0", features = [ "derive" ] } serde_json = "1.0" tokio = { version = "*", features = [ "rt-multi-thread", "signal", "sync" ], optional = true } -tonic = { version = "0.4.0", optional = true } +tonic = { version = "0.5.2", optional = true } [build-dependencies] cfg-if = "1.0.0" -tonic-build = "0.4.0" +tonic-build = "0.5.2" [features] default = [ "bellman_ce/multicore", "solidity" ] diff --git a/src/lib.rs b/src/lib.rs index 9b44b6b..0161ec6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,3 +1,5 @@ +#![allow(clippy::unit_arg)] + #[macro_use] extern crate serde; #[macro_use]