formatx 0.2.4

A macro for formatting non literal strings at runtime
Documentation
1
2
3
4
5
6
7
use formatx::formatx;

fn main() {
    let template = "{} {0:-^10} {percentage:.2}";
    let text = formatx!(template, "world!", "hello", percentage = 99.9999);
    println!("{}", text.unwrap());
}