Skip to content

Commit 4b53213

Browse files
committed
Fix runtime_pattern! requiring explicit spdlog-internal dependency
1 parent d346813 commit 4b53213

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

spdlog-macros/src/pattern/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ pub fn runtime_pattern_impl(runtime_pattern: RuntimePattern) -> Result<TokenStre
4747
{
4848
let template = #template;
4949
let pattern_registry = {
50-
let mut registry = spdlog_internal
50+
let mut registry = spdlog
51+
::__internal
5152
::pattern_parser
5253
::PatternRegistry
5354
::<Box<dyn Fn() -> Box<dyn spdlog::formatter::Pattern>>>

spdlog/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,9 @@ pub use logger::*;
315315
pub use record::*;
316316
pub use source_location::*;
317317
#[doc(hidden)]
318+
#[cfg(feature = "runtime-pattern")]
319+
pub use spdlog_internal as __internal;
320+
#[doc(hidden)]
318321
pub use spdlog_macros::normalize_forward as __normalize_forward;
319322
pub use string_buf::StringBuf;
320323
#[cfg(feature = "multi-thread")]

0 commit comments

Comments
 (0)