From 267455b97592b237e717ca53f856d4d1cbd08082 Mon Sep 17 00:00:00 2001 From: Jeremy Fitzhardinge Date: Mon, 17 Oct 2022 15:03:40 -0700 Subject: [PATCH] Make tracing-attribute depend on tracing-core just for doc references I hope there's a better way to deal with this. --- tracing-attributes/Cargo.toml | 2 +- tracing-attributes/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tracing-attributes/Cargo.toml b/tracing-attributes/Cargo.toml index 16d0e903e9..fee4f95366 100644 --- a/tracing-attributes/Cargo.toml +++ b/tracing-attributes/Cargo.toml @@ -37,12 +37,12 @@ proc-macro = true proc-macro2 = "1.0.40" syn = { version = "1.0.98", default-features = false, features = ["full", "parsing", "printing", "visit", "visit-mut", "clone-impls", "extra-traits", "proc-macro"] } quote = "1.0.20" +tracing-core = { path = "../tracing-core", version = "0.2"} # non-dev just for docs [dev-dependencies] tracing = { path = "../tracing", version = "0.2" } tracing-mock = { path = "../tracing-mock", features = ["tokio-test"] } tokio-test = "0.4.2" -tracing-core = { path = "../tracing-core", version = "0.2"} tracing-subscriber = { path = "../tracing-subscriber", version = "0.3", features = ["env-filter"] } async-trait = "0.1.56" trybuild = "1.0.64" diff --git a/tracing-attributes/src/lib.rs b/tracing-attributes/src/lib.rs index 28de099f3d..13adc2ff75 100644 --- a/tracing-attributes/src/lib.rs +++ b/tracing-attributes/src/lib.rs @@ -375,7 +375,7 @@ mod expand; /// [`follows_from`]: https://docs.rs/tracing/latest/tracing/struct.Span.html#method.follows_from /// [`tracing`]: https://github.com/tokio-rs/tracing /// [`fmt::Debug`]: std::fmt::Debug -/// [`Level`]: tracing::Level +/// [`Level`]: tracing_core::Level #[proc_macro_attribute] pub fn instrument( args: proc_macro::TokenStream,