spdlog_internal/lib.rs
1//! Internal private common code for crate [`spdlog-rs`].
2//!
3//! `spdlog-internal` should never be used as a standalone dependency, use
4//! [`spdlog-rs`] instead.
5//!
6//! [`spdlog-rs`]: https://crates.io/crates/spdlog-rs
7
8// The crate is not intended to be used directly by users, all public items are considered internal
9// API, so we don't care about this warning.
10#![allow(clippy::impl_trait_in_params)]
11
12pub mod pattern_parser;
13
14#[macro_export]
15macro_rules! impossible {
16 ( $dbg_lit:literal, $($fmt_arg:expr),* ) => {
17 panic!(
18 "this should not happen, please open an issue on 'spdlog-rs' Bug Tracker\n\nsource: {}\ndebug:{}",
19 format!("{}:{}", file!(), line!()),
20 format!($dbg_lit, $($fmt_arg),*),
21 )
22 };
23}