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

Bump tonic to 0.12 #283

Merged
merged 3 commits into from
Jul 10, 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
10 changes: 5 additions & 5 deletions artifact-registry/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "google-cloud-artifact-registry"
version = "0.5.0"
version = "0.6.0"
edition = "2021"
authors = ["yoshidan <[email protected]>"]
repository = "https://github.com/yoshidan/google-cloud-rust/tree/main/artifact-registry"
Expand All @@ -13,14 +13,14 @@ documentation = "https://docs.rs/google-cloud-artifact-registry/latest/google_cl
[dependencies]
google-cloud-token = { version = "0.1.2", path = "../foundation/token" }
google-cloud-auth = { optional = true, version = "0.16", path="../foundation/auth", default-features=false }
google-cloud-googleapis = { version="0.14.0", path = "../googleapis", features=["artifact-registry"]}
google-cloud-gax = { version = "0.18.0", path = "../foundation/gax"}
google-cloud-longrunning = { version = "0.19.0", path = "../foundation/longrunning" }
google-cloud-googleapis = { version="0.15.0", path = "../googleapis", features=["artifact-registry"]}
google-cloud-gax = { version = "0.19.0", path = "../foundation/gax"}
google-cloud-longrunning = { version = "0.20.0", path = "../foundation/longrunning" }
tracing = "0.1"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
thiserror = "1.0"
prost-types = "0.12"
prost-types = "0.13"

