Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update prost to v0.13.0 #1779

Merged
merged 1 commit into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ default = ["full"]
[dependencies]
# Common dependencies
tokio = { version = "1.0", features = ["rt-multi-thread", "macros"] }
prost = "0.12"
prost = "0.13"
tonic = { path = "../tonic" }
# Optional dependencies
tonic-web = { path = "../tonic-web", optional = true }
Expand All @@ -310,7 +310,7 @@ serde = { version = "1.0", features = ["derive"], optional = true }
serde_json = { version = "1.0", optional = true }
tracing = { version = "0.1.16", optional = true }
tracing-subscriber = { version = "0.3", features = ["tracing-log", "fmt"], optional = true }
prost-types = { version = "0.12", optional = true }
prost-types = { version = "0.13", optional = true }
http = { version = "1", optional = true }
http-body = { version = "1", optional = true }
http-body-util = { version = "0.1", optional = true }
Expand Down
2 changes: 1 addition & 1 deletion interop/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ console = "0.15"
http = "1"
http-body = "1"
hyper = "1"
prost = "0.12"
prost = "0.13"
tokio = {version = "1.0", features = ["rt-multi-thread", "time", "macros"]}
tokio-stream = "0.1"
tonic = {path = "../tonic", features = ["tls"]}
Expand Down
2 changes: 1 addition & 1 deletion tests/ambiguous_methods/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ version = "0.1.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
prost = "0.12"
prost = "0.13"
tonic = {path = "../../tonic"}

