Skip to content

Commit 1c7d60d

Browse files
authored
chore: Update dependencies (#23)
* envoy-types: update dependencies `prost` v0.14 ; `tonic` v0.14 ; `tonic-prost` v0.14 `tonic-prost-build` v0.14 * envoy-types: adjust `tests/bootstrap` Use `tonic-prost-build`, refactor. * envoy-types: update generated files * examples: update dependencies `tokio` v1.47 ; `tonic` v0.14
1 parent baae2b4 commit 1c7d60d

File tree

241 files changed

+1281
-1023
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

241 files changed

+1281
-1023
lines changed

envoy-types/Cargo.toml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,13 @@ version = "0.6.1"
1717

1818
[dependencies]
1919
futures-core = "0.3"
20-
prost = { version = "0.13", default-features = false, features = [
21-
"prost-derive",
22-
] }
23-
tonic = { version = "0.13", default-features = false, features = [
20+
prost = { version = "0.14", default-features = false, features = ["derive"] }
21+
tonic = { version = "0.14", default-features = false, features = [
2422
"codegen",
2523
"transport",
26-
"prost",
2724
] }
25+
tonic-prost = "0.14"
2826

2927
[dev-dependencies]
3028
glob = "0.3"
31-
tonic-build = { version = "0.13", default-features = false, features = [
32-
"prost",
33-
"cleanup-markdown",
34-
] }
29+
tonic-prost-build = "0.14"

envoy-types/src/generated/cel.expr.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ pub struct Expr {
4040
/// Nested message and enum types in `Expr`.
4141
pub mod expr {
4242
/// An identifier expression. e.g. `request`.
43-
#[derive(Clone, PartialEq, ::prost::Message)]
43+
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
4444
pub struct Ident {
4545
/// Required. Holds a single, unqualified identifier, possibly preceded by a
4646
/// '.'.
@@ -387,7 +387,7 @@ pub struct SourceInfo {
387387
/// Nested message and enum types in `SourceInfo`.
388388
pub mod source_info {
389389
/// An extension that was requested for the source expression.
390-
#[derive(Clone, PartialEq, ::prost::Message)]
390+
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
391391
pub struct Extension {
392392
/// Identifier for the extension. Example: constant_folding
393393
#[prost(string, tag = "1")]
@@ -406,7 +406,7 @@ pub mod source_info {
406406
/// Nested message and enum types in `Extension`.
407407
pub mod extension {
408408
/// Version
409-
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
409+
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
410410
pub struct Version {
411411
/// Major version changes indicate different required support level from
412412
/// the required components.

envoy-types/src/generated/envoy.admin.v3.rs

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ pub struct CertificateDetails {
4848
}
4949
/// Nested message and enum types in `CertificateDetails`.
5050
pub mod certificate_details {
51-
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
51+
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
5252
pub struct OcspDetails {
5353
/// Indicates the time from which the OCSP response is valid.
5454
#[prost(message, optional, tag = "1")]
@@ -62,7 +62,7 @@ pub mod certificate_details {
6262
>,
6363
}
6464
}
65-
#[derive(Clone, PartialEq, ::prost::Message)]
65+
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
6666
pub struct SubjectAlternateName {
6767
/// Subject Alternate Name.
6868
#[prost(oneof = "subject_alternate_name::Name", tags = "1, 2, 3")]
@@ -71,7 +71,7 @@ pub struct SubjectAlternateName {
7171
/// Nested message and enum types in `SubjectAlternateName`.
7272
pub mod subject_alternate_name {
7373
/// Subject Alternate Name.
74-
#[derive(Clone, PartialEq, ::prost::Oneof)]
74+
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
7575
pub enum Name {
7676
#[prost(string, tag = "1")]
7777
Dns(::prost::alloc::string::String),
@@ -82,7 +82,7 @@ pub mod subject_alternate_name {
8282
}
8383
}
8484
/// Proto representation of an Envoy Counter or Gauge value.
85-
#[derive(Clone, PartialEq, ::prost::Message)]
85+
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
8686
pub struct SimpleMetric {
8787
/// Type of the metric represented.
8888
#[prost(enumeration = "simple_metric::Type", tag = "1")]
@@ -274,7 +274,7 @@ pub struct HostStatus {
274274
}
275275
/// Health status for a host.
276276
/// \[\#next-free-field: 9\]
277-
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
277+
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
278278
pub struct HostHealthStatus {
279279
/// The host is currently failing active health checks.
280280
#[prost(bool, tag = "1")]
@@ -309,7 +309,7 @@ pub struct HostHealthStatus {
309309
#[prost(enumeration = "super::super::config::core::v3::HealthStatus", tag = "3")]
310310
pub eds_health_status: i32,
311311
}
312-
#[derive(Clone, PartialEq, ::prost::Message)]
312+
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
313313
pub struct UpdateFailureState {
314314
/// What the component configuration would have been if the update had succeeded.
315315
/// This field may not be populated by xDS clients due to storage overhead.
@@ -354,7 +354,7 @@ pub struct ListenersConfigDump {
354354
/// Nested message and enum types in `ListenersConfigDump`.
355355
pub mod listeners_config_dump {
356356
/// Describes a statically loaded listener.
357-
#[derive(Clone, PartialEq, ::prost::Message)]
357+
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
358358
pub struct StaticListener {
359359
/// The listener config.
360360
#[prost(message, optional, tag = "1")]
@@ -367,7 +367,7 @@ pub mod listeners_config_dump {
367367
super::super::super::super::google::protobuf::Timestamp,
368368
>,
369369
}
370-
#[derive(Clone, PartialEq, ::prost::Message)]
370+
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
371371
pub struct DynamicListenerState {
372372
///
373373
/// This is the per-resource version information. This version is currently taken from the
@@ -389,7 +389,7 @@ pub mod listeners_config_dump {
389389
}
390390
/// Describes a dynamically loaded listener via the LDS API.
391391
/// \[\#next-free-field: 7\]
392-
#[derive(Clone, PartialEq, ::prost::Message)]
392+
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
393393
pub struct DynamicListener {
394394
/// The name or unique id of this listener, pulled from the DynamicListenerState config.
395395
#[prost(string, tag = "1")]
@@ -453,7 +453,7 @@ pub struct ClustersConfigDump {
453453
/// Nested message and enum types in `ClustersConfigDump`.
454454
pub mod clusters_config_dump {
455455
/// Describes a statically loaded cluster.
456-
#[derive(Clone, PartialEq, ::prost::Message)]
456+
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
457457
pub struct StaticCluster {
458458
/// The cluster config.
459459
#[prost(message, optional, tag = "1")]
@@ -468,7 +468,7 @@ pub mod clusters_config_dump {
468468
}
469469
/// Describes a dynamically loaded cluster via the CDS API.
470470
/// \[\#next-free-field: 6\]
471-
#[derive(Clone, PartialEq, ::prost::Message)]
471+
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
472472
pub struct DynamicCluster {
473473
///
474474
/// This is the per-resource version information. This version is currently taken from the
@@ -520,7 +520,7 @@ pub struct RoutesConfigDump {
520520
}
521521
/// Nested message and enum types in `RoutesConfigDump`.
522522
pub mod routes_config_dump {
523-
#[derive(Clone, PartialEq, ::prost::Message)]
523+
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
524524
pub struct StaticRouteConfig {
525525
/// The route config.
526526
#[prost(message, optional, tag = "1")]
@@ -534,7 +534,7 @@ pub mod routes_config_dump {
534534
>,
535535
}
536536
/// \[\#next-free-field: 6\]
537-
#[derive(Clone, PartialEq, ::prost::Message)]
537+
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
538538
pub struct DynamicRouteConfig {
539539
///
540540
/// This is the per-resource version information. This version is currently taken from the
@@ -653,7 +653,7 @@ pub struct EndpointsConfigDump {
653653
}
654654
/// Nested message and enum types in `EndpointsConfigDump`.
655655
pub mod endpoints_config_dump {
656-
#[derive(Clone, PartialEq, ::prost::Message)]
656+
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
657657
pub struct StaticEndpointConfig {
658658
/// The endpoint config.
659659
#[prost(message, optional, tag = "1")]
@@ -667,7 +667,7 @@ pub mod endpoints_config_dump {
667667
>,
668668
}
669669
/// \[\#next-free-field: 6\]
670-
#[derive(Clone, PartialEq, ::prost::Message)]
670+
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
671671
pub struct DynamicEndpointConfig {
672672
///
673673
/// \[\#not-implemented-hide:\] This is the per-resource version information. This version is currently taken from the
@@ -711,7 +711,7 @@ pub struct EcdsConfigDump {
711711
/// Nested message and enum types in `EcdsConfigDump`.
712712
pub mod ecds_config_dump {
713713
/// \[\#next-free-field: 6\]
714-
#[derive(Clone, PartialEq, ::prost::Message)]
714+
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
715715
pub struct EcdsFilterConfig {
716716
/// This is the per-resource version information. This version is currently
717717
/// taken from the :ref:`version_info <envoy_v3_api_field_service.discovery.v3.DiscoveryResponse.version_info>`
@@ -873,7 +873,7 @@ pub struct SecretsConfigDump {
873873
pub mod secrets_config_dump {
874874
/// DynamicSecret contains secret information fetched via SDS.
875875
/// \[\#next-free-field: 7\]
876-
#[derive(Clone, PartialEq, ::prost::Message)]
876+
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
877877
pub struct DynamicSecret {
878878
/// The name assigned to the secret.
879879
#[prost(string, tag = "1")]
@@ -906,7 +906,7 @@ pub mod secrets_config_dump {
906906
pub client_status: i32,
907907
}
908908
/// StaticSecret specifies statically loaded secret in bootstrap.
909-
#[derive(Clone, PartialEq, ::prost::Message)]
909+
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
910910
pub struct StaticSecret {
911911
/// The name assigned to the secret.
912912
#[prost(string, tag = "1")]
@@ -941,7 +941,7 @@ pub struct UnreadyTargetsDumps {
941941
/// Nested message and enum types in `UnreadyTargetsDumps`.
942942
pub mod unready_targets_dumps {
943943
/// Message of unready targets information of an init manager.
944-
#[derive(Clone, PartialEq, ::prost::Message)]
944+
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
945945
pub struct UnreadyTargetsDump {
946946
/// Name of the init manager. Example: "init_manager_xxx".
947947
#[prost(string, tag = "1")]
@@ -980,7 +980,7 @@ pub struct ListenerStatus {
980980
/// values extracted from an internal TCMalloc instance. For more information, see the section of the
981981
/// docs entitled ["Generic Tcmalloc Status"](<https://gperftools.github.io/gperftools/tcmalloc.html>).
982982
/// \[\#next-free-field: 7\]
983-
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
983+
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
984984
pub struct Memory {
985985
/// The number of bytes allocated by the heap for Envoy. This is an alias for
986986
/// `generic.current_allocated_bytes`.
@@ -1016,7 +1016,7 @@ pub struct Memory {
10161016
/// *NB*: The wait cycles below are measured by `absl::base_internal::CycleClock`, and may not
10171017
/// correspond to core clock frequency. For more information, see the `CycleClock`
10181018
/// [docs](<https://github.com/abseil/abseil-cpp/blob/master/absl/base/internal/cycleclock.h>).
1019-
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
1019+
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
10201020
pub struct MutexStats {
10211021
/// The number of individual mutex contentions which have occurred since startup.
10221022
#[prost(uint64, tag = "1")]
@@ -1109,7 +1109,7 @@ pub mod server_info {
11091109
}
11101110
}
11111111
/// \[\#next-free-field: 42\]
1112-
#[derive(Clone, PartialEq, ::prost::Message)]
1112+
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
11131113
pub struct CommandLineOptions {
11141114
/// See :option:`--base-id` for details.
11151115
#[prost(uint64, tag = "1")]

envoy-types/src/generated/envoy.annotations.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is @generated by prost-build.
2-
#[derive(Clone, PartialEq, ::prost::Message)]
2+
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
33
pub struct ResourceAnnotation {
44
/// Annotation for xDS services that indicates the fully-qualified Protobuf type for the resource
55
/// type.

envoy-types/src/generated/envoy.config.accesslog.v3.rs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub struct AccessLog {
1616
pub mod access_log {
1717
/// Custom configuration that must be set according to the access logger extension being instantiated.
1818
/// \[\#extension-category: envoy.access_loggers\]
19-
#[derive(Clone, PartialEq, ::prost::Oneof)]
19+
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
2020
pub enum ConfigType {
2121
#[prost(message, tag = "4")]
2222
TypedConfig(super::super::super::super::super::google::protobuf::Any),
@@ -78,7 +78,7 @@ pub mod access_log_filter {
7878
}
7979
}
8080
/// Filter on an integer comparison.
81-
#[derive(Clone, PartialEq, ::prost::Message)]
81+
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
8282
pub struct ComparisonFilter {
8383
/// Comparison operator.
8484
#[prost(enumeration = "comparison_filter::Op", tag = "1")]
@@ -135,7 +135,7 @@ pub mod comparison_filter {
135135
}
136136
}
137137
/// Filters on HTTP response/status code.
138-
#[derive(Clone, PartialEq, ::prost::Message)]
138+
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
139139
pub struct StatusCodeFilter {
140140
/// Comparison.
141141
#[prost(message, optional, tag = "1")]
@@ -145,22 +145,22 @@ pub struct StatusCodeFilter {
145145
/// For end of stream access logs, the total duration of the stream will be used.
146146
/// For :ref:`periodic access logs<arch_overview_access_log_periodic>`,
147147
/// the duration of the stream at the time of log recording will be used.
148-
#[derive(Clone, PartialEq, ::prost::Message)]
148+
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
149149
pub struct DurationFilter {
150150
/// Comparison.
151151
#[prost(message, optional, tag = "1")]
152152
pub comparison: ::core::option::Option<ComparisonFilter>,
153153
}
154154
/// Filters for requests that are not health check requests. A health check
155155
/// request is marked by the health check filter.
156-
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
156+
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
157157
pub struct NotHealthCheckFilter {}
158158
/// Filters for requests that are traceable. See the tracing overview for more
159159
/// information on how a request becomes traceable.
160-
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
160+
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
161161
pub struct TraceableFilter {}
162162
/// Filters requests based on runtime-configurable sampling rates.
163-
#[derive(Clone, PartialEq, ::prost::Message)]
163+
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
164164
pub struct RuntimeFilter {
165165
/// Specifies a key used to look up a custom sampling rate from the runtime configuration. If a value is found for this
166166
/// key, it will override the default sampling rate specified in `percent_sampled`.
@@ -215,7 +215,7 @@ pub struct OrFilter {
215215
pub filters: ::prost::alloc::vec::Vec<AccessLogFilter>,
216216
}
217217
/// Filters requests based on the presence or value of a request header.
218-
#[derive(Clone, PartialEq, ::prost::Message)]
218+
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
219219
pub struct HeaderFilter {
220220
/// Only requests with a header which matches the specified HeaderMatcher will
221221
/// pass the filter check.
@@ -227,7 +227,7 @@ pub struct HeaderFilter {
227227
/// A list of the response flags can be found
228228
/// in the access log formatter
229229
/// : ref:`documentation<config_access_log_format_response_flags>`.
230-
#[derive(Clone, PartialEq, ::prost::Message)]
230+
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
231231
pub struct ResponseFlagFilter {
232232
/// Only responses with the any of the flags listed in this field will be
233233
/// logged. This field is optional. If it is not specified, then any response
@@ -237,7 +237,7 @@ pub struct ResponseFlagFilter {
237237
}
238238
/// Filters gRPC requests based on their response status. If a gRPC status is not
239239
/// provided, the filter will infer the status from the HTTP status code.
240-
#[derive(Clone, PartialEq, ::prost::Message)]
240+
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
241241
pub struct GrpcStatusFilter {
242242
/// Logs only responses that have any one of the gRPC statuses in this field.
243243
#[prost(
@@ -360,7 +360,7 @@ pub struct MetadataFilter {
360360
>,
361361
}
362362
/// Filters based on access log type.
363-
#[derive(Clone, PartialEq, ::prost::Message)]
363+
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
364364
pub struct LogTypeFilter {
365365
/// Logs only records which their type is one of the types defined in this field.
366366
#[prost(
@@ -376,7 +376,7 @@ pub struct LogTypeFilter {
376376
pub exclude: bool,
377377
}
378378
/// Extension filter is statically registered at runtime.
379-
#[derive(Clone, PartialEq, ::prost::Message)]
379+
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
380380
pub struct ExtensionFilter {
381381
/// The name of the filter implementation to instantiate. The name must
382382
/// match a statically registered filter.
@@ -389,7 +389,7 @@ pub struct ExtensionFilter {
389389
/// Nested message and enum types in `ExtensionFilter`.
390390
pub mod extension_filter {
391391
/// Custom configuration that depends on the filter being instantiated.
392-
#[derive(Clone, PartialEq, ::prost::Oneof)]
392+
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
393393
pub enum ConfigType {
394394
#[prost(message, tag = "3")]
395395
TypedConfig(super::super::super::super::super::google::protobuf::Any),

0 commit comments

Comments
 (0)