diff --git a/Cargo.lock b/Cargo.lock index d71390cfbb6..f08f759e20e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -983,6 +983,12 @@ version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "524cbf6897b527295dff137cec09ecf3a05f4fddffd7dfcd1585403449e74198" +[[package]] +name = "difflib" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6184e33543162437515c2e2b48714794e37845ec9851711914eec9d308f6ebe8" + [[package]] name = "digest" version = "0.8.1" @@ -1055,9 +1061,9 @@ dependencies = [ [[package]] name = "downcast" -version = "0.10.0" +version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4bb454f0228b18c7f4c3b0ebbee346ed9c52e7443b0999cd543ff3571205701d" +checksum = "1435fa1053d8b2fbbe9be7e97eca7f33d37b28409959813daefc1446a14247f1" [[package]] name = "dtoa" @@ -1280,9 +1286,9 @@ checksum = "37ab347416e802de484e4d03c7316c48f1ecb56574dfd4a46a80f173ce1de04d" [[package]] name = "float-cmp" -version = "0.8.0" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e1267f4ac4f343772758f7b1bdcbe767c218bbab93bb432acbf5162bbf85a6c4" +checksum = "98de4bbd547a563b716d8dfa9aad1cb19bfab00f4fa09a6a4ed21dbcf44ce9c4" dependencies = [ "num-traits", ] @@ -1584,7 +1590,7 @@ dependencies = [ "isatty", "lazy_static", "maplit", - "mockall 0.8.3", + "mockall", "num-bigint", "num-traits", "num_cpus", @@ -1645,7 +1651,7 @@ dependencies = [ "http 0.1.21", "jsonrpc-core", "lazy_static", - "mockall 0.9.1", + "mockall", "pretty_assertions", "serde", "state_machine_future", @@ -1711,7 +1717,7 @@ dependencies = [ "graph", "graph-graphql", "graphql-parser", - "mockall 0.8.3", + "mockall", "rand 0.6.5", ] @@ -2717,51 +2723,24 @@ dependencies = [ [[package]] name = "mockall" -version = "0.8.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41cabea45a7fc0e37093f4f30a5e2b62602253f91791c057d5f0470c63260c3d" -dependencies = [ - "cfg-if 0.1.10", - "downcast", - "fragile", - "lazy_static", - "mockall_derive 0.8.3", - "predicates", - "predicates-tree", -] - -[[package]] -name = "mockall" -version = "0.9.1" +version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "18d614ad23f9bb59119b8b5670a85c7ba92c5e9adf4385c81ea00c51c8be33d5" +checksum = "3d4d70639a72f972725db16350db56da68266ca368b2a1fe26724a903ad3d6b8" dependencies = [ "cfg-if 1.0.0", "downcast", "fragile", "lazy_static", - "mockall_derive 0.9.1", + "mockall_derive", "predicates", "predicates-tree", ] [[package]] name = "mockall_derive" -version = "0.8.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c461918bf7f59eefb1459252756bf2351a995d6bd510d0b2061bd86bcdabfa6" -dependencies = [ - "cfg-if 0.1.10", - "proc-macro2 1.0.24", - "quote 1.0.9", - "syn 1.0.67", -] - -[[package]] -name = "mockall_derive" -version = "0.9.1" +version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5dd4234635bca06fc96c7368d038061e0aae1b00a764dc817e900dc974e3deea" +checksum = "79ef208208a0dea3f72221e26e904cdc6db2e481d9ade89081ddd494f1dbaa6b" dependencies = [ "cfg-if 1.0.0", "proc-macro2 1.0.24", @@ -3228,12 +3207,13 @@ dependencies = [ [[package]] name = "predicates" -version = "1.0.5" +version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "96bfead12e90dccead362d62bb2c90a5f6fc4584963645bc7f71a735e0b0735a" +checksum = "95e5a7689e456ab905c22c2b48225bb921aba7c8dfa58440d68ba13f6222a715" dependencies = [ - "difference", + "difflib", "float-cmp", + "itertools", "normalize-line-endings", "predicates-core", "regex", diff --git a/chain/ethereum/Cargo.toml b/chain/ethereum/Cargo.toml index fa3a7021e0a..9ac11d8a153 100644 --- a/chain/ethereum/Cargo.toml +++ b/chain/ethereum/Cargo.toml @@ -10,7 +10,7 @@ http = "0.1.21" # must be compatible with the version rust-web3 uses jsonrpc-core = "14.2.0" graph = { path = "../../graph" } lazy_static = "1.2.0" -mockall = "0.9.1" +mockall = "0.11.0" state_machine_future = "0.2" serde = "1.0" dirs-next = "2.0" diff --git a/graph/Cargo.toml b/graph/Cargo.toml index dd2ae5003bc..7525d0ba3b9 100644 --- a/graph/Cargo.toml +++ b/graph/Cargo.toml @@ -28,7 +28,7 @@ fail = { version = "0.4", features = ["failpoints"] } futures = "0.1.21" graphql-parser = "0.3.0" lazy_static = "1.4.0" -mockall = "0.8.3" +mockall = "0.11.0" num-bigint = { version = "^0.2.6", features = ["serde"] } num_cpus = "1.13.0" num-traits = "0.2.14" diff --git a/mock/Cargo.toml b/mock/Cargo.toml index 4246e4eaea1..974c5b8adc2 100644 --- a/mock/Cargo.toml +++ b/mock/Cargo.toml @@ -8,5 +8,5 @@ futures = "0.1.21" graphql-parser = "0.3" graph = { path = "../graph" } graph-graphql = { path = "../graphql" } -mockall = "0.8" +mockall = "0.11" rand = "0.6.1"