Skip to content

Releases: dtolnay/indoc

0.2.1

19 Sep 15:29
0.2.1
8355779
Compare
Choose a tag to compare
  • Add an unstable feature that changes the implementation to be a Macros 2.0 macro. This is required in call sites that need a string literal rather than just a &'static str, such as in a format string. (#12)

    [dependencies]
    indoc = { version = "0.2.1", features = ["unstable"] }
    #![feature(proc_macro)]
    
    extern crate indoc;
    use indoc::indoc;
    
    fn main() {
        let username = "Boscop";
        let body = "Check this out";
    
        let message = format!(
            indoc!("
                Hello {username}
                ======{underline}
    
                {body}
            "),
            username = username,
            underline = "=".repeat(username.len()),
            body = body,
        );
        print!("{}", message);
    }

0.2.0

17 Sep 17:48
0.2.0
5694843
Compare
Choose a tag to compare

0.1.15

23 Nov 23:24
0.1.15
e4b25e0
Compare
Choose a tag to compare
  • Bump syntex version to 0.51

0.1.14

16 Oct 17:43
0.1.14
002bddf
Compare
Choose a tag to compare
  • Bump syntex version to 0.45

0.1.13

26 Jul 16:34
0.1.13
28b54bd
Compare
Choose a tag to compare
  • Bump syntex version to 0.39

0.1.12

03 Jul 15:51
0.1.12
f1726b5
Compare
Choose a tag to compare
  • Bump syntex version to 0.37

0.1.11

11 Jun 21:42
0.1.11
380a2f9
Compare
Choose a tag to compare
  • Bump syntex version to 0.35

0.1.10

10 Jun 04:34
0.1.10
a262557
Compare
Choose a tag to compare
  • Adds indoc::expand as an alternative to indoc::register when using the with-syntex feature. This hides the dependency on Syntex and allows Syntex users to avoid being broken by Indoc bumping its Syntex dependency.

0.1.9

05 Jun 00:24
0.1.9
Compare
Choose a tag to compare
  • Bump syntex version to 0.33

0.1.8

05 Jun 00:31
0.1.8
Compare
Choose a tag to compare
  • Bump syntex version to 0.32