✓ Uses Rust 2018 edition
|0.2.1||Jan 23, 2020|
|0.2.0||Jan 15, 2020|
|0.1.0||Jan 7, 2020|
#141 in Text processing
37 downloads per month
Used in 2 crates
Simple procedural macros to use
textwrap utilities at compile time.
textwrap-macros crate to the
[dependencies] textwrap-macros = "0.2"
Then either use the macros using the old-style
#[macro_use] or import them as
any other crate member:
use textwrap_macros::dedent; const poem: &str = dedent!(r#" When we two parted In silence and tears, Half broken-hearted To sever for years, Pale grew thy cheek and cold, Colder thy kiss; Truly that hour foretold Sorrow to this. "#);
Check out the documentation of the original library for more information about the behaviour of each of the wrapped functions.