Ben Chuanlong Du's Blog

It is never too late to learn.

Useful Rust Crates for String

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

indoc

The indoc crate provides a procedural macro for indented string literals. The indoc!() macro takes a multiline string literal and un-indents it at compile time so the leftmost non-space character …