From 4d65bf687102470219909fe7aad801aa42ebfc39 Mon Sep 17 00:00:00 2001 From: Harry Barber Date: Sun, 6 Aug 2023 21:36:54 +0100 Subject: [PATCH 1/2] add extern crate wasm_bindgen_test --- tracing/tests/macros.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tracing/tests/macros.rs b/tracing/tests/macros.rs index 423984da27..52e74cd897 100644 --- a/tracing/tests/macros.rs +++ b/tracing/tests/macros.rs @@ -2,6 +2,8 @@ // We call all macros in this module with `no_implicit_prelude` to ensure they do not depend on the standard prelude. #![no_implicit_prelude] extern crate tracing; +#[cfg(target_arch = "wasm32")] +extern crate wasm_bindgen_test; use tracing::{ callsite, debug, debug_span, enabled, error, error_span, event, event_enabled, info, info_span, From 5c17a937fc4aa7611f0d2ebc60199a1eb46bd750 Mon Sep 17 00:00:00 2001 From: Harry Barber Date: Thu, 17 Aug 2023 00:41:21 +0100 Subject: [PATCH 2/2] temporarily import `Option::None` to `test/macros.rs` --- tracing/tests/macros.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tracing/tests/macros.rs b/tracing/tests/macros.rs index 52e74cd897..6d9a333b68 100644 --- a/tracing/tests/macros.rs +++ b/tracing/tests/macros.rs @@ -5,6 +5,10 @@ extern crate tracing; #[cfg(target_arch = "wasm32")] extern crate wasm_bindgen_test; +// TODO: remove this once https://github.com/tokio-rs/tracing/pull/2675#issuecomment-1667628907 is resolved +#[cfg(target_arch = "wasm32")] +use ::core::option::Option::None; + use tracing::{ callsite, debug, debug_span, enabled, error, error_span, event, event_enabled, info, info_span, span, span_enabled, trace, trace_span, warn, warn_span, Level,