maybe-debug 0.1.0

impl Debug for Any (via specialization)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
 * NOTE: This is necessary because inner macro attributes are unstable
 * 
 * In other words, we can't do 
 * #![rustversion::attr(nightly, feature(...))]
 * on stable, which kind of defeats the purpose...
 */
#[rustversion::nightly]
const NIGHTLY: bool = true;

#[rustversion::not(nightly)]
const NIGHTLY: bool = false;

fn main() {
    if NIGHTLY {
        println!(r#"cargo:rustc-cfg=maybe_debug_nightly"#);
    }
}