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

chore: update dependencies #590

Merged
merged 1 commit into from
Oct 22, 2024
Merged

chore: update dependencies #590

merged 1 commit into from
Oct 22, 2024

Conversation

hds
Copy link
Collaborator

@hds hds commented Oct 21, 2024

For users who build tokio-console by installing it with cargo, it is
common to use the --locked flag to indicate that the dependency
versions from the lock file should be used. So it's worth having those
dependencies up to date.

This change checks in the result of running cargo update without
changing the manifest (Cargo.toml) files.

The patch (pre-1.0 minor) version change to tonic-build included a
deprecation (rename) and some clippy lint allow directives in the
generated Rust files.

The update to tracing in the lockfile from 0.1.37 to 0.1.40 includes
the changes from tokio-rs/tracing#2562. This change causes an
instrumented future to be entered one final time when the future is
dropped, so that any code run in the drop implementation will be in the
scope of the span. This causes the number of polls recorded for a task
to be incremented by 1 right before it is dropped.

Due to this change, some of the console-subscriber tests needed to be
updated. This behaviour was already present for many application using
the console-subscriber, but not yet in the tests because we hadn't
updated the lockfile for a while.

@hds hds requested a review from a team as a code owner October 21, 2024 13:03
Copy link
Collaborator

@Rustin170506 Rustin170506 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Thanks! 👍

@Rustin170506
Copy link
Collaborator

@hds The CI failed. Need to update the proto stuff.

@hds hds force-pushed the cargo-update branch 3 times, most recently from 9b62c7f to ad76840 Compare October 22, 2024 09:06
For users who build tokio-console by installing it with `cargo`, it is
common to use the `--locked` flag to indicate that the dependency
versions from the lock file should be used. So it's worth having those
dependencies up to date.

This change checks in the result of running `cargo update` without
changing the manifest (`Cargo.toml`) files.

The patch (pre-1.0 minor) version change to `tonic-build` included a
deprecation (rename) and some clippy lint allow directives in the
generated Rust files.

The update to `tracing` in the lockfile from 0.1.37 to 0.1.40 includes
the changes from tokio-rs/tracing#2562. This change causes an
instrumented future to be entered one final time when the future is
dropped, so that any code run in the drop implementation will be in the
scope of the span. This causes the number of polls recorded for a task
to be incremented by 1 right before it is dropped.

Due to this change, some of the `console-subscriber` tests needed to be
updated. This behaviour was already present for many application using
the `console-subscriber`, but not yet in the tests because we hadn't
updated the lockfile for a while.
@hds hds merged commit f4ee0df into main Oct 22, 2024
17 checks passed
@hds hds deleted the cargo-update branch October 22, 2024 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants