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

fix: remove unused dependency tracing-attributes #1903

Merged
merged 2 commits into from
Jun 21, 2024

Conversation

mxinden
Copy link
Collaborator

@mxinden mxinden commented Jun 20, 2024

Various quinn* crates depend on tracing. tracing in its default feature set includes tracing-attributes in order to expose #[instrument] procedural macro in tracing::instrument.

None of quinn* make use of the #[instrument] macro. Thus the tracing-attributes dependency is unused.

To remove the dependency from the tree, this commit:

  1. Restricts tracing's features to std, effectively removing the attributes feature.
  2. Consolidates the various tracing* imports across quinn* crates into workspace dependencies.

Let me know if you don't want to use workspace dependencies?


Context:

As always, thank you for this project!

Cargo.toml Show resolved Hide resolved
@djc
Copy link
Member

djc commented Jun 20, 2024

Very cool to see that quinn-udp is being considered for use in Firefox!

Various `quinn*` crates depend on `tracing`. `tracing` in its default feature
set includes `tracing-attributes` in order to expose `#[instrument]` procedural
macro in `tracing::instrument`.

None of `quinn*` make use of the `#[instrument]` macro. Thus the
`tracing-attributes` dependency is unused.

To remove the dependency from the tree, this commit restricts `tracing`'s
`features` to `std`, effectively removing the `attributes` feature.
Copy link
Member

@djc djc left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Collaborator

@Ralith Ralith left a comment

Choose a reason for hiding this comment

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

Thanks! Always happy to see unused code get trimmed down.

@Ralith Ralith merged commit 9e2272a into quinn-rs:main Jun 21, 2024
8 checks passed
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.

3 participants