chore: bump tonic from 0.5.2 to 0.6.1 (#21035)

* Bump tonic and prost crates

* connect_lazy no longer infallible
This commit is contained in:
Tyera Eulberg 2021-10-28 00:59:36 -06:00 committed by GitHub
parent 6a1ff60c61
commit f0de3e9bf0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 214 additions and 61 deletions

181
Cargo.lock generated
View File

@ -1310,11 +1310,11 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "76b9f5b0b4f53cf836bef05b22cd5239479700bc8d44a04c3c77f1ba6c2c73e9" checksum = "76b9f5b0b4f53cf836bef05b22cd5239479700bc8d44a04c3c77f1ba6c2c73e9"
dependencies = [ dependencies = [
"http", "http",
"prost", "prost 0.8.0",
"tokio", "tokio",
"tokio-stream", "tokio-stream",
"tonic", "tonic 0.5.2",
"tonic-build", "tonic-build 0.5.2",
"tower-service", "tower-service",
] ]
@ -1407,6 +1407,12 @@ version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "37ab347416e802de484e4d03c7316c48f1ecb56574dfd4a46a80f173ce1de04d" checksum = "37ab347416e802de484e4d03c7316c48f1ecb56574dfd4a46a80f173ce1de04d"
[[package]]
name = "fixedbitset"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "398ea4fabe40b9b0d885340a2a991a44c8a645624075ad966d21f88688e2b69e"
[[package]] [[package]]
name = "flate2" name = "flate2"
version = "1.0.22" version = "1.0.22"
@ -1861,9 +1867,9 @@ dependencies = [
[[package]] [[package]]
name = "http-body" name = "http-body"
version = "0.4.2" version = "0.4.4"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "60daa14be0e0786db0f03a9e57cb404c9d756eed2b6c62b9ea98ec5743ec75a9" checksum = "1ff4f84919677303da5f147645dbea6b1881f368d03ac84e1dc09031ebd7b2c6"
dependencies = [ dependencies = [
"bytes 1.0.1", "bytes 1.0.1",
"http", "http",
@ -1872,9 +1878,9 @@ dependencies = [
[[package]] [[package]]
name = "httparse" name = "httparse"
version = "1.4.1" version = "1.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f3a87b616e37e93c22fb19bcd386f02f3af5ea98a25670ad0fce773de23c5e68" checksum = "acd94fdbe1d4ff688b67b04eee2e17bd50995534a61539e45adfefb45e5e5503"
[[package]] [[package]]
name = "httpdate" name = "httpdate"
@ -1909,9 +1915,9 @@ dependencies = [
[[package]] [[package]]
name = "hyper" name = "hyper"
version = "0.14.11" version = "0.14.14"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0b61cf2d1aebcf6e6352c97b81dc2244ca29194be1b276f5d8ad5c6330fffb11" checksum = "2b91bb1f221b6ea1f1e4371216b70f40748774c2fb5971b450c07773fb92d26b"
dependencies = [ dependencies = [
"bytes 1.0.1", "bytes 1.0.1",
"futures-channel", "futures-channel",
@ -1938,7 +1944,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5f9f7a97316d44c0af9b0301e65010573a853a9fc97046d7331d7f6bc0fd5a64" checksum = "5f9f7a97316d44c0af9b0301e65010573a853a9fc97046d7331d7f6bc0fd5a64"
dependencies = [ dependencies = [
"futures-util", "futures-util",
"hyper 0.14.11", "hyper 0.14.14",
"log 0.4.14", "log 0.4.14",
"rustls", "rustls",
"tokio", "tokio",
@ -1952,7 +1958,7 @@ version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bbb958482e8c7be4bc3cf272a766a2b0bf1a6755e7a6ae777f017a31d11b13b1" checksum = "bbb958482e8c7be4bc3cf272a766a2b0bf1a6755e7a6ae777f017a31d11b13b1"
dependencies = [ dependencies = [
"hyper 0.14.11", "hyper 0.14.14",
"pin-project-lite", "pin-project-lite",
"tokio", "tokio",
"tokio-io-timeout", "tokio-io-timeout",
@ -1965,7 +1971,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d6183ddfa99b85da61a140bea0efc93fdf56ceaa041b37d553518030827f9905" checksum = "d6183ddfa99b85da61a140bea0efc93fdf56ceaa041b37d553518030827f9905"
dependencies = [ dependencies = [
"bytes 1.0.1", "bytes 1.0.1",
"hyper 0.14.11", "hyper 0.14.14",
"native-tls", "native-tls",
"tokio", "tokio",
"tokio-native-tls", "tokio-native-tls",
@ -2152,7 +2158,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e1dea6e07251d9ce6a552abfb5d7ad6bc290a4596c8dcc3d795fae2bbdc1f3ff" checksum = "e1dea6e07251d9ce6a552abfb5d7ad6bc290a4596c8dcc3d795fae2bbdc1f3ff"
dependencies = [ dependencies = [
"futures 0.3.17", "futures 0.3.17",
"hyper 0.14.11", "hyper 0.14.14",
"jsonrpc-core", "jsonrpc-core",
"jsonrpc-server-utils", "jsonrpc-server-utils",
"log 0.4.14", "log 0.4.14",
@ -2946,7 +2952,17 @@ version = "0.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "467d164a6de56270bd7c4d070df81d07beace25012d5103ced4e9ff08d6afdb7" checksum = "467d164a6de56270bd7c4d070df81d07beace25012d5103ced4e9ff08d6afdb7"
dependencies = [ dependencies = [
"fixedbitset", "fixedbitset 0.2.0",
"indexmap",
]
[[package]]
name = "petgraph"
version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4a13a2fa9d0b63e5f22328828741e523766fff0ee9e779316902290dff3f824f"
dependencies = [
"fixedbitset 0.4.0",
"indexmap", "indexmap",
] ]
@ -3218,7 +3234,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "de5e2533f59d08fcf364fd374ebda0692a70bd6d7e66ef97f306f45c6c5d8020" checksum = "de5e2533f59d08fcf364fd374ebda0692a70bd6d7e66ef97f306f45c6c5d8020"
dependencies = [ dependencies = [
"bytes 1.0.1", "bytes 1.0.1",
"prost-derive", "prost-derive 0.8.0",
]
[[package]]
name = "prost"
version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "444879275cb4fd84958b1a1d5420d15e6fcf7c235fe47f053c9c2a80aceb6001"
dependencies = [
"bytes 1.0.1",
"prost-derive 0.9.0",
] ]
[[package]] [[package]]
@ -3232,9 +3258,29 @@ dependencies = [
"itertools 0.10.1", "itertools 0.10.1",
"log 0.4.14", "log 0.4.14",
"multimap", "multimap",
"petgraph", "petgraph 0.5.1",
"prost", "prost 0.8.0",
"prost-types", "prost-types 0.8.0",
"tempfile",
"which",
]
[[package]]
name = "prost-build"
version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "62941722fb675d463659e49c4f3fe1fe792ff24fe5bbaa9c08cd3b98a1c354f5"
dependencies = [
"bytes 1.0.1",
"heck",
"itertools 0.10.1",
"lazy_static",
"log 0.4.14",
"multimap",
"petgraph 0.6.0",
"prost 0.9.0",
"prost-types 0.9.0",
"regex",
"tempfile", "tempfile",
"which", "which",
] ]
@ -3252,6 +3298,19 @@ dependencies = [
"syn 1.0.67", "syn 1.0.67",
] ]
[[package]]
name = "prost-derive"
version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f9cc1a3263e07e0bf68e96268f37665207b49560d98739662cdfaae215c720fe"
dependencies = [
"anyhow",
"itertools 0.10.1",
"proc-macro2 1.0.24",
"quote 1.0.9",
"syn 1.0.67",
]
[[package]] [[package]]
name = "prost-types" name = "prost-types"
version = "0.8.0" version = "0.8.0"
@ -3259,7 +3318,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "603bbd6394701d13f3f25aada59c7de9d35a6a5887cfc156181234a44002771b" checksum = "603bbd6394701d13f3f25aada59c7de9d35a6a5887cfc156181234a44002771b"
dependencies = [ dependencies = [
"bytes 1.0.1", "bytes 1.0.1",
"prost", "prost 0.8.0",
]
[[package]]
name = "prost-types"
version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "534b7a0e836e3c482d2693070f982e39e7611da9695d4d1f5a4b186b51faef0a"
dependencies = [
"bytes 1.0.1",
"prost 0.9.0",
] ]
[[package]] [[package]]
@ -3665,7 +3734,7 @@ dependencies = [
"futures-util", "futures-util",
"http", "http",
"http-body", "http-body",
"hyper 0.14.11", "hyper 0.14.14",
"hyper-rustls", "hyper-rustls",
"hyper-tls", "hyper-tls",
"ipnet", "ipnet",
@ -4964,7 +5033,7 @@ dependencies = [
"log 0.4.14", "log 0.4.14",
"matches", "matches",
"num_cpus", "num_cpus",
"prost", "prost 0.9.0",
"rand 0.7.3", "rand 0.7.3",
"rand_chacha 0.2.2", "rand_chacha 0.2.2",
"rayon", "rayon",
@ -5385,13 +5454,13 @@ dependencies = [
"crossbeam-channel", "crossbeam-channel",
"futures-util", "futures-util",
"log 0.4.14", "log 0.4.14",
"prost", "prost 0.9.0",
"solana-rpc", "solana-rpc",
"solana-runtime", "solana-runtime",
"solana-sdk", "solana-sdk",
"tokio", "tokio",
"tonic", "tonic 0.6.1",
"tonic-build", "tonic-build 0.6.0",
] ]
[[package]] [[package]]
@ -5421,7 +5490,7 @@ dependencies = [
"solana-validator", "solana-validator",
"solana-version", "solana-version",
"tempfile", "tempfile",
"tonic-build", "tonic-build 0.6.0",
] ]
[[package]] [[package]]
@ -5658,8 +5727,8 @@ dependencies = [
"flate2", "flate2",
"goauth", "goauth",
"log 0.4.14", "log 0.4.14",
"prost", "prost 0.9.0",
"prost-types", "prost-types 0.9.0",
"serde", "serde",
"serde_derive", "serde_derive",
"smpl_jwt", "smpl_jwt",
@ -5667,7 +5736,7 @@ dependencies = [
"solana-storage-proto", "solana-storage-proto",
"solana-transaction-status", "solana-transaction-status",
"thiserror", "thiserror",
"tonic", "tonic 0.6.1",
"zstd", "zstd",
] ]
@ -5677,12 +5746,12 @@ version = "1.9.0"
dependencies = [ dependencies = [
"bincode", "bincode",
"bs58 0.4.0", "bs58 0.4.0",
"prost", "prost 0.9.0",
"serde", "serde",
"solana-account-decoder", "solana-account-decoder",
"solana-sdk", "solana-sdk",
"solana-transaction-status", "solana-transaction-status",
"tonic-build", "tonic-build 0.6.0",
] ]
[[package]] [[package]]
@ -6609,12 +6678,44 @@ dependencies = [
"h2", "h2",
"http", "http",
"http-body", "http-body",
"hyper 0.14.11", "hyper 0.14.14",
"hyper-timeout", "hyper-timeout",
"percent-encoding 2.1.0", "percent-encoding 2.1.0",
"pin-project 1.0.7", "pin-project 1.0.7",
"prost", "prost 0.8.0",
"prost-derive", "prost-derive 0.8.0",
"tokio",
"tokio-rustls",
"tokio-stream",
"tokio-util",
"tower",
"tower-layer",
"tower-service",
"tracing",
"tracing-futures",
]
[[package]]
name = "tonic"
version = "0.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "24203b79cf2d68909da91178db3026e77054effba0c5d93deb870d3ca7b35afa"
dependencies = [
"async-stream",
"async-trait",
"base64 0.13.0",
"bytes 1.0.1",
"futures-core",
"futures-util",
"h2",
"http",
"http-body",
"hyper 0.14.14",
"hyper-timeout",
"percent-encoding 2.1.0",
"pin-project 1.0.7",
"prost 0.9.0",
"prost-derive 0.9.0",
"tokio", "tokio",
"tokio-rustls", "tokio-rustls",
"tokio-stream", "tokio-stream",
@ -6633,7 +6734,19 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "12b52d07035516c2b74337d2ac7746075e7dcae7643816c1b12c5ff8a7484c08" checksum = "12b52d07035516c2b74337d2ac7746075e7dcae7643816c1b12c5ff8a7484c08"
dependencies = [ dependencies = [
"proc-macro2 1.0.24", "proc-macro2 1.0.24",
"prost-build", "prost-build 0.8.0",
"quote 1.0.9",
"syn 1.0.67",
]
[[package]]
name = "tonic-build"
version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "88358bb1dcfeb62dcce85c63006cafb964b7be481d522b7e09589d4d1e718d2a"
dependencies = [
"proc-macro2 1.0.24",
"prost-build 0.9.0",
"quote 1.0.9", "quote 1.0.9",
"syn 1.0.67", "syn 1.0.67",
] ]

View File

@ -22,7 +22,7 @@ lazy_static = "1.4.0"
libc = "0.2.105" libc = "0.2.105"
log = { version = "0.4.14" } log = { version = "0.4.14" }
num_cpus = "1.13.0" num_cpus = "1.13.0"
prost = "0.8.0" prost = "0.9.0"
rand = "0.7.0" rand = "0.7.0"
rand_chacha = "0.2.2" rand_chacha = "0.2.2"
rayon = "1.5.1" rayon = "1.5.1"

View File

@ -13,15 +13,15 @@ documentation = "https://docs.rs/solana-validator"
crossbeam-channel = "0.5" crossbeam-channel = "0.5"
futures-util = "0.3" futures-util = "0.3"
log = "0.4.11" log = "0.4.11"
prost = "0.8.0" prost = "0.9.0"
solana-rpc = { path = "../rpc", version = "=1.9.0" } solana-rpc = { path = "../rpc", version = "=1.9.0" }
solana-runtime = { path = "../runtime", version = "=1.9.0" } solana-runtime = { path = "../runtime", version = "=1.9.0" }
solana-sdk = { path = "../sdk", version = "=1.9.0" } solana-sdk = { path = "../sdk", version = "=1.9.0" }
tokio = { version = "1", features = ["full"] } tokio = { version = "1", features = ["full"] }
tonic = { version = "0.5.0", features = ["tls", "transport"] } tonic = { version = "0.6.1", features = ["tls", "transport"] }
[package.metadata.docs.rs] [package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"] targets = ["x86_64-unknown-linux-gnu"]
[build-dependencies] [build-dependencies]
tonic-build = "0.5.1" tonic-build = "0.6.0"

View File

@ -41,4 +41,4 @@ tempfile = "3.2.0"
targets = ["x86_64-unknown-linux-gnu"] targets = ["x86_64-unknown-linux-gnu"]
[build-dependencies] [build-dependencies]
tonic-build = "0.5.1" tonic-build = "0.6.0"

View File

@ -17,8 +17,8 @@ enum-iterator = "0.7.0"
flate2 = "1.0.22" flate2 = "1.0.22"
goauth = "0.10.0" goauth = "0.10.0"
log = "0.4.14" log = "0.4.14"
prost = "0.8.0" prost = "0.9.0"
prost-types = "0.8.0" prost-types = "0.9.0"
serde = "1.0.130" serde = "1.0.130"
serde_derive = "1.0.103" serde_derive = "1.0.103"
smpl_jwt = "0.6.0" smpl_jwt = "0.6.0"
@ -26,7 +26,7 @@ solana-sdk = { path = "../sdk", version = "=1.9.0" }
solana-storage-proto = { path = "../storage-proto", version = "=1.9.0" } solana-storage-proto = { path = "../storage-proto", version = "=1.9.0" }
solana-transaction-status = { path = "../transaction-status", version = "=1.9.0" } solana-transaction-status = { path = "../transaction-status", version = "=1.9.0" }
thiserror = "1.0" thiserror = "1.0"
tonic = { version = "0.5.2", features = ["tls", "transport"] } tonic = { version = "0.6.1", features = ["tls", "transport"] }
zstd = "0.9.0" zstd = "0.9.0"
[lib] [lib]

View File

@ -2,6 +2,15 @@
# It is not intended for manual editing. # It is not intended for manual editing.
version = 3 version = 3
[[package]]
name = "aho-corasick"
version = "0.7.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1e37cfd5e7657ada45f742d6e99ca5788580b5c529dc78faf11ece6dc702656f"
dependencies = [
"memchr",
]
[[package]] [[package]]
name = "anyhow" name = "anyhow"
version = "1.0.31" version = "1.0.31"
@ -46,9 +55,9 @@ checksum = "bb1f6b1ce1c140482ea30ddd3335fc0024ac7ee112895426e0a629a6c20adfe3"
[[package]] [[package]]
name = "fixedbitset" name = "fixedbitset"
version = "0.2.0" version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "37ab347416e802de484e4d03c7316c48f1ecb56574dfd4a46a80f173ce1de04d" checksum = "398ea4fabe40b9b0d885340a2a991a44c8a645624075ad966d21f88688e2b69e"
[[package]] [[package]]
name = "getrandom" name = "getrandom"
@ -95,6 +104,12 @@ dependencies = [
"either", "either",
] ]
[[package]]
name = "lazy_static"
version = "1.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
[[package]] [[package]]
name = "libc" name = "libc"
version = "0.2.105" version = "0.2.105"
@ -110,6 +125,12 @@ dependencies = [
"cfg-if 0.1.10", "cfg-if 0.1.10",
] ]
[[package]]
name = "memchr"
version = "2.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a"
[[package]] [[package]]
name = "multimap" name = "multimap"
version = "0.8.1" version = "0.8.1"
@ -118,9 +139,9 @@ checksum = "d8883adfde9756c1d30b0f519c9b8c502a94b41ac62f696453c37c7fc0a958ce"
[[package]] [[package]]
name = "petgraph" name = "petgraph"
version = "0.5.1" version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "467d164a6de56270bd7c4d070df81d07beace25012d5103ced4e9ff08d6afdb7" checksum = "4a13a2fa9d0b63e5f22328828741e523766fff0ee9e779316902290dff3f824f"
dependencies = [ dependencies = [
"fixedbitset", "fixedbitset",
"indexmap", "indexmap",
@ -143,9 +164,9 @@ dependencies = [
[[package]] [[package]]
name = "prost" name = "prost"
version = "0.8.0" version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "de5e2533f59d08fcf364fd374ebda0692a70bd6d7e66ef97f306f45c6c5d8020" checksum = "444879275cb4fd84958b1a1d5420d15e6fcf7c235fe47f053c9c2a80aceb6001"
dependencies = [ dependencies = [
"bytes", "bytes",
"prost-derive", "prost-derive",
@ -153,27 +174,29 @@ dependencies = [
[[package]] [[package]]
name = "prost-build" name = "prost-build"
version = "0.8.0" version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "355f634b43cdd80724ee7848f95770e7e70eefa6dcf14fea676216573b8fd603" checksum = "62941722fb675d463659e49c4f3fe1fe792ff24fe5bbaa9c08cd3b98a1c354f5"
dependencies = [ dependencies = [
"bytes", "bytes",
"heck", "heck",
"itertools", "itertools",
"lazy_static",
"log", "log",
"multimap", "multimap",
"petgraph", "petgraph",
"prost", "prost",
"prost-types", "prost-types",
"regex",
"tempfile", "tempfile",
"which", "which",
] ]
[[package]] [[package]]
name = "prost-derive" name = "prost-derive"
version = "0.8.0" version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "600d2f334aa05acb02a755e217ef1ab6dea4d51b58b7846588b747edec04efba" checksum = "f9cc1a3263e07e0bf68e96268f37665207b49560d98739662cdfaae215c720fe"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"itertools", "itertools",
@ -184,9 +207,9 @@ dependencies = [
[[package]] [[package]]
name = "prost-types" name = "prost-types"
version = "0.8.0" version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "603bbd6394701d13f3f25aada59c7de9d35a6a5887cfc156181234a44002771b" checksum = "534b7a0e836e3c482d2693070f982e39e7611da9695d4d1f5a4b186b51faef0a"
dependencies = [ dependencies = [
"bytes", "bytes",
"prost", "prost",
@ -257,6 +280,23 @@ dependencies = [
"bitflags", "bitflags",
] ]
[[package]]
name = "regex"
version = "1.5.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d07a8629359eb56f1e2fb1652bb04212c072a87ba68546a04065d525673ac461"
dependencies = [
"aho-corasick",
"memchr",
"regex-syntax",
]
[[package]]
name = "regex-syntax"
version = "0.6.25"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f497285884f3fcff424ffc933e56d7cbca511def0c9831a7f9b5f6153e3cc89b"
[[package]] [[package]]
name = "remove_dir_all" name = "remove_dir_all"
version = "0.5.3" version = "0.5.3"
@ -313,9 +353,9 @@ dependencies = [
[[package]] [[package]]
name = "tonic-build" name = "tonic-build"
version = "0.5.2" version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "12b52d07035516c2b74337d2ac7746075e7dcae7643816c1b12c5ff8a7484c08" checksum = "88358bb1dcfeb62dcce85c63006cafb964b7be481d522b7e09589d4d1e718d2a"
dependencies = [ dependencies = [
"proc-macro2", "proc-macro2",
"prost-build", "prost-build",

View File

@ -12,4 +12,4 @@ version = "1.9.0"
[workspace] [workspace]
[dependencies] [dependencies]
tonic-build = "0.5.2" tonic-build = "0.6.0"

View File

@ -134,7 +134,7 @@ impl BigTableConnection {
access_token: None, access_token: None,
channel: tonic::transport::Channel::from_shared(format!("http://{}", endpoint)) channel: tonic::transport::Channel::from_shared(format!("http://{}", endpoint))
.map_err(|err| Error::InvalidUri(endpoint, err.to_string()))? .map_err(|err| Error::InvalidUri(endpoint, err.to_string()))?
.connect_lazy()?, .connect_lazy(),
table_prefix: format!("projects/emulator/instances/{}/tables/", instance_name), table_prefix: format!("projects/emulator/instances/{}/tables/", instance_name),
timeout, timeout,
}) })
@ -175,7 +175,7 @@ impl BigTableConnection {
Ok(Self { Ok(Self {
access_token: Some(access_token), access_token: Some(access_token),
channel: endpoint.connect_lazy()?, channel: endpoint.connect_lazy(),
table_prefix, table_prefix,
timeout, timeout,
}) })

View File

@ -12,7 +12,7 @@ edition = "2018"
[dependencies] [dependencies]
bincode = "1.3.3" bincode = "1.3.3"
bs58 = "0.4.0" bs58 = "0.4.0"
prost = "0.8.0" prost = "0.9.0"
serde = "1.0.130" serde = "1.0.130"
solana-account-decoder = { path = "../account-decoder", version = "=1.9.0" } solana-account-decoder = { path = "../account-decoder", version = "=1.9.0" }
solana-sdk = { path = "../sdk", version = "=1.9.0" } solana-sdk = { path = "../sdk", version = "=1.9.0" }
@ -26,4 +26,4 @@ name = "solana_storage_proto"
targets = ["x86_64-unknown-linux-gnu"] targets = ["x86_64-unknown-linux-gnu"]
[build-dependencies] [build-dependencies]
tonic-build = "0.5.2" tonic-build = "0.6.0"