textwrap-macros
Simple procedural macros to use textwrap
utilities at compile time.
Usage
Add the textwrap-macros
crate to the Cargo.toml
manifest:
[]
= "0.2"
Then either use the macros using the old-style #[macro_use]
or import them as
any other crate member:
use dedent;
const poem: &str = dedent!;
Macros usage with small examples can be found on
docs.rs
. The following functions have been
ported into macros:
Check out the documentation of the original library for more information about the behaviour of each of the wrapped functions.
Changelog
This project adheres to Semantic Versioning and provides a changelog in the Keep a Changelog format.