refactor: build and move comment and matcher crates to analysis crate (#1223)

This commit is contained in:
Myriad-Dreamin 2025-01-29 12:34:28 +08:00 committed by GitHub
parent 1979469f28
commit 0f588c99d7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 155 additions and 44 deletions

View file

@ -135,20 +135,7 @@ pub trait StatefulRequest {
) -> Option<Self::Response>;
}
/// Completely disabled log
#[macro_export]
macro_rules! log_debug_ct {
// debug!(target: "my_target", key1 = 42, key2 = true; "a {} event", "log")
// debug!(target: "my_target", "a {} event", "log")
(target: $target:expr, $($arg:tt)+) => {
let _ = format_args!($target, $($arg)+);
};
// debug!("a {} event", "log")
($($arg:tt)+) => {
let _ = format_args!($($arg)+);
};
}
use tinymist_analysis::log_debug_ct;
#[allow(missing_docs)]
mod polymorphic {