mirror of
https://github.com/tokio-rs/tracing.git
synced 2025-10-02 15:24:47 +00:00

Co-authored-by: David Barsky <me@davidbarsky.com> Co-authored-by: Eliza Weisman <eliza@buoyant.io>
nightly-only examples
These examples demonstrate compatibility with Rust features that are not yet stable (primarily, async-await syntax).
Note that these examples are not in the root workspace, to avoid compiling
them on unsupported Rust versions when running cargo test --all
. Therefore,
they must be run from within the nightly-examples
directory.
Examples
async_fn.rs
: demonstrates how thetrace
attribute macro can be used to instrument anasync fn
.