Skip to content

Commit b70c1d8

Browse files
committed
feat(console-api): update tonic to v0.9 (#420)
This commit updates the Tonic dependency for `console-api` from v0.8 to v0.9. BREAKING CHANGE: This is a breaking change for users of `console-api`, as it changes the public `tonic` dependency to a semver-incompatible version. This breaks compatibility with `tonic` 0.8.
1 parent 1a94c4b commit b70c1d8

9 files changed

+565
-274
lines changed

Cargo.lock

+133-97
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

console-api/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ keywords = [
2626

2727
[features]
2828
# Generate code that is compatible with Tonic's `transport` module.
29-
transport = ["tonic-build/transport", "tonic/transport"]
29+
transport = ["tonic/transport"]
3030

3131
[dependencies]
32-
tonic = { version = "0.8", default-features = false, features = [
32+
tonic = { version = "0.9", default-features = false, features = [
3333
"prost",
3434
"codegen",
3535
"transport",
@@ -39,7 +39,7 @@ prost-types = "0.11"
3939
tracing-core = "0.1.17"
4040

4141
[dev-dependencies]
42-
tonic-build = { version = "0.8", default-features = false, features = [
42+
tonic-build = { version = "0.9", default-features = false, features = [
4343
"prost", "transport"
4444
] }
4545
# explicit dep so we can get the version with fixed whitespace.

console-api/src/generated/rs.tokio.console.async_ops.rs

+16-13
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@
22
///
33
/// This includes a list of any new async ops, and updates to the associated statistics
44
/// for any async ops that have changed since the last update.
5+
#[allow(clippy::derive_partial_eq_without_eq)]
56
#[derive(Clone, PartialEq, ::prost::Message)]
67
pub struct AsyncOpUpdate {
78
/// A list of new async operations that were created since the last `AsyncOpUpdate`
89
/// was sent. Note that the fact that an async operation has been created
910
/// does not mean that is has been polled or is being polled. This information
1011
/// is reflected in the `Stats` of the operation.
11-
#[prost(message, repeated, tag="1")]
12+
#[prost(message, repeated, tag = "1")]
1213
pub new_async_ops: ::prost::alloc::vec::Vec<AsyncOp>,
1314
/// Any async op stats that have changed since the last update.
14-
#[prost(map="uint64, message", tag="2")]
15+
#[prost(map = "uint64, message", tag = "2")]
1516
pub stats_update: ::std::collections::HashMap<u64, Stats>,
1617
/// A count of how many async op events (e.g. polls, creation, etc) were not
1718
/// recorded because the application's event buffer was at capacity.
@@ -23,32 +24,33 @@ pub struct AsyncOpUpdate {
2324
///
2425
/// If the application's instrumentation ensures reliable delivery of events,
2526
/// this will always be 0.
26-
#[prost(uint64, tag="3")]
27+
#[prost(uint64, tag = "3")]
2728
pub dropped_events: u64,
2829
}
2930
/// An async operation.
3031
///
3132
/// An async operation is an operation that is associated with a resource
3233
/// This could, for example, be a a read or write on a TCP stream, or a receive operation on
3334
/// a channel.
35+
#[allow(clippy::derive_partial_eq_without_eq)]
3436
#[derive(Clone, PartialEq, ::prost::Message)]
3537
pub struct AsyncOp {
3638
/// The async op's ID.
3739
///
3840
/// This uniquely identifies this op across all *currently live*
3941
/// ones.
40-
#[prost(message, optional, tag="1")]
42+
#[prost(message, optional, tag = "1")]
4143
pub id: ::core::option::Option<super::common::Id>,
4244
/// The numeric ID of the op's `Metadata`.
4345
///
4446
/// This identifies the `Metadata` that describes the `tracing` span
4547
/// corresponding to this async op. The metadata for this ID will have been sent
4648
/// in a prior `RegisterMetadata` message.
47-
#[prost(message, optional, tag="2")]
49+
#[prost(message, optional, tag = "2")]
4850
pub metadata: ::core::option::Option<super::common::MetaId>,
4951
/// The source of this async operation. Most commonly this should be the name
5052
/// of the method where the instantiation of this op has happened.
51-
#[prost(string, tag="3")]
53+
#[prost(string, tag = "3")]
5254
pub source: ::prost::alloc::string::String,
5355
/// The ID of the parent async op.
5456
///
@@ -58,28 +60,29 @@ pub struct AsyncOp {
5860
///
5961
/// This field can be empty; if it is empty, this async op is not a child of another
6062
/// async op.
61-
#[prost(message, optional, tag="4")]
63+
#[prost(message, optional, tag = "4")]
6264
pub parent_async_op_id: ::core::option::Option<super::common::Id>,
6365
/// The resources's ID.
64-
#[prost(message, optional, tag="5")]
66+
#[prost(message, optional, tag = "5")]
6567
pub resource_id: ::core::option::Option<super::common::Id>,
6668
}
6769
/// Statistics associated with a given async operation.
70+
#[allow(clippy::derive_partial_eq_without_eq)]
6871
#[derive(Clone, PartialEq, ::prost::Message)]
6972
pub struct Stats {
7073
/// Timestamp of when the async op has been created.
71-
#[prost(message, optional, tag="1")]
74+
#[prost(message, optional, tag = "1")]
7275
pub created_at: ::core::option::Option<::prost_types::Timestamp>,
7376
/// Timestamp of when the async op was dropped.
74-
#[prost(message, optional, tag="2")]
77+
#[prost(message, optional, tag = "2")]
7578
pub dropped_at: ::core::option::Option<::prost_types::Timestamp>,
7679
/// The Id of the task that is awaiting on this op.
77-
#[prost(message, optional, tag="4")]
80+
#[prost(message, optional, tag = "4")]
7881
pub task_id: ::core::option::Option<super::common::Id>,
7982
/// Contains the operation poll stats.
80-
#[prost(message, optional, tag="5")]
83+
#[prost(message, optional, tag = "5")]
8184
pub poll_stats: ::core::option::Option<super::common::PollStats>,
8285
/// State attributes of the async op.
83-
#[prost(message, repeated, tag="6")]
86+
#[prost(message, repeated, tag = "6")]
8487
pub attributes: ::prost::alloc::vec::Vec<super::common::Attribute>,
8588
}

0 commit comments

Comments
 (0)