dedent 0.1.1

Procedural macro for stripping indentation from multi-line string literals
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use dedent::dedent;

fn main() {
    let str = dedent!(
        r"
        it should
        compile
    "
    );

    assert_eq!(str, "it should\ncompile")
}