-
-
Notifications
You must be signed in to change notification settings - Fork 395
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
[breaking] deps(udp): make tracing optional and add optional log #1921
Conversation
Definitely unexcited about this change, but I suppose I can live with it. Does the cargo vet output imply that mozilla-central already depends on h2 and warp, or just that those are the most popular crates.io crates that depend on tracing? |
mozilla-central depends on
|
482381c
to
2fc5c52
Compare
e79254b
to
9066958
Compare
9066958
to
35097b5
Compare
I don't think the
|
This commit makes the `tracing` dependency in `quinn-udp` optional, but enabled by default. In additional it adds optional logging via `log`. `tracing` takes precedence over `log`.
35097b5
to
8e69d91
Compare
Thanks, this looks good to me. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Note that I think we could avoid the breaking change in quinn-udp in this change. For example, we could have a feature |
I think that makes sense as a temporary solution until the next breaking change? I think the only downside is the slightly weird feature name, which seems manageable if that lets us retain semver compatibility. |
Good catch @Ralith. Thanks. I created #1923 implementing your suggestion above.
Happy to prepare an additional clean-up pull request that can be merged once a breaking change release is in sight. |
LGTM! Merged #1923. |
Previously `quinn*` would provide the `log` feature to log events via `log` if no `tracing` subscriber exists. Later quinn-rs#1923 allowed `quinn-udp` to log via `log` directly, making `tracing` an optional dependency. For that, it introduced the `direct-log` feature, a workaround name in order to not introduce a breaking change. This commit cleans up the above, renaming the `log` feature to `tracing-log` and the `direct-log` to `log`. This is a breaking change and thus `quinn-udp` is bumped to `v0.6.0`. See quinn-rs#1921 for the full history.
This commit makes the
tracing
dependency inquinn-udp
optional, but enabled by default. If disabled,log
is used. By adding it to thedefault
feature set, this is not a breaking change.Context:
I am working on integrating
quinn-udp
into Firefox. See mozilla-central pull request.Each Rust dependency in Firefox needs to be audited via
cargo vet
.quinn-udp
optionally not depending ontracing
will safe Mozilla a lot of work auditing all oftracing
.Questions:
tracing
optional inquinn-udp
?log
feature? See inline comment below.Follow-up to #1473 and #1903