From acdb3273bb4a0072cf605f0fb2141e090d64aeba Mon Sep 17 00:00:00 2001 From: David Pedersen Date: Thu, 8 Jul 2021 21:02:02 +0200 Subject: [PATCH] chore: update prost, and related crates, to 0.8 (#703) * chore: update prost, and related crates, to 0.8 Updates prost, prost-derive, prost-build, and prost-types to 0.8. * Update the last few places --- examples/Cargo.toml | 4 ++-- examples/helloworld-tutorial.md | 2 +- examples/routeguide-tutorial.md | 2 +- interop/Cargo.toml | 4 ++-- tests/ambiguous_methods/Cargo.toml | 2 +- tests/compression/Cargo.toml | 2 +- tests/extern_path/my_application/Cargo.toml | 4 ++-- tests/extern_path/uuid/Cargo.toml | 4 ++-- tests/included_service/Cargo.toml | 2 +- tests/integration_tests/Cargo.toml | 2 +- tests/root-crate-path/Cargo.toml | 2 +- tests/same_name/Cargo.toml | 2 +- tests/stream_conflict/Cargo.toml | 2 +- tests/wellknown-compiled/Cargo.toml | 2 +- tests/wellknown/Cargo.toml | 4 ++-- tonic-build/Cargo.toml | 2 +- tonic-health/Cargo.toml | 4 ++-- tonic-reflection/Cargo.toml | 4 ++-- tonic-types/Cargo.toml | 6 +++--- tonic-web/tests/integration/Cargo.toml | 2 +- tonic/Cargo.toml | 4 ++-- 21 files changed, 31 insertions(+), 31 deletions(-) diff --git a/examples/Cargo.toml b/examples/Cargo.toml index fb69cb8..c68e58e 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml @@ -165,7 +165,7 @@ path = "src/mock/mock.rs" [dependencies] tonic = { path = "../tonic", features = ["tls"] } -prost = "0.7" +prost = "0.8" tokio = { version = "1.0", features = ["rt-multi-thread", "time", "fs", "macros", "net"] } tokio-stream = { version = "0.1", features = ["net"] } async-stream = "0.3" @@ -181,7 +181,7 @@ tracing-subscriber = { version = "0.2", features = ["tracing-log"] } tracing-attributes = "0.1" tracing-futures = "0.2" # Required for wellknown types -prost-types = "0.7" +prost-types = "0.8" # Hyper example hyper = "0.14" warp = "0.3" diff --git a/examples/helloworld-tutorial.md b/examples/helloworld-tutorial.md index 56d21de..b32bcef 100644 --- a/examples/helloworld-tutorial.md +++ b/examples/helloworld-tutorial.md @@ -114,7 +114,7 @@ path = "src/client.rs" [dependencies] tonic = "0.4" -prost = "0.7" +prost = "0.8" tokio = { version = "1.0", features = ["macros", "rt-multi-thread"] } [build-dependencies] diff --git a/examples/routeguide-tutorial.md b/examples/routeguide-tutorial.md index 7987e5c..f3cb630 100644 --- a/examples/routeguide-tutorial.md +++ b/examples/routeguide-tutorial.md @@ -181,7 +181,7 @@ Edit `Cargo.toml` and add all the dependencies we'll need for this example: ```toml [dependencies] tonic = "0.4" -prost = "0.7" +prost = "0.8" futures-core = "0.3" futures-util = "0.3" tokio = { version = "1.0", features = ["rt-multi-thread", "macros", "sync", "time"] } diff --git a/interop/Cargo.toml b/interop/Cargo.toml index bf2e1a8..d00036f 100644 --- a/interop/Cargo.toml +++ b/interop/Cargo.toml @@ -19,8 +19,8 @@ tokio = { version = "1.0", features = ["rt-multi-thread", "time", "macros", "fs" tokio-stream = "0.1" async-stream = "0.3" tonic = { path = "../tonic", features = ["tls"] } -prost = "0.7" -prost-derive = "0.7" +prost = "0.8" +prost-derive = "0.8" bytes = "1.0" http = "0.2" futures-core = "0.3" diff --git a/tests/ambiguous_methods/Cargo.toml b/tests/ambiguous_methods/Cargo.toml index f1a54e3..3941800 100644 --- a/tests/ambiguous_methods/Cargo.toml +++ b/tests/ambiguous_methods/Cargo.toml @@ -10,7 +10,7 @@ license = "MIT" [dependencies] tonic = { path= "../../tonic" } -prost = "0.7" +prost = "0.8" [build-dependencies] tonic-build = { path= "../../tonic-build" } diff --git a/tests/compression/Cargo.toml b/tests/compression/Cargo.toml index f15dd22..ecb1fb7 100644 --- a/tests/compression/Cargo.toml +++ b/tests/compression/Cargo.toml @@ -8,7 +8,7 @@ license = "MIT" [dependencies] tonic = { path = "../../tonic", features = ["compression"] } -prost = "0.7" +prost = "0.8" tokio = { version = "1.0", features = ["macros", "rt-multi-thread", "net"] } tower = { version = "0.4", features = [] } http-body = "0.4" diff --git a/tests/extern_path/my_application/Cargo.toml b/tests/extern_path/my_application/Cargo.toml index 5030afb..6ab297a 100644 --- a/tests/extern_path/my_application/Cargo.toml +++ b/tests/extern_path/my_application/Cargo.toml @@ -10,8 +10,8 @@ license = "MIT" [dependencies] tonic = { path= "../../../tonic" } -prost = "0.7" -prost-types = "0.7" +prost = "0.8" +prost-types = "0.8" uuid = { package = "uuid1", path= "../uuid" } [build-dependencies] diff --git a/tests/extern_path/uuid/Cargo.toml b/tests/extern_path/uuid/Cargo.toml index 657e9bf..cbb106c 100644 --- a/tests/extern_path/uuid/Cargo.toml +++ b/tests/extern_path/uuid/Cargo.toml @@ -9,7 +9,7 @@ license = "MIT" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -prost = "0.7" +prost = "0.8" bytes = "1.0" [build-dependencies] -prost-build = "0.7" +prost-build = "0.8" diff --git a/tests/included_service/Cargo.toml b/tests/included_service/Cargo.toml index 454cd2a..c03133d 100644 --- a/tests/included_service/Cargo.toml +++ b/tests/included_service/Cargo.toml @@ -10,7 +10,7 @@ license = "MIT" [dependencies] tonic = { path = "../../tonic" } -prost = "0.7" +prost = "0.8" [build-dependencies] tonic-build = { path = "../../tonic-build" } diff --git a/tests/integration_tests/Cargo.toml b/tests/integration_tests/Cargo.toml index a6b07be..65a7dd5 100644 --- a/tests/integration_tests/Cargo.toml +++ b/tests/integration_tests/Cargo.toml @@ -10,7 +10,7 @@ license = "MIT" [dependencies] tonic = { path = "../../tonic" } -prost = "0.7" +prost = "0.8" futures-util = "0.3" bytes = "1.0" diff --git a/tests/root-crate-path/Cargo.toml b/tests/root-crate-path/Cargo.toml index 9a90bcc..192d591 100644 --- a/tests/root-crate-path/Cargo.toml +++ b/tests/root-crate-path/Cargo.toml @@ -8,7 +8,7 @@ license = "MIT" [dependencies] tonic = { path = "../../tonic" } -prost = "0.7" +prost = "0.8" [build_dependencies] tonic-build = { path = "../../tonic-build" } diff --git a/tests/same_name/Cargo.toml b/tests/same_name/Cargo.toml index 40d809b..35e9e6c 100644 --- a/tests/same_name/Cargo.toml +++ b/tests/same_name/Cargo.toml @@ -10,7 +10,7 @@ license = "MIT" [dependencies] tonic = { path = "../../tonic" } -prost = "0.7" +prost = "0.8" [build-dependencies] tonic-build = { path = "../../tonic-build" } diff --git a/tests/stream_conflict/Cargo.toml b/tests/stream_conflict/Cargo.toml index b1c39c5..c59f409 100644 --- a/tests/stream_conflict/Cargo.toml +++ b/tests/stream_conflict/Cargo.toml @@ -9,7 +9,7 @@ edition = "2018" [dependencies] tonic = { path = "../../tonic" } -prost = "0.7" +prost = "0.8" [build-dependencies] tonic-build = { path = "../../tonic-build" } diff --git a/tests/wellknown-compiled/Cargo.toml b/tests/wellknown-compiled/Cargo.toml index b690fae..7f73965 100644 --- a/tests/wellknown-compiled/Cargo.toml +++ b/tests/wellknown-compiled/Cargo.toml @@ -13,7 +13,7 @@ doctest = false [dependencies] tonic = { path = "../../tonic" } -prost = "0.7" +prost = "0.8" [build-dependencies] tonic-build = { path = "../../tonic-build" } diff --git a/tests/wellknown/Cargo.toml b/tests/wellknown/Cargo.toml index c272ec3..2f576f5 100644 --- a/tests/wellknown/Cargo.toml +++ b/tests/wellknown/Cargo.toml @@ -10,8 +10,8 @@ license = "MIT" [dependencies] tonic = { path = "../../tonic" } -prost = "0.7" -prost-types = "0.7" +prost = "0.8" +prost-types = "0.8" [build-dependencies] tonic-build = { path = "../../tonic-build" } diff --git a/tonic-build/Cargo.toml b/tonic-build/Cargo.toml index 529cd88..ed17263 100644 --- a/tonic-build/Cargo.toml +++ b/tonic-build/Cargo.toml @@ -16,7 +16,7 @@ keywords = ["rpc", "grpc", "async", "codegen", "protobuf"] [dependencies] -prost-build = { version = "0.7", optional = true } +prost-build = { version = "0.8", optional = true } syn = "1.0" quote = "1.0" proc-macro2 = "1.0" diff --git a/tonic-health/Cargo.toml b/tonic-health/Cargo.toml index 81007f9..01498af 100644 --- a/tonic-health/Cargo.toml +++ b/tonic-health/Cargo.toml @@ -22,7 +22,7 @@ transport = ["tonic/transport"] tokio = { version = "1.0", features = ["sync"] } tonic = { version = "0.4", path = "../tonic", features = ["codegen", "prost"] } bytes = "1.0" -prost = "0.7" +prost = "0.8" tokio-stream = "0.1" async-stream = "0.3" @@ -30,4 +30,4 @@ async-stream = "0.3" tokio = { version = "1.0", features = ["rt-multi-thread", "macros"]} [build-dependencies] -tonic-build = { version = "0.4", path = "../tonic-build" } \ No newline at end of file +tonic-build = { version = "0.4", path = "../tonic-build" } diff --git a/tonic-reflection/Cargo.toml b/tonic-reflection/Cargo.toml index 3861525..874fded 100644 --- a/tonic-reflection/Cargo.toml +++ b/tonic-reflection/Cargo.toml @@ -18,8 +18,8 @@ keywords = ["rpc", "grpc", "async", "reflection"] [dependencies] bytes = "1.0" -prost = "0.7" -prost-types = "0.7" +prost = "0.8" +prost-types = "0.8" tokio = { version = "1.0", features = ["sync"] } tokio-stream = { version = "0.1", features = ["net"] } tonic = { version = "0.4", path = "../tonic", features = ["codegen", "prost"] } diff --git a/tonic-types/Cargo.toml b/tonic-types/Cargo.toml index 027d037..de5343a 100644 --- a/tonic-types/Cargo.toml +++ b/tonic-types/Cargo.toml @@ -15,8 +15,8 @@ categories = ["web-programming", "network-programming", "asynchronous"] keywords = ["rpc", "grpc", "protobuf"] [dependencies] -prost = "0.7" -prost-types = "0.7" +prost = "0.8" +prost-types = "0.8" [build-dependencies] -prost-build = "0.7" +prost-build = "0.8" diff --git a/tonic-web/tests/integration/Cargo.toml b/tonic-web/tests/integration/Cargo.toml index 165ac86..20aa392 100644 --- a/tonic-web/tests/integration/Cargo.toml +++ b/tonic-web/tests/integration/Cargo.toml @@ -8,7 +8,7 @@ edition = "2018" [dependencies] tonic = { path = "../../../tonic" } tonic-web = { path = "../../../tonic-web" } -prost = "0.7" +prost = "0.8" tokio = { version = "1", features = ["macros", "rt", "net"] } base64 = "0.13" bytes = "1.0" diff --git a/tonic/Cargo.toml b/tonic/Cargo.toml index 134dc85..c113c94 100644 --- a/tonic/Cargo.toml +++ b/tonic/Cargo.toml @@ -63,8 +63,8 @@ http-body = "0.4.2" pin-project = "1.0" # prost -prost1 = { package = "prost", version = "0.7", optional = true } -prost-derive = { version = "0.7", optional = true } +prost1 = { package = "prost", version = "0.8", optional = true } +prost-derive = { version = "0.8", optional = true } # codegen async-trait = { version = "0.1.13", optional = true }