backport changes from master
#1609
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
this backports the following changes from
mastertov0.1.x:asyncspans if level disabled (attributes: skipasyncspans if level disabled #1607)Futureimpl forWithDispatch(tracing: add missingFutureimpl forWithDispatch#1602)spin_loop_hintdeprecation (core: fixspin_loop_hintdeprecation warnings #1603)dyninVisitdocs example (doc typo #1595)tokio_panic_hookexample (examples: addtokio_panic_hookexample #1593)Of these commits, only #1602 required meaningful modification for v0.1.x
(beyond tracking renamings). It was necessary to change the feature
flagging of
WithDispatch/WithSubscriberfrom the version onmaster, so that theFutureimpl requires the "std" feature flag,but the
WithSubscribertrait andWithDispatchtype do not. This isbecause requiring the feature flag for these definitions would
technically be a breaking change, since they were previously published
without the feature flag and could e.g. be imported...even though they
were totally useless. Sigh.