workspace-filter 0.1.0

Simple framework to compile env filters for all packages in a workspace
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![doc = include_str!("README.md")]

/// Construct a new filter with all crates in the workspace set to a given level, optionally
/// including a default string. See module documentation for more info.
#[macro_export]
macro_rules! workspace_filter {
    ($level:expr) => {
        format!(env!("WORKSPACE_FILTER"), level = $level)
    };
    ($level:expr, $etc:expr) => {
        format!(
            concat!(concat!($etc, ","), env!("WORKSPACE_FILTER")),
            level = $level
        )
    };
}