eager2 1.1.4

Proc-macros for eager macro expansion
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[test]
fn test_env() {
    const FOO: Option<&str> = eager2::option_env!("PATH");
    const BAR: Option<&str> = option_env!("PATH");

    assert_eq!(FOO, BAR);
}

#[test]
fn test_file() {
    const FOO: &str = eager2::file!();
    const BAR: &str = file!();

    assert_eq!(FOO, BAR);
}