add our_modules() for log capture filter convenience

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-08-04 06:47:37 +00:00
parent 94b805de0b
commit 9b9a91f6ef
3 changed files with 10 additions and 3 deletions

View file

@ -6,3 +6,6 @@ pub mod rustc;
pub mod version;
pub use conduit_macros::rustc_flags_capture;
pub const MODULE_ROOT: &str = const_str::split!(std::module_path!(), "::")[0];
pub const CRATE_PREFIX: &str = const_str::split!(MODULE_ROOT, '_')[0];