[build-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion tests/compression/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ hyper = "1"
hyper-util = "0.1"
paste = "1.0.12"
pin-project = "1.0"
prost = "0.12"
prost = "0.13"
tokio = {version = "1.0", features = ["macros", "rt-multi-thread", "net"]}
tokio-stream = "0.1"
tonic = {path = "../../tonic", features = ["gzip", "zstd"]}
Expand Down
2 changes: 1 addition & 1 deletion tests/default_stubs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ version = "0.1.0"
[dependencies]
tokio = {version = "1.0", features = ["macros", "rt-multi-thread", "net"]}
tokio-stream = {version = "0.1", features = ["net"]}
prost = "0.12"
prost = "0.13"
tonic = {path = "../../tonic"}

[build-dependencies]
Expand Down
4 changes: 2 additions & 2 deletions tests/disable_comments/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ version = "0.1.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
prost = "0.12"
prost = "0.13"
tonic = { path = "../../tonic" }

[build-dependencies]
prost-build = "0.12"
prost-build = "0.13"
tonic-build = { path = "../../tonic-build" }
2 changes: 1 addition & 1 deletion tests/extern_path/my_application/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ version = "0.1.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
prost = "0.12"
prost = "0.13"
tonic = {path = "../../../tonic"}
uuid = {package = "uuid1", path = "../uuid"}

Expand Down
4 changes: 2 additions & 2 deletions tests/extern_path/uuid/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ version = "0.1.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
prost = "0.12"
prost = "0.13"
[build-dependencies]
prost-build = "0.12"
prost-build = "0.13"
2 changes: 1 addition & 1 deletion tests/included_service/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ version = "0.1.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
prost = "0.12"
prost = "0.13"
tonic = {path = "../../tonic"}

[build-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ version = "0.1.0"

[dependencies]
bytes = "1.0"
prost = "0.12"
prost = "0.13"
tokio = {version = "1.0", features = ["macros", "rt-multi-thread", "net", "sync"]}
tonic = {path = "../../tonic"}
tracing-subscriber = {version = "0.3"}
Expand Down
2 changes: 1 addition & 1 deletion tests/root-crate-path/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ publish = false
version = "0.1.0"

[dependencies]
prost = "0.12"
prost = "0.13"
tonic = {path = "../../tonic"}

[build-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion tests/same_name/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ version = "0.1.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
prost = "0.12"
prost = "0.13"
tonic = {path = "../../tonic"}

[build-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion tests/service_named_result/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ publish = false
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
prost = "0.12"
prost = "0.13"
tonic = {path = "../../tonic"}

[build-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion tests/service_named_service/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ version = "0.1.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
prost = "0.12"
prost = "0.13"
tonic = {path = "../../tonic"}

[build-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion tests/stream_conflict/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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.12"
prost = "0.13"
tonic = { path = "../../tonic" }

[build-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion tests/use_arc_self/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ version = "0.1.0"

[dependencies]
tokio-stream = "0.1"
prost = "0.12"
prost = "0.13"
tonic = {path = "../../tonic", features = ["gzip"]}

[build-dependencies]
Expand Down
4 changes: 2 additions & 2 deletions tests/wellknown-compiled/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ version = "0.1.0"
doctest = false

[dependencies]
prost = "0.12"
prost = "0.13"
tonic = {path = "../../tonic"}

[build-dependencies]
prost-build = "0.12"
prost-build = "0.13"
tonic-build = {path = "../../tonic-build"}
4 changes: 2 additions & 2 deletions tests/wellknown/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ version = "0.1.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
prost = "0.12"
prost-types = "0.12"
prost = "0.13"
prost-types = "0.13"
tonic = {path = "../../tonic"}

[build-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion tonic-build/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ version = "0.11.0"
[dependencies]
prettyplease = { version = "0.2" }
proc-macro2 = "1.0"
prost-build = { version = "0.12", optional = true }
prost-build = { version = "0.13", optional = true }
quote = "1.0"
syn = "2.0"

Expand Down
4 changes: 2 additions & 2 deletions tonic-health/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ transport = []

[dependencies]
async-stream = "0.3"
prost = "0.12"
prost = "0.13"
tokio = {version = "1.0", features = ["sync"]}
tokio-stream = "0.1"
tonic = { version = "0.11", path = "../tonic", default-features = false, features = ["codegen", "prost"] }

[dev-dependencies]
tokio = {version = "1.0", features = ["rt-multi-thread", "macros"]}
tokio-stream = "0.1"
prost-types = "0.12"
prost-types = "0.13"
2 changes: 1 addition & 1 deletion tonic-health/src/generated/grpc_health_v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pub struct HealthCheckRequest {
pub service: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct HealthCheckResponse {
#[prost(enumeration = "health_check_response::ServingStatus", tag = "1")]
pub status: i32,
Expand Down
4 changes: 2 additions & 2 deletions tonic-reflection/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ server = ["prost-types", "dep:tokio", "dep:tokio-stream"]
default = ["server"]

[dependencies]
prost = "0.12"
prost-types = {version = "0.12", optional = true}
prost = "0.13"
prost-types = {version = "0.13", optional = true}
tokio = { version = "1.0", features = ["sync", "rt"], optional = true }
tokio-stream = {version = "0.1", features = ["net"], optional = true }
tonic = { version = "0.11", path = "../tonic", default-features = false, features = ["codegen", "prost"] }
Expand Down
4 changes: 2 additions & 2 deletions tonic-types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ repository = "https://github.com/hyperium/tonic"
version = "0.11.0"

[dependencies]
prost = "0.12"
prost-types = "0.12"
prost = "0.13"
prost-types = "0.13"
tonic = {version = "0.11", path = "../tonic", default-features = false}
2 changes: 1 addition & 1 deletion tonic-types/src/generated/google_rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pub struct Status {
/// number of retries have been reached or a maximum retry delay cap has been
/// reached.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct RetryInfo {
/// Clients should wait at least this long between retrying the same request.
#[prost(message, optional, tag = "1")]
Expand Down
2 changes: 1 addition & 1 deletion tonic-web/tests/integration/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ http-body = "1"
http-body-util = "0.1"
hyper = "1"
hyper-util = "0.1"
prost = "0.12"
prost = "0.13"
tokio = { version = "1", features = ["macros", "rt", "net"] }
tokio-stream = { version = "0.1", features = ["net"] }
tonic = { path = "../../../tonic" }
Expand Down
2 changes: 1 addition & 1 deletion tonic/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ tower-layer = "0.3"
tower-service = "0.3"

# prost
prost = {version = "0.12", default-features = false, features = ["std"], optional = true}
prost = {version = "0.13", default-features = false, features = ["std"], optional = true}

# codegen
async-trait = {version = "0.1.13", optional = true}
Expand Down