[dev-dependencies]
tokio = { version="1.32", features=["rt-multi-thread"] }
Expand Down
6 changes: 3 additions & 3 deletions bigquery/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "google-cloud-bigquery"
version = "0.10.0"
version = "0.12.0"
edition = "2021"
authors = ["yoshidan <[email protected]>"]
repository = "https://github.com/yoshidan/google-cloud-rust/tree/main/bigquery"
Expand All @@ -13,8 +13,8 @@ documentation = "https://docs.rs/google-cloud-bigquery/latest/google_cloud_bigqu
[dependencies]
async-trait = "0.1"
google-cloud-token = { version = "0.1.2", path = "../foundation/token" }
google-cloud-googleapis = { version="0.14.0", path = "../googleapis", features=["bigquery"]}
google-cloud-gax = { version = "0.18.0", path = "../foundation/gax"}
google-cloud-googleapis = { version="0.15.0", path = "../googleapis", features=["bigquery"]}
google-cloud-gax = { version = "0.19.0", path = "../foundation/gax"}
thiserror = "1.0"
tracing = "0.1"
reqwest = { version = "0.12.4", features = ["json", "stream", "multipart", "charset"], default-features = false }
Expand Down
6 changes: 3 additions & 3 deletions foundation/gax/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "google-cloud-gax"
version = "0.18.0"
version = "0.19.0"
authors = ["yoshidan <[email protected]>"]
edition = "2018"
repository = "https://github.com/yoshidan/google-cloud-rust/tree/main/foundation/gax"
Expand All @@ -12,9 +12,9 @@ description = "Google Cloud Platform gRPC retry library."
[dependencies]
tracing = "0.1"
tokio = { version = "1.32", features = ["macros"] }
tonic = { version = "0.11", features = ["prost", "tls-webpki-roots"] }
tonic = { version = "0.12", features = ["prost", "tls-webpki-roots"] }
thiserror = "1.0"
tower = { version = "0.4", features = ["filter"] }
http = "0.2"
http = "1.1"
google-cloud-token = { version = "0.1.2", path = "../token" }
tokio-retry = "0.3"
2 changes: 1 addition & 1 deletion foundation/gax/src/conn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ impl<'a> ConnectionManager {
ts_provider: &dyn TokenSourceProvider,
conn_options: &'a ConnectionOptions,
) -> Result<Vec<Channel>, Error> {
let tls_config = ClientTlsConfig::new().domain_name(domain_name);
let tls_config = ClientTlsConfig::new().with_webpki_roots().domain_name(domain_name);
let mut conns = Vec::with_capacity(pool_size);

let ts = ts_provider.token_source();
Expand Down
10 changes: 5 additions & 5 deletions foundation/longrunning/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "google-cloud-longrunning"
version = "0.19.0"
version = "0.20.0"
authors = ["yoshidan <[email protected]>"]
edition = "2021"
repository = "https://github.com/yoshidan/google-cloud-rust/tree/main/foundation/longrunning"
Expand All @@ -10,7 +10,7 @@ readme = "README.md"
description = "Google Cloud Platform longrunning library."

[dependencies]
google-cloud-googleapis = { version = "0.14.0", path = "../../googleapis" }
google-cloud-gax = { version = "0.18.0", path = "../gax" }
tonic = { version = "0.11", features = ["tls", "prost"] }
prost = "0.12"
google-cloud-googleapis = { version = "0.15.0", path = "../../googleapis" }
google-cloud-gax = { version = "0.19.0", path = "../gax" }
tonic = { version = "0.12", features = ["tls", "prost"] }
prost = "0.13"
12 changes: 6 additions & 6 deletions googleapis/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "google-cloud-googleapis"
version = "0.14.0"
version = "0.15.0"
authors = ["yoshidan <[email protected]>"]
edition = "2021"
repository = "https://github.com/yoshidan/google-cloud-rust/tree/main/googleapis"
Expand All @@ -12,13 +12,13 @@ description = "Google Cloud Platform rust client."
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
tonic = { version = "0.11", features = ["tls", "prost", "gzip"] }
prost = "0.12"
prost-types = "0.12"
tonic = { version = "0.12", features = ["tls", "prost", "gzip"] }
prost = "0.13"
prost-types = "0.13"

[build-dependencies]
tonic-build = { version = "0.11", optional = true }
prost-build = { version = "0.12", optional = true }
tonic-build = { version = "0.12", optional = true }
prost-build = { version = "0.13", optional = true }

[features]
spanner = []
Expand Down
2 changes: 1 addition & 1 deletion googleapis/src/bytes/google.api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ pub mod method_settings {
/// generators (e.g.
/// [Java](<https://github.com/googleapis/gapic-generator-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java>)).
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct LongRunning {
/// Initial delay after which the first poll request will be made.
/// Default value: 5 seconds.
Expand Down
20 changes: 10 additions & 10 deletions googleapis/src/bytes/google.cloud.bigquery.storage.v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub struct ArrowRecordBatch {
}
/// Contains options specific to Arrow Serialization.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ArrowSerializationOptions {
/// The compression codec to use for Arrow buffers in serialized record
/// batches.
Expand Down Expand Up @@ -104,7 +104,7 @@ pub struct AvroRows {
}
/// Contains options specific to Avro Serialization.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct AvroSerializationOptions {
/// Enable displayName attribute in Avro schema.
///
Expand Down Expand Up @@ -445,7 +445,7 @@ pub struct ReadSession {
pub mod read_session {
/// Additional attributes when reading a table.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct TableModifiers {
/// The snapshot time of the table. If not set, interpreted as now.
#[prost(message, optional, tag = "1")]
Expand Down Expand Up @@ -535,7 +535,7 @@ pub mod read_session {
/// Nested message and enum types in `TableReadOptions`.
pub mod table_read_options {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum OutputFormatSerializationOptions {
/// Optional. Options specific to the Apache Arrow output format.
#[prost(message, tag = "3")]
Expand Down Expand Up @@ -819,7 +819,7 @@ pub struct ReadRowsRequest {
}
/// Information on if the current connection is being throttled.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ThrottleState {
/// How much this connection is being throttled. Zero means no throttling,
/// 100 means fully throttled.
Expand All @@ -828,7 +828,7 @@ pub struct ThrottleState {
}
/// Estimated stream statistics for a given read Stream.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct StreamStats {
/// Represents the progress of the current stream.
#[prost(message, optional, tag = "2")]
Expand All @@ -837,7 +837,7 @@ pub struct StreamStats {
/// Nested message and enum types in `StreamStats`.
pub mod stream_stats {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Progress {
/// The fraction of rows assigned to the stream that have been processed by
/// the server so far, not including the rows in the current response
Expand Down Expand Up @@ -1156,7 +1156,7 @@ pub struct AppendRowsResponse {
pub mod append_rows_response {
/// AppendResult is returned for successful append requests.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct AppendResult {
/// The row offset at which the last append occurred. The offset will not be
/// set if appending using default streams.
Expand Down Expand Up @@ -1246,7 +1246,7 @@ pub struct FinalizeWriteStreamRequest {
}
/// Response message for `FinalizeWriteStream`.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct FinalizeWriteStreamResponse {
/// Number of rows in the finalized stream.
#[prost(int64, tag = "1")]
Expand All @@ -1266,7 +1266,7 @@ pub struct FlushRowsRequest {
}
/// Respond message for `FlushRows`.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct FlushRowsResponse {
/// The rows before this offset (including this offset) are flushed.
#[prost(int64, tag = "1")]
Expand Down
8 changes: 4 additions & 4 deletions googleapis/src/bytes/google.cloud.kms.v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ pub mod crypto_key {
}
/// Controls the rate of automatic rotation.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum RotationSchedule {
/// [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time]
/// will be advanced by this period when the service automatically rotates a
Expand All @@ -213,7 +213,7 @@ pub mod crypto_key {
/// [CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion]
/// or automatically as a result of auto-rotation.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct CryptoKeyVersionTemplate {
/// [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] to use when creating
/// a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] based on this
Expand Down Expand Up @@ -2838,7 +2838,7 @@ pub mod digest {
/// Cloud KMS metadata for the given
/// [google.cloud.location.Location][google.cloud.location.Location].
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct LocationMetadata {
/// Indicates whether [CryptoKeys][google.cloud.kms.v1.CryptoKey] with
/// [protection_level][google.cloud.kms.v1.CryptoKeyVersionTemplate.protection_level]
Expand Down Expand Up @@ -4234,7 +4234,7 @@ pub struct VerifyConnectivityRequest {
/// Response message for
/// [EkmService.VerifyConnectivity][google.cloud.kms.v1.EkmService.VerifyConnectivity].
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct VerifyConnectivityResponse {}
/// Generated client implementations.
pub mod ekm_service_client {
Expand Down
10 changes: 5 additions & 5 deletions googleapis/src/bytes/google.devtools.artifactregistry.v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ pub struct ImportYumArtifactsResponse {
}
/// The operation metadata for importing artifacts.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ImportYumArtifactsMetadata {}
/// The Artifact Registry VPC SC config that apply to a Project.
#[allow(clippy::derive_partial_eq_without_eq)]
Expand Down Expand Up @@ -654,7 +654,7 @@ pub struct ImportAptArtifactsResponse {
}
/// The operation metadata for importing artifacts.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ImportAptArtifactsMetadata {}
/// A hash of file content.
#[allow(clippy::derive_partial_eq_without_eq)]
Expand Down Expand Up @@ -902,7 +902,7 @@ pub mod repository {
/// Provides additional configuration details for repositories of the maven
/// format type.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct MavenRepositoryConfig {
/// The repository with this flag will allow publishing
/// the same snapshot versions.
Expand Down Expand Up @@ -1021,7 +1021,7 @@ pub mod repository {
}
/// Repository-specific configurations.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum FormatConfig {
/// Maven repository config contains repository level configuration
/// for the repositories of maven type.
Expand Down Expand Up @@ -1428,7 +1428,7 @@ impl VersionView {
}
/// Metadata type for longrunning-operations, currently empty.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct OperationMetadata {}
/// Generated client implementations.
pub mod artifact_registry_client {
Expand Down
2 changes: 1 addition & 1 deletion googleapis/src/bytes/google.iam.v1.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// This file is @generated by prost-build.
/// Encapsulates settings provided to GetIamPolicy.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct GetPolicyOptions {
/// Optional. The maximum policy version that will be used to format the
/// policy.
Expand Down
Loading
Loading